1
- [build-system ]
2
- build-backend = " setuptools.build_meta"
3
- requires = [" setuptools>=64" , " setuptools_scm[toml]>=8" ]
4
-
5
1
[project ]
6
2
name = " pytask_parallel"
7
3
description = " Parallelize the execution of tasks with pytask."
@@ -20,7 +16,7 @@ dependencies = [
20
16
" loky" ,
21
17
" pluggy>=1.0.0" ,
22
18
" pytask>=0.4.5" ,
23
- " rich"
19
+ " rich" ,
24
20
]
25
21
dynamic = [" version" ]
26
22
@@ -29,19 +25,20 @@ name = "Tobias Raabe"
29
25
30
26
31
27
[project .optional-dependencies ]
28
+ coiled = [" coiled>=0.9.4" ]
32
29
dask = [" dask[complete]" , " distributed" ]
33
30
docs = [
34
- " furo" ,
35
- " ipython" ,
36
- " matplotlib" ,
37
- " myst-parser" ,
38
- " nbsphinx" ,
39
- " sphinx" ,
40
- " sphinx-click" ,
41
- " sphinx-copybutton" ,
42
- " sphinx-design>=0.3" ,
43
- " sphinx-toolbox" ,
44
- " sphinxext-opengraph" ,
31
+ " furo" ,
32
+ " ipython" ,
33
+ " matplotlib" ,
34
+ " myst-parser" ,
35
+ " nbsphinx" ,
36
+ " sphinx" ,
37
+ " sphinx-click" ,
38
+ " sphinx-copybutton" ,
39
+ " sphinx-design>=0.3" ,
40
+ " sphinx-toolbox" ,
41
+ " sphinxext-opengraph" ,
45
42
]
46
43
test = [
47
44
" pytask-parallel[all]" ,
@@ -76,15 +73,36 @@ ignore = ["src/pytask_parallel/_version.py"]
76
73
[project .entry-points .pytask ]
77
74
pytask_parallel = " pytask_parallel.plugin"
78
75
79
- [tool .setuptools .package-dir ]
80
- "" = " src"
76
+ [build-system ]
77
+ requires = [" hatchling" , " hatch_vcs" ]
78
+ build-backend = " hatchling.build"
79
+
80
+ [tool .rye ]
81
+ managed = true
82
+ dev-dependencies = [
83
+ " s3fs>=2024.3.1" ,
84
+ ]
85
+
86
+ [tool .rye .scripts ]
87
+ clean-docs = { cmd = " rm -rf docs/build" }
88
+ build-docs = { cmd = " sphinx-build -b html docs/source docs/build" }
89
+
90
+ [tool .hatch .build .hooks .vcs ]
91
+ version-file = " src/pytask_parallel/_version.py"
92
+
93
+ [tool .hatch .build .targets .sdist ]
94
+ exclude = [" tests" ]
95
+ only-packages = true
96
+
97
+ [tool .hatch .build .targets .wheel ]
98
+ exclude = [" tests" ]
99
+ only-packages = true
81
100
82
- [tool .setuptools .packages .find ]
83
- where = [" src" ]
84
- namespaces = false
101
+ [tool .hatch .version ]
102
+ source = " vcs"
85
103
86
- [tool .setuptools_scm ]
87
- version_file = " src/pytask_parallel/_version.py "
104
+ [tool .hatch . metadata ]
105
+ allow-direct-references = true
88
106
89
107
[tool .mypy ]
90
108
files = [" src" , " tests" ]
@@ -108,9 +126,7 @@ unsafe-fixes = true
108
126
109
127
[tool .ruff .lint ]
110
128
extend-ignore = [
111
- # Others.
112
129
" ANN101" , # type annotating self
113
- " ANN102" , # type annotating cls
114
130
" ANN401" , # flake8-annotate typing.Any
115
131
" COM812" , # Comply with ruff-format.
116
132
" ISC001" , # Comply with ruff-format.
@@ -120,6 +136,7 @@ select = ["ALL"]
120
136
[tool .ruff .lint .per-file-ignores ]
121
137
"tests/*" = [" D" , " ANN" , " PLR2004" , " S101" ]
122
138
"docs/source/conf.py" = [" INP001" ]
139
+ "docs_src/*" = [" ARG001" , " D" , " INP001" , " S301" ]
123
140
124
141
[tool .ruff .lint .isort ]
125
142
force-single-line = true
0 commit comments