-
Notifications
You must be signed in to change notification settings - Fork 24
/
pyproject.toml
215 lines (193 loc) · 5.08 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
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
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "particle"
description = "Extended PDG particle data and MC identification codes"
readme = "README.md"
requires-python = ">=3.8"
authors = [
{ name = "Eduardo Rodrigues", email = "[email protected]" },
{ name = "Henry Schreiner", email = "[email protected]" },
]
maintainers = [
{ name = "Scikit-HEP", email = "[email protected]" },
]
keywords = [
"HEP",
"MC identification codes",
"PDG",
"PDGID",
"particle",
"particle data table",
"particle properties",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering",
]
dependencies = [
"attrs>=19.2",
"hepunits>=2.0.0",
"importlib-resources>=2.0;python_version<\"3.9\"",
"typing-extensions>=4.5;python_version<\"3.13\"",
]
dynamic = ["version"]
[project.optional-dependencies]
dev = [
"pandas",
"pytest-benchmark",
"pytest>=6",
"tabulate",
"pre-commit",
]
test = [
"pandas",
"pytest-benchmark",
"pytest-cov",
"pytest>=6",
"tabulate",
]
all = [
"particle[dev,test]",
]
[project.urls]
Homepage = "https://github.com/scikit-hep/particle"
[tool.hatch]
version.source = "vcs"
build.hooks.vcs.version-file = "src/particle/version.py"
[tool.mypy]
warn_unused_configs = true
warn_unused_ignores = true
python_version = "3.9"
files = "src"
strict = true
warn_unreachable = true
enable_error_code = [
"ignore-without-code",
"redundant-expr",
"truthy-bool",
]
[[tool.mypy.overrides]]
module = [
"pandas.*",
"numpy.*",
]
ignore_missing_imports = true
[tool.pytest.ini_options]
minversion = "6.0"
testpaths = ["tests"]
junit_family = "xunit2"
log_cli_level = "info"
xfail_strict = true
addopts = [
"--benchmark-disable",
"-ra",
"--showlocals",
"--strict-markers",
"--strict-config",
]
filterwarnings = [
"error",
'''ignore:\s*A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method:FutureWarning''',
]
[tool.pylint]
py-version = "3.8"
reports.output-format = "colorized"
similarities.ignore-imports = "yes"
jobs = "0"
messages_control.enable = [
"useless-suppression",
]
messages_control.disable = [
"duplicate-code",
"fixme",
"invalid-name",
"invalid-unary-operand-type",
"line-too-long",
"missing-class-docstring",
"missing-function-docstring",
"missing-module-docstring",
"too-few-public-methods",
"too-many-arguments",
"too-many-branches",
"too-many-instance-attributes",
"too-many-lines",
"too-many-locals",
"too-many-positional-arguments",
"too-many-public-methods",
"too-many-return-statements",
"too-many-statements",
"unsubscriptable-object",
"unsupported-assignment-operation",
"unused-argument", # Handled by Ruff
"wrong-import-position",
]
[tool.ruff]
src = ["src"]
[tool.ruff.lint]
extend-select = [
"B", # flake8-bugbear
"I", # isort
"ARG", # flake8-unused-arguments
"C4", # flake8-comprehensions
"ICN", # flake8-import-conventions
"ISC", # flake8-implicit-str-concat
"PGH", # pygrep-hooks
"PIE", # flake8-pie
"PL", # pylint
"PT", # flake8-pytest-style
"RET", # flake8-return
"RUF", # Ruff-specific
"SIM", # flake8-simplify
"T20", # flake8-print
"UP", # pyupgrade
"YTT", # flake8-2020
]
ignore = [
"RUF001", # Ambiguous unicode
"RUF002", # Ambiguous unicode docstring
"PLR2004", # Magic value used in comparison
"PLR09", # Too many X
"ISC001", # Conflicts with the formatter
"E741", # Ambiguous variable name
"SIM103",
"T201",
]
isort.required-imports = ["from __future__ import annotations"]
mccabe.max-complexity = 24
[tool.ruff.lint.per-file-ignores]
"src/particle/__main__.py" = ["T20"]
"tests/**.py" = [
"PT013", # Importing approx from pytest is fine
"E402", # Module level import not at top of file (doesn't recognise pytest.importorskip)
]
[tool.repo-review]
ignore = ["RTD"]
[tool.pixi.project]
name = "particle"
channels = ["conda-forge"]
platforms = ["linux-64", "osx-64", "osx-arm64", "win-64"]
[tool.pixi.pypi-dependencies]
particle = { path = ".", editable = true}
[tool.pixi.dependencies]
numpy = ">=1.16"
pandas = ">=1"
attrs = ">=19"
jupyterlab = ">=4"
tabulate = "*"
[tool.pixi.tasks]
lab = "jupyter lab"