-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathpyproject.toml
84 lines (74 loc) · 2 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
[project]
name = "tinygp"
description = "The tiniest of Gaussian Process libraries"
authors = [{ name = "Dan Foreman-Mackey", email = "[email protected]" }]
readme = "README.md"
requires-python = ">=3.9"
license = { text = "MIT" }
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
]
dynamic = ["version"]
dependencies = ["jax", "jaxlib", "equinox"]
[project.optional-dependencies]
test = ["pytest"]
comparison = ["george", "celerite"]
docs = [
"sphinx-book-theme",
"myst-nb",
"matplotlib",
"statsmodels",
"numpyro",
"arviz",
"flax",
"optax",
"jaxopt",
"ipython",
]
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.hooks.vcs]
version-file = "src/tinygp/tinygp_version.py"
[tool.black]
target-version = ["py39"]
line-length = 88
[tool.ruff]
target-version = "py39"
line-length = 88
[tool.ruff.lint]
select = ["F", "I", "E", "W", "YTT", "B", "Q", "PLE", "PLR", "PLW", "UP"]
ignore = [
"E741", # Allow ambiguous variable names
"PLR0911", # Allow many return statements
"PLR0913", # Allow many arguments to functions
"PLR0915", # Allow many statements
"PLR2004", # Allow magic numbers in comparisons
]
exclude = []
[tool.ruff.lint.per-file-ignores]
"docs/tutorials/*.ipynb" = [
"B007", # Loop variable is not used
"E501", # Line too long
"E731", # Do not assign a lambda expression
"F401", # Unused imports
]
[tool.ruff.lint.isort]
known-first-party = ["tinygp"]
combine-as-imports = true
[tool.towncrier]
name = "tinygp"
package = "tinygp"
package_dir = "src"
filename = "docs/news.rst"
directory = "news/"
issue_format = "`#{issue} <https://github.com/dfm/tinygp/issues/{issue}>`_"
underlines = "-~~"