-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
109 lines (98 loc) · 2.67 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
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "bibat"
authors = [
{name = "Teddy Groves", email = "[email protected]"},
]
version = "0.3.4"
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Natural Language :: English",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows :: Windows 10",
"Operating System :: POSIX",
"Topic :: Scientific/Engineering :: Information Analysis",
]
license = {text = "GNU General Public License version 3"}
description = "Batteries-included Bayesian analysis template"
readme = "README.md"
requires-python = ">=3.11"
dependencies = [
"arviz",
"cmdstanpy",
"copier",
"numpy",
"pandas",
"pandera",
"pip >= 20",
"pydantic",
"pyyaml-include<2", # temporary fix: see https://github.com/copier-org/copier/issues/1568
"scikit-learn",
"scipy<1.13", # temporary fix: see https://github.com/arviz-devs/arviz/issues/2336
"stanio",
"toml",
"xarray",
"zarr",
]
[project.optional-dependencies]
development = [
"black",
"pre-commit",
"codecov",
"mkdocs",
"mkdocs-material",
"mkdocstrings",
"mkdocstrings-python",
"pymdown-extensions",
"pytest",
"pytest-cov",
"tox",
"ruff",
]
[project.urls]
homepage = "https://github.com/teddygroves/bibat"
download = "https://pypi.org/project/bibat"
documentation = "https://bibat.readthedocs.io/"
[tool.setuptools]
packages = ["bibat"]
[tool.black]
line-length = 80
[tool.ruff]
line-length = 80
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"TD", # ignore flake8-todo rules
"FIX", # ignore flake8-fixme rules
"D203", # we want no blank line before class docstrings
"D213", # multiline docstrings should start just after the quotemarks
#"FA100", # pydantic/__future__ problem: see https://github.com/astral-sh/ruff/issues/5434
]
[tool.ruff.lint.isort]
known-first-party = ["bibat", "src"]
[tool.ruff.lint.per-file-ignores]
"**/tests/*" = ["INP001"]
[tool.pylint.messages_control]
disable = "C0330, C0326"
[tool.mypy]
plugins = ["pydantic.mypy"]
follow_imports = "silent"
warn_redundant_casts = true
warn_unused_ignores = true
disallow_any_generics = true
check_untyped_defs = true
no_implicit_reexport = true
# for strict mypy: (this is the tricky one :-))
disallow_untyped_defs = true
[tool.pydantic-mypy]
init_forbid_extra = true
init_typed = true
warn_required_dynamic_aliases = true
[tool.coverage.run]
omit = ["template/*", "example_projects/*"]
[tool.coverage.report]
exclude_also = ["if TYPE_CHECKING:"]