-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
90 lines (84 loc) · 2.48 KB
/
pyproject.toml
File metadata and controls
90 lines (84 loc) · 2.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
[project]
name = "lonchera"
version = "0.1.0"
description = "A Telegram bot to manage your budget"
readme = "README.md"
requires-python = ">=3.13"
dependencies = [
"aiohttp>=3.12.13",
"alembic>=1.17.1",
"boto3>=1.42.91",
"dateparser>=1.2.2",
"dotenv>=0.9.9",
"dspy>=3.0.3",
"emoji>=2.14.1",
"lunchable>=1.4.2",
"mlflow>=3.11.1",
"python-telegram-bot[job-queue]>=22.7",
"pytz>=2025.2",
"requests>=2.32.4",
"sqlalchemy>=2.0.41",
]
[project.optional-dependencies]
dev = ["ruff>=0.15.11"]
[tool.ruff]
# Line length matching your flake8 configuration
line-length = 120
# Target Python version from your project
target-version = "py313"
[tool.ruff.lint]
# Enable linter rules
select = [
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
"UP", # pyupgrade
"N", # pep8-naming
"W", # pycodestyle warnings
"C90", # mccabe complexity
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"TID", # flake8-tidy-imports
"PIE", # flake8-pie
"PL", # pylint
"RUF", # ruff-specific rules
"TRY", # flake8-try
"TC", # flake8-type-checking (type errors)
"FURB", # furb
]
# Same ignores as in your flake8 configuration
ignore = [
"E231", # Missing whitespace after ','
"E203", # Whitespace before ':'
"E221", # Multiple spaces before operator
"E222", # Multiple spaces after operator
"E241", # Multiple spaces after ','
"E402", # Module level import not at top of file
"ISC001", # Implicitly concatenated string literals on one line
"W191", # Indentation contains tabs
"E226", # Missing whitespace around arithmetic operator
"RUF001", # String contains ambiguous char
"E501", # Line too long
"PLW0603", # Global statement not allowed
"PLR0913", # Too many arguments in function definition
"PLR0911", # Too many return statements
"TRY003", # Long messages outside the exception class
]
# Automatically fix errors where possible
fixable = ["ALL"]
# Unused imports will be automatically removed (like pycln)
unfixable = []
[tool.ruff.lint.mccabe]
# Set maximum allowed complexity for C901
max-complexity = 12
[tool.ruff.lint.isort]
# Compatibility with formatter
split-on-trailing-comma = false
[tool.ruff.format]
# Use double quotes for strings
quote-style = "double"
# Indent with 4 spaces
indent-style = "space"
line-ending = "auto"
# Preserve indentation for function parameters
skip-magic-trailing-comma = true