-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
119 lines (100 loc) · 2.34 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
[build-system]
requires = ["setuptools>=61.0", "wheel", "Cython>=3.0.3", "numpy>=2.0"]
build-backend = "setuptools.build_meta"
[project]
name = "yt_experiments"
authors = [
{ name="The yt project", email="[email protected]"},
]
description="A repository containing some experimental packages and enhancements for yt"
requires-python = ">=3.10"
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: BSD License",
]
dependencies=['yt>4.2.0', 'numpy']
dynamic = ["version"]
[tool.setuptools.dynamic]
version = {attr = "yt_experiments.__version__"}
[project.readme]
file = "README.md"
content-type = "text/markdown"
[project.urls]
"Homepage" = "https://github.com/yt-project/yt_experiments"
"Bug Tracker" = "https://github.com/yt-project/yt_experiments/issues"
[project.license]
text = "BSD 3-Clause"
[project.optional-dependencies]
test = [
"pytest>=6.1",
]
[tool.setuptools]
packages = ["yt_experiments"]
[tool.pytest.ini_options]
addopts = '''
-s
-v
-rsfE
'''
[tool.black]
line-length = 88
target-version = ['py39']
include = '\.pyi?$'
exclude = '''
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| build
| dist
)/
'''
[tool.ruff]
extend-include = ["*.ipynb"]
exclude = [
"doc",
]
select = [
"E",
"F",
"W",
"C4", # flake8-comprehensions
"B", # flake8-bugbear
"G", # flake8-logging-format
"YTT", # flake8-2020
"UP", # pyupgrade
"I", # isort
"NPY", # numpy specific rules
]
ignore = [
"E501", # line too long
"B018", # Found useless expression. # disabled because ds.index is idiomatic
]
[tool.ruff.isort]
combine-as-imports = true
[tool.cibuildwheel]
build = "cp39-* cp310-* cp311-* cp312-* cp313-*"
build-verbosity = 1
[tool.cibuildwheel.linux]
archs = "x86_64"
[tool.cibuildwheel.macos]
archs = "auto"
[tool.cibuildwheel.windows]
archs = "auto64"
[tool.mypy]
files = ["yt_experiments",]
python_version = "3.10"
warn_unused_configs = true
strict = true
enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]
warn_unreachable = true
disallow_untyped_defs = false
disallow_incomplete_defs = false
disable_error_code = ["import-untyped", "import-not-found"]