22requires = [" setuptools>=45" , " wheel" , " setuptools_scm[toml]>=6.0" ]
33build-backend = " setuptools.build_meta"
44
5-
65[project ]
76name = " pytask_latex"
87description = " Compile LaTeX documents with pytask."
@@ -49,11 +48,9 @@ pytask_latex = "pytask_latex.plugin"
4948where = [ " src" ]
5049namespaces = false
5150
52-
5351[tool .setuptools_scm ]
5452write_to = " src/pytask_latex/_version.py"
5553
56-
5754[tool .mypy ]
5855files = [" src" , " tests" ]
5956check_untyped_defs = true
@@ -64,37 +61,36 @@ no_implicit_optional = true
6461warn_redundant_casts = true
6562warn_unused_ignores = true
6663
67-
6864[[tool .mypy .overrides ]]
6965module = " tests.*"
7066disallow_untyped_defs = false
7167ignore_errors = true
7268
73-
7469[tool .ruff ]
7570target-version = " py38"
76- select = [" ALL" ]
7771fix = true
7872unsafe-fixes = true
73+
74+ [tool .ruff .lint ]
7975extend-ignore = [
8076 # Others.
81- " I" , # ignore isort
8277 " ANN101" , # type annotating self
8378 " ANN102" , # type annotating cls
8479 " ANN401" , # Allow typing.Any.
8580 " COM812" , # Comply with ruff-format
8681 " ISC001" , # Comply with ruff-format
8782]
83+ select = [" ALL" ]
8884
89-
90- [tool .ruff .per-file-ignores ]
85+ [tool .ruff .lint .per-file-ignores ]
9186"tests/*" = [" D" , " ANN" , " PLR2004" , " S101" ]
9287
88+ [tool .ruff .lint .isort ]
89+ force-single-line = true
9390
94- [tool .ruff .pydocstyle ]
91+ [tool .ruff .lint . pydocstyle ]
9592convention = " numpy"
9693
97-
9894[tool .pytest .ini_options ]
9995# Do not add src since it messes with the loading of pytask-parallel as a plugin.
10096testpaths = [" src" , " tests" ]
0 commit comments