22requires = [" setuptools>=45" , " wheel" , " setuptools_scm[toml]>=6.0" ]
33build-backend = " setuptools.build_meta"
44
5-
65[tool .setuptools_scm ]
76write_to = " src/latex_dependency_scanner/_version.py"
87
9-
108[tool .mypy ]
119files = [" src" , " tests" ]
1210check_untyped_defs = true
@@ -17,45 +15,28 @@ no_implicit_optional = true
1715warn_redundant_casts = true
1816warn_unused_ignores = true
1917
20-
2118[[tool .mypy .overrides ]]
2219module = " tests.*"
2320disallow_untyped_defs = false
2421ignore_errors = true
2522
26-
2723[tool .ruff ]
2824target-version = " py38"
29- select = [" ALL" ]
3025fix = true
26+ unsafe-fixes = true
27+
28+ [tool .ruff .lint ]
3129extend-ignore = [
32- # Numpy docstyle
33- " D107" ,
34- " D203" ,
35- " D212" ,
36- " D213" ,
37- " D402" ,
38- " D404" ,
39- " D413" ,
40- " D415" ,
41- " D416" ,
42- " D417" ,
43- # Others.
44- " RET504" , # unnecessary variable assignment before return.
45- " S101" , # raise errors for asserts.
46- " B905" , # strict parameter for zip that was implemented in py310.
47- " I" , # ignore isort
48- " ANN101" , # type annotating self
49- " ANN102" , # type annotating cls
50- " FBT" , # flake8-boolean-trap
51- " EM" , # flake8-errmsg
52- " ANN401" , # flake8-annotate typing.Any
53- " PD" , # pandas-vet
54- " UP" , # pyupgrade is too aggressive for py<3.10
55- " COM812" , # trailing comma missing, but black takes care of that
56- " TRY003" , # avoid long exception messages
30+ " COM812" , # Comply with ruff-format
31+ " ISC001" , # Comply with ruff-format
5732]
33+ select = [" ALL" ]
34+
35+ [tool .ruff .lint .per-file-ignores ]
36+ "tests/*" = [" ANN" , " D" , " S101" ]
5837
38+ [tool .ruff .lint .isort ]
39+ force-single-line = true
5940
60- [tool .ruff .per-file-ignores ]
61- "tests/*" = [ " D " , " ANN " ]
41+ [tool .ruff .lint . pydocstyle ]
42+ convention = " numpy "
0 commit comments