-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
146 lines (118 loc) · 3.74 KB
/
pyproject.toml
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
[project]
name = "pytask_julia"
description = "A Pytask plugin for Julia"
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.8"
dependencies = ["click", "pluggy>=1.0.0", "pytask>=0.4.5"]
dynamic = ["version"]
[[project.authors]]
name = "Tobias Raabe"
email = "[email protected]"
[project.readme]
file = "README.md"
content-type = "text/markdown"
[project.license]
text = "MIT"
[project.urls]
Homepage = "https://github.com/pytask-dev/pytask-julia"
Changelog = "https://github.com/pytask-dev/pytask-julia/blob/main/CHANGES.md"
Documentation = "https://github.com/pytask-dev/pytask-julia"
Github = "https://github.com/pytask-dev/pytask-julia"
Tracker = "https://github.com/pytask-dev/pytask-julia/issues"
[project.entry-points.pytask]
pytask_julia = "pytask_julia.plugin"
[project.optional-dependencies]
test = ["pytask-parallel", "pytest", "pytest-cov", "pytest-xdist", "pyyaml"]
typing = ["mypy", "pyyaml", "types-PyYAML"]
[tool.rye]
managed = true
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[tool.hatch.build.hooks.vcs]
version-file = "src/pytask_julia/_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.mypy]
files = ["src", "tests"]
check_untyped_defs = true
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_untyped_defs = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
[[tool.mypy.overrides]]
module = "tests.*"
disallow_untyped_defs = false
ignore_errors = true
[tool.ruff]
target-version = "py38"
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", "S101"]
[tool.ruff.lint.isort]
force-single-line = true
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.pytest.ini_options]
testpaths = ["src", "tests"]
markers = [
"wip: Tests that are work-in-progress.",
"unit: Flag for unit tests which target mainly a single function.",
"integration: Flag for integration tests which may comprise of multiple unit tests.",
"end_to_end: Flag for tests that cover the whole program.",
]
norecursedirs = [".idea", ".tox"]
[tool.pixi.project]
channels = ["conda-forge"]
platforms = ["win-64", "linux-64", "osx-64", "osx-arm64"]
[tool.pixi.pypi-dependencies]
pytask_julia = { path = ".", editable = true }
[tool.pixi.environments]
default = { solve-group = "default", features = ["test", "typing"]}
test = { features = ["test"], solve-group = "default" }
py38 = { features = ["py38", "test"]}
py39 = { features = ["py39", "test"]}
py310 = { features = ["py310", "test"]}
py311 = { features = ["py311", "test"]}
py312 = { features = ["py312", "test"]}
[tool.pixi.feature.py38.dependencies]
python = "3.8.*"
[tool.pixi.feature.py39.dependencies]
python = "3.9.*"
[tool.pixi.feature.py310.dependencies]
python = "3.10.*"
[tool.pixi.feature.py311.dependencies]
python = "3.11.*"
[tool.pixi.feature.py312.dependencies]
python = "3.12.*"
[tool.pixi.feature.test.target.linux-64.dependencies]
julia = ">=1.0.0"
[tool.pixi.feature.test.target.osx-64.dependencies]
julia = ">=1.0.0"
[tool.pixi.feature.test.tasks]
setup-julia = "julia --project=. --eval 'import Pkg; Pkg.instantiate()'"
test = { cmd = "pytest --cov src --cov tests", depends_on = ["setup-julia"] }