-
Notifications
You must be signed in to change notification settings - Fork 9
/
pixi.toml
149 lines (115 loc) · 4.13 KB
/
pixi.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
147
148
[project]
authors = ["Jermiah Joseph <jermiahjoseph98@gmail.com>"]
channels = ["conda-forge"]
description = "Add a short description here"
name = "med-imagetools"
platforms = ["linux-64", "osx-arm64"]
[dependencies]
python = "3.12.*"
pip = ">=24.3.1,<25"
[pypi-dependencies]
med-imagetools = { path = ".", editable = true }
[environments]
dev = [
"test",
"quality",
"build",
"dev",
"docs",
]
docs = ["docs"]
test = ["test", "quality"]
py310 = {features = ["py310", "test"], no-default-feature = true}
py311 = {features = ["py311", "test"], no-default-feature = true}
py312 = {features = ["py312", "test"], no-default-feature = true}
############################################## DEV ###############################################
[feature.dev.dependencies]
ipython = "*"
ipykernel = "*"
jupyterlab = "*"
[feature.dev.activation.env]
IMGTOOLS_LOG_LEVEL = "DEBUG"
############################################## PYTHON ###############################################
[feature.py310.dependencies]
python = "3.10.*"
[feature.py311.dependencies]
python = "3.11.*"
[feature.py312.dependencies]
python = "3.12.*"
############################################## TEST ################################################
[feature.test.dependencies]
pytest = "*"
pytest-cov = "*"
pytest-xdist = "*"
pytest-mock = ">=3.14.0,<4"
sqlalchemy-stubs = ">=0.4,<0.5"
[feature.test.pypi-dependencies]
med-imagetools = { path = ".", editable = true }
[feature.test.tasks.test]
cmd = "pytest -c config/pytest.ini"
inputs = ["src", "tests", "config/pytest.ini", "config/coverage.toml"]
description = "Run pytest"
[feature.test.tasks.coverage]
cmd = "coverage report --rcfile=config/coverage.toml"
inputs = ["coverage-report/coverage.xml", "config/coverage.toml"]
depends-on = ["test"]
description = "Run pytest and generate coverage report"
############################################## DOCS ###############################################
[feature.docs.dependencies]
mkdocs = "*"
mkdocs-material = ">=9.5.44,<10"
mkdocstrings = ">=0.27.0,<0.28"
mkdocstrings-python = ">=1.12.2,<2"
mkdocs-git-authors-plugin = ">=0.9.0,<0.10"
mkdocs-git-revision-date-localized-plugin = ">=1.2.9,<2"
griffe-inherited-docstrings = ">=1.1.1,<2"
mike = ">=2.1.2,<3"
mkdocs-include-markdown-plugin = ">=7.1.1,<8"
mkdocs-click = ">=0.6.0,<0.7"
black = ">=24.10.0,<25"
[feature.docs.pypi-dependencies]
mkdocs-awesome-pages-plugin = ">=2.9.3, <3"
[feature.docs.tasks]
doc-build.description = "Build the documentation using MkDocs"
doc-build.cmd = "mkdocs build -f mkdocs.yml"
doc-build.inputs = ["docs", "mkdocs.yml"]
doc-build.outputs = ["site"]
serve.description = "Serve the documentation to http://localhost:8000/"
serve.cmd = "mkdocs serve -f mkdocs.yml"
############################################## QUALITY ###############################################
# Quality includes linting, type checking, and formatting
[feature.quality.dependencies]
ruff = ">=0.4.8"
mypy = ">=1.13.0,<2"
types-pytz = ">=2024.2.0.20241003,<2025"
types-tqdm = ">=4.66.0.20240417,<5"
[feature.quality.pypi-dependencies]
pydoctest = ">=0.2.1, <0.3"
[feature.quality.tasks]
_ruff-check.cmd = ["ruff", "--config", "config/ruff.toml", "check", "src"]
_ruff-check.inputs = ["config/ruff.toml", "src"]
_ruff-check.description = "Run ruff check"
_ruff-format.cmd = ["ruff", "--config", "config/ruff.toml", "format", "src"]
_ruff-format.inputs = ["config/ruff.toml", "src"]
_ruff-format.description = "Run ruff format, run check first"
_type-check.cmd = ["mypy", "--config-file", "config/mypy.ini"]
_type-check.inputs = ["config/mypy.ini", "src"]
_type-check.description = "Run mypy type check."
qc.depends_on = ["_ruff-format", "_ruff-check", "_type-check"]
qc.description = "Quality check: ruff & mypy"
#################################### RELEASE & BUILD ###############################################
[feature.build.dependencies]
python-semantic-release = ">=9.14"
hatch = ">=1.13"
[feature.build.tasks]
semver = 'echo "Next Version is: $(semantic-release version --print)"'
build = { cmd = [
"hatch",
"build",
"--clean",
], inputs = [
"src",
"pyproject.toml",
], outputs = [
"dist/*",
], description = "🛠️ Builds the packages" }