-
-
Notifications
You must be signed in to change notification settings - Fork 69
/
pyproject.toml
95 lines (82 loc) · 2.29 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
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "cmdstanpy"
description = "Python interface to CmdStan"
readme = "README.md"
license = { text = "BSD-3-Clause" }
authors = [{ name = "Stan Dev Team" }]
requires-python = ">=3.8"
dependencies = ["pandas", "numpy>=1.21", "tqdm", "stanio>=0.4.0,<2.0.0"]
dynamic = ["version"]
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"Natural Language :: English",
"Programming Language :: Python",
"Topic :: Scientific/Engineering :: Information Analysis",
]
[project.urls]
"Homepage" = "https://github.com/stan-dev/cmdstanpy"
"Bug Tracker" = "https://github.com/stan-dev/cmdstanpy/issues"
[project.scripts]
install_cmdstan = "cmdstanpy.install_cmdstan:__main__"
install_cxx_toolchain = "cmdstanpy.install_cxx_toolchain:__main__"
[tool.setuptools.dynamic]
version = { attr = "cmdstanpy._version.__version__" }
[tool.setuptools]
packages = ["cmdstanpy", "cmdstanpy.stanfit", "cmdstanpy.utils"]
[tool.setuptools.package-data]
"cmdstanpy" = ["py.typed"]
[project.optional-dependencies]
all = ["xarray"]
test = [
"flake8",
"pylint",
"pytest",
"pytest-cov",
"pytest-order",
"mypy",
"xarray",
]
docs = [
"sphinx>5,<6",
"pydata-sphinx-theme<0.9",
"nbsphinx",
"ipython",
"ipykernel",
"ipywidgets",
"sphinx-copybutton",
"xarray",
"matplotlib",
]
[tool.black]
line-length = 80
skip-string-normalization = true
[tool.isort]
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
ensure_newline_before_comments = true
line_length = 80
[tool.mypy]
disallow_untyped_defs = true
disallow_incomplete_defs = true
no_implicit_optional = true
# disallow_any_generics = true # disabled due to issues with numpy
warn_return_any = true
# warn_unused_ignores = true # can't be run on CI due to windows having different ctypes
check_untyped_defs = true
warn_redundant_casts = true
strict_equality = true
disallow_untyped_calls = true
[[tool.mypy.overrides]]
module = ['tqdm.auto', 'pandas']
ignore_missing_imports = true
[tool.coverage.run]
source = ["cmdstanpy"]