Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
127 lines (111 loc) · 3.17 KB
/
Copy pathpyproject.toml
File metadata and controls
127 lines (111 loc) · 3.17 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
# SPDX-FileCopyrightText: © 2022 the SimWeights contributors
#
# SPDX-License-Identifier: BSD-2-Clause
[build-system]
build-backend = "flit_core.buildapi"
requires = ["flit_core >=3.2,<5"]
[project]
authors = [{ name = "Kevin Meagher" }]
classifiers = [
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Operating System :: MacOS :: MacOS X',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
'Programming Language :: Python :: 3.14',
'Topic :: Scientific/Engineering :: Astronomy',
'Topic :: Scientific/Engineering :: Physics'
]
dependencies = ["numpy>=2", "scipy"]
dynamic = ["version", "description"]
keywords = ["python", "science", "astronomy", "astrophysics", "IceCube", "neutrino", "simulation"]
license = { file = "LICENSES/BSD-2-Clause.txt" }
name = "simweights"
readme = "README.rst"
requires-python = "~=3.10"
[project.optional-dependencies]
dev = ["pytest", "pre-commit", "reuse", "ruff"]
docs = ["sphinx", "sphinx-rtd-theme", "pandas"]
examples = ['matplotlib']
test = [
"h5py",
"tables",
"pandas",
"uproot",
"pytest-cov",
'pytest-regressions'
]
[project.scripts]
simweights = "simweights.cmdline:main"
[project.urls]
Collaboration = "https://icecube.wisc.edu"
Documentation = "https://docs.icecube.aq/simweights/main"
Source = "https://github.com/icecube/simweights"
[tool.codespell]
ignore-words-list = 'livetime,assertIn'
skip = '_build'
[tool.coverage.report]
exclude_also = ["from numpy.typing import"]
[tool.coverage.run]
command_line = "-m pytest"
omit = ["*/simweights/cmdline.py"]
source = ["simweights"]
[tool.doc8]
max-line-length = 128
[tool.pytest.ini_options]
addopts = ["-ra", "--strict-config", "--strict-markers", "--cov=simweights", "-W ignore"]
filterwarnings = ["error"]
log_cli_level = "INFO"
minversion = "7.0"
testpaths = ["tests"]
xfail_strict = true
[tool.ruff]
line-length = 128
namespace-packages = ["examples", "contrib", "docs"]
[tool.ruff.lint]
fixable = ["I", "Q"]
ignore = [
"ANN401", # any-type
"CPY001", # Missing copyright notice at top of file
"S101", # assert-used
"COM812", # conflicts with ruff formatter
"PLR0911", # Too many return statement
"PLW1641" # object does not implement `__hash__` method
]
select = ["ALL"]
[tool.ruff.lint.per-file-ignores]
"contrib/*" = ["T201"] # flake8-print
"examples/*" = [
"D", # pydocstyle
"F401", # unused-import
"T201", # flake8-print
"N802" # Function name should be lowercase
]
"tests/*" = [
"D", # pydocstyle
"N", # pep8-naming
"ANN", # flake8-annotations
"PT", # flake8-pytest-style
"SLF001", # private-member-access
"PLR2004", # magic-value-comparison
"PLR0915", # too-many-statements
"S307", # suspicious-eval-usage
"ARG005" # unused function argument
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = py3{10,11,12,13,14}
isolated_build = True
[testenv]
passenv = SIMWEIGHTS_TESTDATA, HDF5_DIR
deps = .[test]
commands = pytest
"""