-
Notifications
You must be signed in to change notification settings - Fork 76
/
pyproject.toml
173 lines (161 loc) · 4 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
[build-system]
build-backend = "hatchling.build"
requires = [
"hatchling",
"hatch-vcs"
]
[lint.mccabe]
max-complexity = 100
[project]
authors = [
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Operating System :: MacOS",
"Operating System :: POSIX",
"Operating System :: Unix",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"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",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Scientific/Engineering :: Mathematics",
"Topic :: Scientific/Engineering :: Physics",
"Topic :: Software Development",
"Topic :: Utilities"
]
dependencies = [
"awkward>=2.4.6",
"cramjam>=2.5.0",
"xxhash",
"numpy",
"fsspec",
"packaging",
"typing_extensions>=4.1.0; python_version < \"3.11\""
]
description = "ROOT I/O in pure Python and NumPy."
dynamic = [
"version"
]
license = "BSD-3-Clause"
name = "uproot"
readme = "README.md"
requires-python = ">=3.9"
[project.optional-dependencies]
dev = [
"boost_histogram>=0.13",
"dask-awkward>=2023.12.1",
"dask[array,distributed]",
"hist>=1.2",
"pandas",
"awkward-pandas"
]
http = ["aiohttp"]
s3 = ["s3fs"]
test = [
"isal",
"deflate",
"minio",
"aiohttp",
"fsspec-xrootd",
"s3fs",
"paramiko",
"pytest>=6",
"pytest-timeout",
"pytest-rerunfailures",
"requests",
"scikit-hep-testdata",
"rangehttpserver"
]
test-pyodide = [
"pytest>=6",
"pytest-pyodide",
"pytest-timeout",
"scikit-hep-testdata"
]
xrootd = ["fsspec-xrootd"]
[project.urls]
Download = "https://github.com/scikit-hep/uproot5/releases"
Homepage = "https://github.com/scikit-hep/uproot5"
[tool.hatch.build.hooks.vcs]
version-file = "src/uproot/version.py"
[tool.hatch.version]
path = "src/uproot/__init__.py"
source = "vcs"
[tool.isort]
profile = "black"
[tool.pytest.ini_options]
addopts = ["-ra", "--showlocals", "--strict-markers", "--strict-config"]
filterwarnings = [
"error",
"default:module 'sre_.*' is deprecated:DeprecationWarning",
"ignore:unclosed transport <asyncio.sslproto._SSLProtocolTransport" # https://github.com/aio-libs/aiohttp/issues/1115
]
log_cli_level = "info"
markers = [
"slow",
"network",
"distributed",
"xrootd"
]
minversion = "6.0"
testpaths = ["tests"]
timeout = 600
xfail_strict = true
[tool.ruff]
exclude = [
"tests/*.py",
"src/uproot/__init__.py",
"docs-sphinx/*.py"
]
src = ["src"]
[tool.ruff.lint]
ignore = [
"E501",
"E722",
"PLR",
"PLW0120", # else on loop without break
"SIM118", # key in dict, broken since uproot doesn't behave like a dict
"PGH003", # too-broad type ignore
"SIM114", # combine `if` branches using logical `or` operator
"S307", # no eval allowed
"PLC1901", # empty string is falsey (but I don't want to rely on such weak typing)
"RUF012", # enforces type annotations on a codebase that lacks type annotations
"SIM103" # interferes with my if-elif-elif-else blocks
]
select = [
"E",
"F",
"W", # flake8
"B",
"B904", # flake8-bugbear
"I", # isort
# "ARG", # flake8-unused-arguments
"C4", # flake8-comprehensions
"ISC", # flake8-implicit-str-concat
"PGH", # pygrep-hooks
"PIE", # flake8-pie
"PL", # pylint
"PT", # flake8-pytest-style
"RUF", # Ruff-specific
"SIM", # flake8-simplify
"T20", # flake8-print
"UP", # pyupgrade
"YTT" # flake8-2020
]
isort.required-imports = ["from __future__ import annotations"]
[tool.ruff.lint.per-file-ignores]
"dev/*" = ["T20", "T201"]
"src/uproot/*/file.py" = ["SIM115"]
[tool.setuptools_scm]
write_to = "src/uproot/_version.py"