Update project configuration and codebase
This commit is contained in:
58
pyproject.toml
Normal file
58
pyproject.toml
Normal file
@@ -0,0 +1,58 @@
|
||||
[tool.black]
|
||||
line-length = 100
|
||||
target-version = ['py313']
|
||||
include = '\.pyi?$'
|
||||
extend-exclude = '''
|
||||
/(
|
||||
# Исключаем стандартные папки
|
||||
\.git
|
||||
| \.venv
|
||||
| build
|
||||
| dist
|
||||
| alembic
|
||||
)/
|
||||
'''
|
||||
|
||||
[tool.ruff]
|
||||
# Базовые настройки
|
||||
line-length = 100
|
||||
target-version = "py313"
|
||||
|
||||
# Исключаем alembic полностью
|
||||
exclude = [
|
||||
".git",
|
||||
".venv",
|
||||
"build",
|
||||
"dist",
|
||||
"alembic",
|
||||
]
|
||||
|
||||
[tool.ruff.lint]
|
||||
select = [
|
||||
"E",
|
||||
"W",
|
||||
"F",
|
||||
"I",
|
||||
"N",
|
||||
"UP",
|
||||
"B",
|
||||
"SIM",
|
||||
"PL",
|
||||
"RUF",
|
||||
"TID",
|
||||
"PT",
|
||||
]
|
||||
|
||||
ignore = [
|
||||
"E501",
|
||||
"D100",
|
||||
"D104",
|
||||
"G004",
|
||||
"PLR0913",
|
||||
"RUF001",
|
||||
"RUF002",
|
||||
"RUF003"
|
||||
]
|
||||
|
||||
[tool.ruff.lint.isort]
|
||||
combine-as-imports = true
|
||||
Reference in New Issue
Block a user