This repository was archived by the owner on Oct 15, 2026. It is now read-only.
Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
200 lines (171 loc) · 4.57 KB
/
Copy pathpyproject.toml
File metadata and controls
200 lines (171 loc) · 4.57 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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
[project]
name = "ampform-529"
version = "0.1.0"
readme = "README.md"
requires-python = "~=3.14.0"
license = "Apache-2.0"
license-files = ["LICENSE"]
dependencies = [
"ampform @ git+https://github.com/ComPWA/ampform@f481d880c40fa3178718c96b1c254c827f77f393",
"ipywidgets",
"jupyterlab",
"jupyterlite-core",
"jupyterlite-pyodide-kernel",
"qrules==0.10.10",
"sympy",
]
[dependency-groups]
dev = [
"ruff",
{ include-group = "jupyter" },
]
jupyter = [
"jupyter-ruff",
"jupyterlab",
"jupyterlab-git",
"jupyterlab-lsp",
"jupyterlab-quickopen",
"python-lsp-server",
]
[tool.compwa.policy]
repo-name = "ampform-529"
repo-title = "AmpForm issue 529"
[tool.compwa.policy.nb]
no-binder = true
[tool.compwa.policy.github]
dependabot-ecosystems = []
keep-workflow = [
"build.yml",
"lock.yml",
]
no-cd = true
no-github-actions = true
[tool.compwa.policy.format]
no-cspell-update = true
[tool.poe.executor]
isolated = true
no-group = "dev"
type = "uv"
[tool.poe.groups.doc.tasks.doc]
deps = ["_browser-wheel"]
cmd = "jupyter lite build --contents content --output-dir dist --piplite-wheels wheels/"
help = "Build the JupyterLite website"
[tool.poe.groups.doc.tasks.doclive]
deps = ["_browser-wheel"]
cmd = "jupyter lite serve --contents content --output-dir dist --piplite-wheels wheels/"
help = "Set up a server to directly preview changes to the HTML pages"
[tool.poe.groups.notebook]
heading = "Notebooks"
[tool.poe.groups.notebook.tasks.lab]
args = [{ name = "paths", default = "", positional = true }]
cmd = "jupyter lab ${paths}"
executor = { group = "jupyter" }
help = "Launch Jupyter Lab"
[tool.poe.groups.notebook.tasks.nb]
args = [{ name = "paths", default = "content", multiple = true, positional = true }]
cmd = "pytest --nbmake --nbmake-timeout=0 ${paths}"
help = "Run all notebooks"
executor = { with = "nbmake" }
[tool.poe.tasks._browser-wheel]
cmd = "pip wheel --no-deps --wheel-dir wheels ampform@git+https://github.com/ComPWA/ampform@f481d880c40fa3178718c96b1c254c827f77f393"
executor = { with = "pip" }
[tool.poe.tasks.all]
help = "Run all continuous integration (CI) tasks locally"
ignore_fail = "return_non_zero"
sequence = [
"style",
"nb",
"doc",
]
[tool.poe.tasks.style]
cmd = "prek run --all-files"
help = "Perform all linting, formatting, and spelling checks"
[tool.poe.tasks.upgrade]
executor = { type = "simple" }
help = "Upgrade lock files"
parallel = [
"_upgrade-precommit",
"_upgrade-uv",
]
[tool.poe.tasks._upgrade-precommit]
cmd = "prek autoupdate"
executor = { type = "simple" }
[tool.poe.tasks._upgrade-uv]
cmd = "uv lock --upgrade"
executor = { type = "simple" }
[tool.ruff]
extend-include = ["*.ipynb"]
preview = true
show-fixes = true
[tool.ruff.format]
docstring-code-format = true
line-ending = "lf"
[tool.ruff.lint]
allowed-confusables = ["→"]
ignore = [
"DOC",
"PTH",
"any-type",
"if-else-block-instead-of-if-exp",
"incorrect-blank-line-before-class",
"line-too-long",
"logging-f-string",
"missing-copyright-notice",
"missing-dashed-underline-after-section",
"missing-section-name-colon",
"missing-trailing-comma",
"multi-line-summary-second-line",
"non-empty-init-module",
"pytest-fixture-incorrect-parentheses-style",
"read-whole-file",
"reimplemented-starmap",
"single-line-implicit-string-concatenation",
"undocumented-magic-method",
"undocumented-public-class",
"undocumented-public-function",
"undocumented-public-init",
"undocumented-public-method",
"unspecified-encoding",
"write-whole-file",
]
select = ["ALL"]
task-tags = ["cspell"]
[tool.ruff.lint.flake8-builtins]
ignorelist = ["display"]
[tool.ruff.lint.flake8-comprehensions]
allow-dict-calls-with-keyword-arguments = true
[tool.ruff.lint.isort]
split-on-trailing-comma = false
[tool.ruff.lint.per-file-ignores]
"*.ipynb" = [
"ANN",
"C90",
"D",
"PLR09",
"T20",
"TC00",
"assert",
"global-statement",
"global-variable-not-assigned",
"invalid-argument-name",
"magic-value-comparison",
"mixed-case-variable-in-global-scope",
"non-ascii-name",
"non-lowercase-variable-in-function",
"too-many-blank-lines",
"useless-expression",
"useless-semicolon",
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.tombi.files]
exclude = ["**/uv.lock"]
[tool.tombi.format.rules]
indent-width = 4
line-width = 88
[tool.tombi.lint.rules]
key-empty = "off"
[[tool.tombi.schemas]]
root = "tool.compwa.policy"
path = "https://raw.githubusercontent.com/ComPWA/policy/0.10.1/compwa-policy.schema.json"
include = ["pyproject.toml"]