-
-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathpyproject.toml
More file actions
166 lines (150 loc) · 3.71 KB
/
pyproject.toml
File metadata and controls
166 lines (150 loc) · 3.71 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
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
[build-system]
requires = ["flit_core >=3.4,<4"]
build-backend = "flit_core.buildapi"
[project]
name = "arviz-base"
readme = "README.md"
requires-python = ">=3.12"
license = {file = "LICENSE"}
authors = [
{name = "ArviZ team", email = "arvizdevs@gmail.com"}
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Intended Audience :: Education",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
dynamic = ["version", "description"]
dependencies = [
"numpy>=2",
"xarray>=2024.11.0",
"typing-extensions>=3.10",
"lazy_loader>=0.4",
]
[tool.flit.module]
name = "arviz_base"
[project.urls]
source = "https://github.com/arviz-devs/arviz-base"
tracker = "https://github.com/arviz-devs/arviz-base/issues"
documentation = "https://arviz-base.readthedocs.io"
funding = "https://opencollective.com/arviz"
[project.optional-dependencies]
test = [
"xarray!=2025.8.0",
"pytest",
"pytest-cov",
"scipy",
]
ci = [
"pre-commit",
"cloudpickle"
]
check = [
"build",
"pre-commit",
"docstub==0.4",
"mypy",
]
doc = [
"sphinx-book-theme",
"myst-parser[linkify]",
"myst-nb",
"sphinx-copybutton",
"numpydoc",
"sphinx>=5",
"sphinx-design",
"jupyter-sphinx",
"h5netcdf[h5py]",
"watermark"
]
netcdf4 = [
"netcdf4"
]
h5netcdf = [
"h5netcdf[h5py]"
]
zarr = [
"zarr"
]
[tool.ruff]
line-length = 100
[tool.ruff.lint]
select = [
"F", # Pyflakes
"E", # Pycodestyle
"W", # Pycodestyle
"D", # pydocstyle
"NPY", # numpy specific rules
"UP", # pyupgrade
"I", # isort
"PL", # Pylint
"TID", # Absolute imports
]
ignore = [
"PLR0912", # too many branches
"PLR0913", # too many arguments
"PLR2004", # magic value comparison
]
[tool.ruff.lint.per-file-ignores]
"docs/source/**/*.ipynb" = ["D", "E", "F", "I", "NPY", "PL", "TID", "UP", "W"]
"src/arviz_base/__init__.py*" = ["I", "F401", "E402", "F403"]
"src/arviz_base/rcparams.py" = ["F401"]
"src/arviz_base/example_data/**/*" = ["F", "E", "W", "D", "I", "PL"]
"tests/**/*" = ["D", "PLR2004", "TID252"]
"external_tests/**/*" = ["D", "PLR2004", "TID252"]
"src/arviz_base/**/*.pyi" = ["TID252"] # allow relative imports in stub files
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all" # Disallow all relative imports.
[tool.ruff.format]
docstring-code-format = false
[tool.mypy]
python_version = "3.10"
warn_redundant_casts = true
warn_unused_configs = true
pretty = true
show_error_codes = true
show_error_context = true
show_column_numbers = true
ignore_missing_imports = true
disallow_any_generics = false
disallow_subclassing_any = true
disallow_untyped_calls = true
disallow_incomplete_defs = false
check_untyped_defs = true
disallow_untyped_decorators = true
no_implicit_optional = true
warn_unused_ignores = true
warn_return_any = true
no_implicit_reexport = true
exclude = [
"src/arviz_base/example_data",
]
# More strict checks for library code
[[tool.mypy.overrides]]
module = "arviz_base"
disallow_untyped_defs = true
# Ignore non untyped calls for tests
[[tool.mypy.overrides]]
module = "tests.*"
disallow_untyped_calls = false
# Ignore certain missing imports
# [[tool.mypy.overrides]]
# module = "thirdparty.*"
# ignore_missing_imports = true
[tool.pytest.ini_options]
filterwarnings = ["error"]
testpaths = [
"tests",
]
[tool.coverage.run]
source = ["arviz_base"]