@@ -49,14 +49,16 @@ dev = [
4949 " pytest<9.0.0,>=7.1.3" ,
5050 " mypy<1.17,>=0.982" ,
5151 " pytest-cov<7,>=4" ,
52+
53+ " ruff<0.12.4,>=0.5.1" ,
54+ " types-requests<3.0.0.0,>=2.32.4.20250611" ,
55+ ]
56+ local = [
5257 " ipdb<1.0.0,>=0.13.9" ,
5358 " commitizen<5.0,>=2.38" ,
5459 " pdbpp<1.0.0,>=0.11.6" ,
55- " ruff<0.12.4,>=0.5.1" ,
56- " types-requests<3.0.0.0,>=2.32.4.20250611" ,
5760]
5861
59-
6062[build-system ]
6163requires = [" hatchling" ]
6264build-backend = " hatchling.build"
@@ -66,26 +68,41 @@ target-version = "py39"
6668line-length = 120
6769
6870src = [" twyn" , " tests" ]
69-
7071[tool .ruff .lint ]
7172select = [
72- " C9" , # mccabe
73- " E" , # pycodestyle error
74- " W" , # pycodestyle warning
75- " F" , # pyflakes
76- " B" , # bugbear
77- " D" , # pydocstyle
78- " I" , # isort
79- " C4" , # comprehensions
80- " SIM" , # simplify
81- " N" , # pep8-naming
82- " TRY" , # tryceratops
73+ " B" , # flake8-bugbear
74+ " C" , # mccabe
75+ " E" , # pycodestyle
76+ " W" , # pycodestyle warnings
77+ " F" , # pyflakes
78+ " I" , # isort
79+ " B" , # bugbear
80+ " D" , # pydocstyle
81+ " I" , # isort
82+ " C4" , # comprehensions
83+ " SIM" , # simplify
84+ " N" , # pep8-naming
85+ " TRY" , # tryceratops
86+ " UP" , # pyupgrade
87+ " PT" , # pytest-style
88+ " TCH" , # type-checking
89+ " PL" , # pylint
90+ " G" , # logging format
91+ " TID" , # tidy-imports
8392]
84-
8593ignore = [
86- ' D1' , # pydocstyle enforcement of docstrings everywhere
87- ' TRY003' , # tryceratops too noisy
88- " E501" , # line length (black handles it)
94+ " E501" , # line-length (enforced by black instead)
95+ ' D1' , # pydocstyle enforces docstrings everywhere
96+ ' TRY003' , # tryceratops rule not useful
97+ " PLR0913" , # pylint rule not useful
98+ " B008" , # checks for function calls in default function arguments.
99+ ' D206' , # conflicts with formatter
100+ ' W191' , # conflicts with formatter
101+ ' D203' , # conflicts with formatter
102+ ' D211' , # conflicts with formatter
103+ ' D212' , # conflicts with formatter
104+ ' UP031' , # allow strings formated with %s
105+ ' PLR2004' # magic value
89106]
90107
91108[tool .ruff .lint .pydocstyle ]
0 commit comments