-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpixi.toml
145 lines (117 loc) · 2.95 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
[project]
name = "upstage-des"
channels = ["conda-forge"]
platforms = ["linux-64", "osx-64", "osx-arm64", "win-64"]
[pypi-dependencies]
upstage-des = { path = ".", editable = true }
[dependencies]
python = ">=3.11"
# generic tasks ###########################################
[tasks]
[tasks.lint-fix]
description = """Run all lint fixers"""
depends-on = ["fix-pyproject", "fix-ssort", "format-ruff", "fix-ruff", "mypy"]
cmd = "echo ✍️"
[tasks.lint-check]
description = """Run all lint checkers"""
depends-on = ["check-pyproject", "check-ssort", "check-ruff", "mypy"]
cmd = "echo 👀"
[feature.tasks-test.tasks]
[feature.tasks-test.tasks.test]
cmd = "pytest"
inputs = ["src/upstage_des/**/*.py"]
outputs = ["build/reports/pytest.html"]
[feature.tasks-lint.tasks.fix-pyproject]
cmd = "pyproject-fmt pyproject.toml"
inputs = ["pyproject.toml"]
[feature.tasks-lint.tasks.fix-ssort]
cmd = "ssort src/**/*.py"
inputs = ["src/**/*.py"]
[feature.tasks-lint.tasks.format-ruff]
cmd = "ruff format src src/**/*.py"
inputs = ["src/**/*.py"]
[feature.tasks-lint.tasks.fix-ruff]
cmd = "ruff check src/ --fix"
inputs = ["src/**/*.py"]
[feature.tasks-lint.tasks.mypy]
cmd = "mypy --show-error-codes -p upstage_des"
inputs = ["src/**/*.py"]
[feature.tasks-lint.tasks.check-pyproject]
cmd = "pyproject-fmt pyproject.toml --check"
inputs = ["pyproject.toml"]
[feature.tasks-lint.tasks.check-ssort]
cmd = "ssort --check src/**/*.py"
inputs = ["src/**/*.py"]
[feature.tasks-lint.tasks.check-ruff]
cmd = "ruff check src/"
inputs = ["src/**/*.py"]
[feature.tasks-docs.tasks.autogen]
description = "Autobuild the code documentation"
cmd = "sphinx-apidoc -f -o ./docs/source/auto ./src/upstage_des ./src/upstage_des/test"
[feature.tasks-docs.tasks.build_html_docs]
description = "Build the documentation"
cmd = "sphinx-build -a -E -b html ./docs/source ./build/docs"
depends-on = ["autogen"]
[feature.tasks-start.tasks.first]
description = "Set up and test"
depends-on = ["lint-check", "test", "build_html_docs"]
[environments.dev]
features = [
"deps-lint",
"deps-test",
"deps-docs",
"tasks-lint",
"tasks-test",
"tasks-docs",
"tasks-start",
]
[environments.py311]
features = [
"py311",
"deps-lint",
"deps-test",
"deps-docs",
"tasks-lint",
"tasks-test",
]
[environments.py312]
features = [
"py312",
"deps-lint",
"deps-test",
"deps-docs",
"tasks-lint",
"tasks-test",
"tasks-docs",
]
[environments.py313]
features = [
"py313",
"deps-lint",
"deps-test",
"deps-docs",
"tasks-lint",
"tasks-test",
]
[feature.py311.dependencies]
python = "3.11.*"
[feature.py312.dependencies]
python = "3.12.*"
[feature.py313.dependencies]
python = "3.13.*"
[feature.deps-lint.dependencies]
mypy = "*"
pyproject-fmt = ">=2.5"
ruff = ">=0.6"
ssort = ">=0.12"
[feature.deps-test.dependencies]
pytest = "*"
pytest-cov = "*"
lxml = "*"
pytest-html = "*"
pytest-xdist = "*"
pytest-json-report = "*"
[feature.deps-docs.dependencies]
myst-parser = "*"
pydata-sphinx-theme = "*"
sphinx = ">=7"