-
Notifications
You must be signed in to change notification settings - Fork 49
/
pyproject.toml
138 lines (123 loc) · 2.91 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
[build-system]
requires = [
"setuptools>=61.2",
"setuptools_scm[toml]>=7.0.1",
]
build-backend = "setuptools.build_meta"
[project]
name = "unyt"
description = "A package for handling numpy arrays with units"
authors = [
{ name = "The yt project", email = "[email protected]" },
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: Implementation :: CPython",
]
keywords = [
"unyt",
]
requires-python = ">=3.9"
dependencies = [
"numpy>=1.19.3, <3.0",
"sympy>=1.7",
"packaging>=20.9",
]
dynamic = [
"version",
]
[project.readme]
file = "README.rst"
content-type = "text/x-rst"
[project.license]
text = "BSD-3-Clause"
[project.urls]
Homepage = "https://github.com/yt-project/unyt"
Documentation = "https://unyt.readthedocs.io/en/stable/index.html"
Changelog = "https://unyt.readthedocs.io/en/stable/history.html"
[tool.setuptools]
include-package-data = true
zip-safe = false
license-files = [
"LICENSE",
]
[tool.setuptools.packages.find]
include = [
"unyt",
"unyt.tests",
"unyt.tests.data",
"unyt._mpl_array_converter",
]
namespaces = false
[tool.setuptools.package-data]
unyt = [
"tests/data/old_json_registry.txt",
]
[tool.black]
exclude = '''
(
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
| _version.py
)
)
'''
[tool.ruff]
exclude = [
".*/",
"benchmarks/*.py",
"paper/*.py",
"*/_version.py",
"*/__init__.py",
]
[tool.ruff.lint]
ignore = [
"E501",
"B904",
]
select = [
"E",
"F",
"W",
"C4", # flake8-comprehensions
"B", # flake8-bugbear
"YTT", # flake8-2020
"I", # isort
"UP", # pyupgrade
"NPY", # numpy specific rules
]
[tool.ruff.lint.isort]
combine-as-imports = true
[tool.setuptools_scm]
write_to = "unyt/_version.py"
version_scheme = "post-release"
[tool.pytest.ini_options]
addopts = "--ignore=benchmarks --ignore=paper --ignore=unyt/_mpl_array_converter --color=yes"
filterwarnings = [
"error",
"ignore:Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure.:UserWarning",
"ignore:FigureCanvasAgg is non-interactive, and thus cannot be shown:UserWarning",
"ignore:distutils Version classes are deprecated. Use packaging.version instead.:DeprecationWarning",
'ignore:datetime\.datetime\.utcfromtimestamp\(\) is deprecated:DeprecationWarning', # https://github.com/dateutil/dateutil/pull/1285
'ignore:mpnumeric is deprecated:DeprecationWarning', # sympy 1.12 VS mpmath 1.4, solution: https://github.com/sympy/sympy/pull/25290
]
[tool.coverage.run]
omit = [
"docs/*",
"unyt/_version.py",
"unyt/_on_demand_imports.py",
"unyt/tests/test_linters.py",
]