-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
137 lines (122 loc) · 3.02 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
[build-system]
requires = ["flit_core >=3.4,<4"]
build-backend = "flit_core.buildapi"
[project]
name = "arviz-stats"
readme = "README.md"
requires-python = ">=3.10"
license = {file = "LICENSE"}
authors = [
{name = "ArviZ team", email = "arvizdevs@gmail.com"}
]
classifiers = [
"Development Status :: 3 - Alpha",
"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.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dynamic = ["version", "description"]
dependencies = [
"numpy>=1.24",
"scipy>=1.10",
]
[tool.flit.module]
name = "arviz_stats"
[project.urls]
source = "https://github.com/arviz-devs/arviz-stats"
tracker = "https://github.com/arviz-devs/arviz-stats/issues"
documentation = "https://arviz-stats.readthedocs.io"
funding = "https://opencollective.com/arviz"
[project.optional-dependencies]
xarray = [
"arviz-base==0.3.0",
"xarray-einstats",
"numba",
]
test = [
"pytest",
"pytest-cov",
"h5netcdf",
]
doc = [
"sphinx-book-theme",
"myst-parser[linkify]",
"myst-nb",
"sphinx-copybutton",
"numpydoc",
"sphinx>=5",
"sphinx-design",
"jupyter-sphinx",
"netcdf4",
"sphinx_autosummary_accessors",
]
numba = [
"numba",
"xarray_einstats[einops]",
]
[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
]
ignore = [
"PLR0912", # too many branches
"PLR0913", # too many arguments
"PLR2004", # magic value comparison
]
[tool.ruff.lint.per-file-ignores]
"src/arviz_stats/__init__.py" = ["I", "F401", "E402", "F403"]
"src/arviz_stats/numba/*" = ["F841"]
"src/arviz_stats/**/__init__.py" = ["I", "F401", "E402", "F403"]
"tests/**/*" = ["D", "PLR2004", "NPY002"]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[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
disallow_any_generics = true
disallow_subclassing_any = true
disallow_untyped_calls = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
no_implicit_optional = true
warn_unused_ignores = true
warn_return_any = true
no_implicit_reexport = true
# More strict checks for library code
[[tool.mypy.overrides]]
module = "arviz_stats"
disallow_untyped_defs = true
# Ignore certain missing imports
# [[tool.mypy.overrides]]
# module = "thirdparty.*"
# ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = [
"tests",
]
[tool.coverage.run]
source = ["arviz_stats"]