@@ -3,6 +3,50 @@ requires = ["setuptools>=45", "wheel", "setuptools_scm[toml]>=6.0"]
33build-backend = " setuptools.build_meta"
44
55
6+ [project ]
7+ name = " pytask_latex"
8+ description = " Compile LaTeX documents with pytask."
9+ classifiers = [
10+ " Development Status :: 4 - Beta" ,
11+ " License :: OSI Approved :: MIT License" ,
12+ " Operating System :: OS Independent" ,
13+ " Programming Language :: Python :: 3" ,
14+ " Programming Language :: Python :: 3 :: Only"
15+ ]
16+ requires-python = " >=3.8"
17+ dependencies = [ " latex-dependency-scanner>=0.1.1" , " pluggy>=1.0.0" , " pytask>=0.4.0" ]
18+ dynamic = [ " version" ]
19+ authors = [ { name = " Tobias Raabe" , email = " raabe@poste.de" }]
20+ readme = { file = " README.md" , content-type = " text/markdown" }
21+ license = { text = " MIT" }
22+
23+ [project .urls ]
24+ Homepage = " https://github.com/pytask-dev/pytask-latex"
25+ Changelog = " https://github.com/pytask-dev/pytask-latex/blob/main/CHANGES.md"
26+ Documentation = " https://github.com/pytask-dev/pytask-latex"
27+ Github = " https://github.com/pytask-dev/pytask-latex"
28+ Tracker = " https://github.com/pytask-dev/pytask-latex/issues"
29+
30+ [tool .setuptools ]
31+ include-package-data = true
32+ zip-safe = false
33+ platforms = [ " any" ,]
34+ license-files = [ " LICENSE" ]
35+
36+ [tool .check-manifest ]
37+ ignore = [" src/pytask_latex/_version.py" ]
38+
39+ [project .entry-points .pytask ]
40+ pytask_latex = " pytask_latex.plugin"
41+
42+ [tool .setuptools .package-dir ]
43+ "" = " src"
44+
45+ [tool .setuptools .packages .find ]
46+ where = [ " src" ]
47+ namespaces = false
48+
49+
650[tool .setuptools_scm ]
751write_to = " src/pytask_latex/_version.py"
852
@@ -28,9 +72,8 @@ ignore_errors = true
2872target-version = " py38"
2973select = [" ALL" ]
3074fix = true
75+ unsafe-fixes = true
3176extend-ignore = [
32- " TCH" ,
33- " TRY" ,
3477 # Numpy docstyle
3578 " D107" ,
3679 " D203" ,
@@ -42,23 +85,17 @@ extend-ignore = [
4285 " D416" ,
4386 " D417" ,
4487 # 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.
4988 " I" , # ignore isort
5089 " ANN101" , # type annotating self
5190 " ANN102" , # type annotating cls
52- " FBT" , # flake8-boolean-trap
53- " EM" , # flake8-errmsg
54- " ANN401" , # flake8-annotate typing.Any
55- " PD" , # pandas-vet
56- " COM812" , # trailing comma missing, but black takes care of that
91+ " ANN401" , # Allow typing.Any.
92+ " COM812" , # Comply with ruff-format
93+ " ISC001" , # Comply with ruff-format
5794]
5895
5996
6097[tool .ruff .per-file-ignores ]
61- "tests/*" = [" D" , " ANN" , " PLR2004" ]
98+ "tests/*" = [" D" , " ANN" , " PLR2004" , " S101 " ]
6299
63100
64101[tool .ruff .pydocstyle ]
@@ -67,7 +104,7 @@ convention = "numpy"
67104
68105[tool .pytest .ini_options ]
69106# Do not add src since it messes with the loading of pytask-parallel as a plugin.
70- testpaths = [" tests" ]
107+ testpaths = [" src " , " tests" ]
71108markers = [
72109 " wip: Tests that are work-in-progress." ,
73110 " unit: Flag for unit tests which target mainly a single function." ,
0 commit comments