chore: configure python quality tooling
Co-authored-by: OpenAI/GPT-5.6-Terra <vibecoder@antoineve.me> Co-authored-by: OpenAI/GPT-5.6-Luna <vibecoder@antoineve.me>
This commit is contained in:
18
pyproject.toml
Normal file
18
pyproject.toml
Normal file
@@ -0,0 +1,18 @@
|
||||
[tool.ruff]
|
||||
target-version = "py310"
|
||||
line-length = 100
|
||||
include = ["*.py"]
|
||||
|
||||
[tool.ruff.lint]
|
||||
select = ["E4", "E7", "E9", "F", "I"]
|
||||
|
||||
# Ces imports différés sont intentionnels : ils évitent des dépendances
|
||||
# circulaires ou préparent sys.path pour les scripts lancés directement.
|
||||
[tool.ruff.lint.per-file-ignores]
|
||||
"app/business/time_calc.py" = ["E402"]
|
||||
"scripts/import_csv.py" = ["E402"]
|
||||
"tests/test_time_calc.py" = ["E402"]
|
||||
|
||||
[tool.ruff.format]
|
||||
quote-style = "double"
|
||||
indent-style = "space"
|
||||
Reference in New Issue
Block a user