22requires = [" setuptools>=45" , " wheel" , " setuptools_scm[toml]>=6.0" ]
33build-backend = " setuptools.build_meta"
44
5-
65[tool .setuptools_scm ]
76write_to = " src/pytask_stata/_version.py"
87
9-
108[tool .mypy ]
119files = [" src" , " tests" ]
1210check_untyped_defs = true
@@ -17,54 +15,36 @@ 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
31- extend-ignore = [
32- " I" , # ignore isort
33- " TRY" ,
34- # Numpy docstyle
35- " D107" ,
36- " D203" ,
37- " D212" ,
38- " D213" ,
39- " D402" ,
40- " D413" ,
41- " D415" ,
42- " D416" ,
43- " D417" ,
44- # Others.
45- " D404" , # Do not start module docstring with "This".
46- " RET504" , # unnecessary variable assignment before return.
47- " S101" , # raise errors for asserts.
48- " B905" , # strict parameter for zip that was implemented in py310.
49- " ANN101" , # type annotating self
50- " ANN102" , # type annotating cls
51- " FBT" , # flake8-boolean-trap
52- " EM" , # flake8-errmsg
53- " ANN401" , # flake8-annotate typing.Any
54- " PD" , # pandas-vet
55- " COM812" , # trailing comma missing, but black takes care of that
56- ]
26+ unsafe-fixes = true
5727
28+ [tool .ruff .lint ]
29+ select = [" ALL" ]
30+ ignore = [
31+ " ANN101" ,
32+ " ANN102" ,
33+ " ANN401" , # flake8-annotate typing.Any
34+ " COM812" , # Comply with ruff-format.
35+ " ISC001" , # Comply with ruff-format.
36+ ]
5837
59- [tool .ruff .per-file-ignores ]
60- "tests/*" = [" D" , " ANN" ]
38+ [tool .ruff .lint . per-file-ignores ]
39+ "tests/*" = [" D" , " ANN" , " S101 " ]
6140"__init__.py" = [" D104" ]
6241
42+ [tool .ruff .lint .isort ]
43+ force-single-line = true
6344
64- [tool .ruff .pydocstyle ]
45+ [tool .ruff .lint . pydocstyle ]
6546convention = " numpy"
6647
67-
6848[tool .pytest .ini_options ]
6949# Do not add src since it messes with the loading of pytask-parallel as a plugin.
7050testpaths = [" tests" ]
0 commit comments