forked from JaxGaussianProcesses/GPJax
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
211 lines (190 loc) · 5.18 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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
[tool.poetry]
name = "gpjax"
version = "0.0.0" # Merely a placeholder, will be replaced by the dynamic versioning plugin
description = "Gaussian processes in JAX."
authors = ["Thomas Pinder <[email protected]>", "Daniel Dodd <[email protected]>"]
license = "Apache-2.0"
readme = "README.md"
homepage = "https://github.com/JaxGaussianProcesses/GPJax"
repository = "https://github.com/JaxGaussianProcesses/GPJax"
include = [
"LICENSE",
]
documentation = "https://docs.jaxgaussianprocesses.com/"
keywords = ["gaussian-processes jax machine-learning bayesian"]
packages = [{include = "gpjax"}]
[tool.poetry.dependencies]
python = ">=3.8,<3.12"
jax = ">=0.4.1"
optax = "^0.1.4"
jaxtyping = "^0.2.15"
tqdm = "^4.65.0"
simple-pytree = "^0.1.7"
tensorflow-probability = "^0.19.0"
orbax-checkpoint = "^0.2.0"
beartype = "^0.13.1"
jaxlib = "0.4.7" # Temporary fix: https://github.com/google/jax/issues/15951
plum-dispatch = "^2.1.0"
[tool.poetry.group.test.dependencies]
pytest = "^7.2.2"
pytest-cov = "^4.0.0"
pytest-pretty = "^1.1.1"
pytest-xdist = "^3.2.1"
networkx = "^3.0"
coverage = "^7.2.2"
absolufy-imports = "^0.3.1"
xdoctest = "^1.1.1"
mktestdocs = "^0.2.1"
[tool.poetry.group.dev.dependencies]
black = "^23.1.0"
isort = "^5.12.0"
pylint = "^2.17.1"
nox = "^2022.11.21"
ruff = "^0.0.259"
flax = "^0.6.8"
pre-commit = "^3.2.2"
nbstripout = "^0.6.1"
pydocstyle = "^6.3.0"
codespell = "^2.2.4"
interrogate = "^1.5.0"
[tool.poetry.group.docs.dependencies]
linkify-it-py = "^2.0.0"
jinja2 = "^3.1.2"
matplotlib = "^3.7.1"
seaborn = "^0.12.2"
networkx = "^3.0"
jupytext = "^1.14.5"
ipython = "^8.11.0"
ipykernel = "^6.22.0"
watermark = "^2.3.1"
blackjax = "^0.9.6"
ipywidgets = "^8.0.5"
pandas = "^1.5.3"
geopandas = "^0.12.2"
scikit-learn = "^1.2.2"
flax = "^0.6.8"
xarray = "^2023.1"
pystac-client = "^0.6.1"
planetary-computer = "^0.5.1"
fsspec = "^2023.4.0"
aiohttp = "^3.8.4"
rioxarray = "^0.13"
mkdocs = "^1.4.2"
mkdocs-material = "^9.1.8"
pymdown-extensions = "^9.11"
mknotebooks = "^0.7.1"
pygments = "^2.15.1"
mkdocs-bibtex = "^2.8.16"
mkdocs-jupyter = "^0.24.1"
mdx-truly-sane-lists = "^1.3"
pytkdocs = "^0.16.1"
mkdocs-gen-files = "^0.5.0"
mkdocs-literate-nav = "^0.6.0"
mkdocs-git-authors-plugin = "^0.7.0"
mkdocstrings = {version = "^0.21.2", extras = ["python"]}
markdown-katex = "^202112.1034"
[build-system]
requires = ["poetry-core", "poetry-dynamic-versioning"]
build-backend = "poetry_dynamic_versioning.backend"
[tool.black] # https://black.readthedocs.io/en/stable/usage_and_configuration/the_basics.html#configuration-via-a-file
line-length = 88
target-version = ["py38"]
[tool.pytest.ini_options] # https://docs.pytest.org/en/latest/reference/reference.html#ini-options-ref
# addopts = "--color=yes --doctest-modules --exitfirst --failed-first --strict-config --strict-markers --typeguard-packages=my_package --verbosity=2 --junitxml=reports/pytest.xml"
filterwarnings = ["error", "ignore::DeprecationWarning"]
testpaths = ["gpjax", "tests"]
xfail_strict = true
[tool.ruff] # https://github.com/charliermarsh/ruff
fix = true
cache-dir = "~/.cache/ruff"
dummy-variable-rgx = "^_$"
exclude = ["docs/"]
ignore-init-module-imports = true
line-length = 88
select = [
# pyflakes
"F",
# pycodestyle
"E",
"W",
# flake8-2020
"YTT",
# flake8-bugbear
"B",
# flake8-quotes
"Q",
# pylint
"PLE", "PLR", "PLW",
# misc lints
"PIE",
# flake8-pyi
"PYI",
# tidy imports
"TID",
# implicit string concatenation
"ISC",
# type-checking imports
"TCH",
]
ignore = [
# space before : (needed for how black formats slicing)
# "E203", # not yet implemented
# module level import not at top of file
"E402",
# do not assign a lambda expression, use a def
"E731",
"E501",
"PGH001",
"RET504",
"S101",
"F722",
'PLR2004',
"PLR0913"
]
unfixable = ["ERA001", "F401", "F841", "T201", "T203"]
src = ["gpjax", "tests"]
target-version = "py38"
[tool.ruff.pydocstyle]
convention = "numpy"
[tool.ruff.per-file-ignores]
"gpjax/__init__.py" = ['I', 'F401', 'E402', 'D104']
"gpjax/progress_bar.py" = ["TCH004"]
"gpjax/scan.py" = ["PLR0913"]
"gpjax/citation.py" = ["F811"]
"tests/test_base/test_module.py" = ["PLR0915"]
"tests/test_linops/test_linear_operator.py" = ["PLR0913"]
"tests/test_objectives.py" = ["PLR0913"]
"docs/examples/barycentres.py" = ["PLR0913"]
[tool.isort]
profile = "black"
combine_as_imports = true
force_sort_within_sections = true
force_grid_wrap = 2
skip = 'docs'
[tool.coverage.report] # https://coverage.readthedocs.io/en/latest/config.html#report
fail_under = 50
precision = 1
show_missing = true
skip_covered = true
[tool.coverage.run] # https://coverage.readthedocs.io/en/latest/config.html#run
branch = true
command_line = "--module pytest"
data_file = "reports/.coverage"
source = ["src"]
[tool.coverage.xml] # https://coverage.readthedocs.io/en/latest/config.html#xml
output = "reports/coverage.xml"
[tool.poetry-dynamic-versioning]
enable = true
vcs = "git"
[tool.poetry-dynamic-versioning.substitution]
files = ["gpjax/__init__.py"]
[tool.codespell]
ignore-words-list = "fro" # Frobenius
[tool.interrogate]
ignore-init-method = true
ignore-init-module = true
fail-under = 64
exclude = ["setup.py", "docs", "tests"]
verbose = 2
quiet = false
color = true