-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
149 lines (123 loc) · 3.12 KB
/
pyproject.toml
File metadata and controls
149 lines (123 loc) · 3.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
[project]
name = "pytask_parallel"
description = "Parallelize the execution of tasks with pytask."
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
]
requires-python = ">=3.10"
dependencies = [
"attrs>=21.3.0",
"click>=8.1.8,!=8.2.0",
"cloudpickle",
"loky",
"pluggy>=1.0.0",
"pytask>=0.5.2",
"rich",
]
dynamic = ["version"]
[[project.authors]]
name = "Tobias Raabe"
email = "raabe@posteo.de"
[dependency-groups]
coiled = ["coiled>=0.9.4"]
dask = ["dask[complete]", "distributed"]
docs = [
"furo",
"ipython",
"matplotlib",
"myst-parser",
"nbsphinx",
"sphinx<9",
"sphinx-autobuild",
"sphinx-click",
"sphinx-copybutton",
"sphinx-design>=0.3",
"sphinx-toolbox",
"sphinxext-opengraph",
]
test = [
"nbmake",
"pytest>=8.4.0",
"pytest-cov>=5.0.0",
{include-group = "coiled"},
{include-group = "dask"},
]
typing = [
"pytask-parallel",
"ty>=0.0.8",
{include-group = "coiled"},
{include-group = "dask"},
]
[project.readme]
file = "README.md"
content-type = "text/markdown"
[project.license]
text = "MIT"
[project.urls]
Homepage = "https://pytask-parallel.readthedocs.io/"
Changelog = "https://pytask-parallel.readthedocs.io/en/latest/changes.html"
Documentation = "https://pytask-parallel.readthedocs.io/"
Github = "https://github.com/pytask-dev/pytask-parallel"
Tracker = "https://github.com/pytask-dev/pytask-parallel/issues"
[project.entry-points.pytask]
pytask_parallel = "pytask_parallel.plugin"
[build-system]
requires = ["hatchling", "hatch_vcs"]
build-backend = "hatchling.build"
[tool.hatch.build.hooks.vcs]
version-file = "src/pytask_parallel/_version.py"
[tool.hatch.build.targets.sdist]
exclude = ["tests"]
only-packages = true
[tool.hatch.build.targets.wheel]
exclude = ["tests"]
only-packages = true
[tool.hatch.version]
source = "vcs"
[tool.hatch.metadata]
allow-direct-references = true
[tool.ruff]
fix = true
unsafe-fixes = true
[tool.ruff.lint]
extend-ignore = [
"ANN401", # flake8-annotate typing.Any
"COM812", # Comply with ruff-format.
"ISC001", # Comply with ruff-format.
]
select = ["ALL"]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["D", "ANN", "PLR2004", "S101"]
"docs/source/conf.py" = ["INP001"]
"docs_src/*" = ["ARG001", "D", "INP001", "S301"]
[tool.ruff.lint.isort]
force-single-line = true
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ty.rules]
unused-ignore-comment = "error"
[tool.ty.terminal]
error-on-warning = true
[[tool.ty.overrides]]
include = ["src/**/_version.py"]
[tool.ty.overrides.rules]
invalid-type-form = "ignore"
[[tool.ty.overrides]]
include = ["src/**/__init__.py"]
[tool.ty.overrides.rules]
unused-ignore-comment = "ignore"
[tool.pytest.ini_options]
addopts = ["--nbmake"]
# Do not add src since it messes with the loading of pytask-parallel as a plugin.
testpaths = ["tests"]
[tool.coverage.report]
exclude_also = [
"pragma: no cover",
"if TYPE_CHECKING.*:",
"\\.\\.\\.",
"def __repr__",
]