2
2
requires = [" setuptools>=45" , " wheel" , " setuptools_scm[toml]>=6.0" ]
3
3
build-backend = " setuptools.build_meta"
4
4
5
-
6
5
[tool .setuptools_scm ]
7
6
write_to = " src/latex_dependency_scanner/_version.py"
8
7
9
-
10
8
[tool .mypy ]
11
9
files = [" src" , " tests" ]
12
10
check_untyped_defs = true
@@ -17,45 +15,28 @@ no_implicit_optional = true
17
15
warn_redundant_casts = true
18
16
warn_unused_ignores = true
19
17
20
-
21
18
[[tool .mypy .overrides ]]
22
19
module = " tests.*"
23
20
disallow_untyped_defs = false
24
21
ignore_errors = true
25
22
26
-
27
23
[tool .ruff ]
28
24
target-version = " py38"
29
- select = [" ALL" ]
30
25
fix = true
26
+ unsafe-fixes = true
27
+
28
+ [tool .ruff .lint ]
31
29
extend-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
57
32
]
33
+ select = [" ALL" ]
34
+
35
+ [tool .ruff .lint .per-file-ignores ]
36
+ "tests/*" = [" ANN" , " D" , " S101" ]
58
37
38
+ [tool .ruff .lint .isort ]
39
+ force-single-line = true
59
40
60
- [tool .ruff .per-file-ignores ]
61
- "tests/*" = [ " D " , " ANN " ]
41
+ [tool .ruff .lint . pydocstyle ]
42
+ convention = " numpy "
0 commit comments