@@ -18,7 +18,6 @@ bl = "binarylane.console.__main__:main"
1818
1919[tool .poetry .group .dev .dependencies ]
2020taskipy = " ^1.10.3"
21- isort = " *"
2221black = " *"
2322mypy = " *"
2423types-python-dateutil = " ^2.8.19"
@@ -31,24 +30,13 @@ ruff = "^0.9.6"
3130[tool .taskipy .tasks ]
3231generate = " python scripts/generate.py"
3332black = " black ."
34- isort = " isort . "
33+ isort = " ruff check --select I . --fix "
3534mypy = " mypy ."
3635ruff = " ruff check src"
3736safety = " poetry export -f requirements.txt | safety check --bare --stdin"
3837test = " pytest tests"
3938check = " task isort && task black && task mypy && task ruff && task test && task safety"
4039
41- [tool .isort ]
42- py_version = 37
43- line_length = 120
44- profile = " black"
45- sections =[' FUTURE' , ' STDLIB' , ' COMPAT' , ' THIRDPARTY' , ' FIRSTPARTY' , ' LOCALFOLDER' ]
46- no_lines_before =[" COMPAT" ]
47- known_compat =[" binarylane.pycompat" ]
48- known_first_party =[" binarylane" ]
49- known_local_folder =[" binarylane.console" ]
50- add_imports =[" from __future__ import annotations" ]
51-
5240[tool .black ]
5341line-length = 120
5442target_version = [" py37" ]
@@ -62,9 +50,17 @@ exclude = [
6250]
6351
6452[tool .ruff .lint ]
65- select = [" E4" , " E7" , " E9" , " F" , " TC" , " PL" ]
53+ select = [" E4" , " E7" , " E9" , " F" , " TC" , " PL" , " I " ]
6654ignore = [" PLR" ]
6755
56+ [tool .ruff .lint .isort ]
57+ section-order = [" future" , " standard-library" , " compat" , " third-party" , " first-party" , " local-folder" ]
58+ no-lines-before = [" compat" ]
59+ sections = { "compat" = [" binarylane.pycompat" ] }
60+ known-first-party = [" binarylane" ]
61+ known-local-folder = [" binarylane.console" ]
62+ required-imports = [" from __future__ import annotations" ]
63+
6864[tool .mypy ]
6965disallow_any_generics = true
7066disallow_untyped_defs = true
0 commit comments