-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
137 lines (118 loc) · 3.33 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
# SPDX-FileCopyrightText: © 2022 the SimWeights contributors
#
# SPDX-License-Identifier: BSD-2-Clause
[build-system]
build-backend = "flit_core.buildapi"
requires = ["flit_core >=3.2,<4"]
[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.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Topic :: Scientific/Engineering :: Astronomy',
'Topic :: Scientific/Engineering :: Physics'
]
dependencies = ["numpy>=1.21.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.8"
[project.optional-dependencies]
dev = ["pytest", "pre-commit", "reuse", "black", "ruff", "pylint", "mypy"]
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.mypy]
enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]
plugins = "numpy.typing.mypy_plugin"
strict = true
warn_unreachable = true
[tool.pylint.format]
max-line-length = "128"
[tool.pylint.messages_control]
disable = "C0114,R0902,R0913,R0917"
[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"]
ignore = [
"ANN401", # any-type
"S101", # assert-used
"COM812", # conflicts with ruff formatter
"ISC001", # conflicts with ruff formatter
"PLR0913" # Too many arguments in function definition
]
select = ["ALL"]
[tool.ruff.lint.per-file-ignores]
"contrib/*" = ["T201"]
"examples/*" = [
"D", # pydocstyle
"F401", # unused-import
"T201" # flake8-print
]
"tests/*" = [
"D", # pydocstyle
"N", # pep8-naming
"ANN", # flake8-annotations
"PT", # flake8-pytest-style
"PGH001", # eval
"SLF001", # private-member-access
"PLR2004", # magic-value-comparison
"PLR0915", # too-many-statements
"S307" # suspicious-eval-usage
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = py3{9,10,11,12,13}
isolated_build = True
[testenv]
passenv = SIMWEIGHTS_TESTDATA, HDF5_DIR
deps = .[test]
commands = pytest
"""