forked from sbi-dev/sbi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
123 lines (114 loc) · 3.1 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
[build-system]
requires = [
"setuptools>=65", "wheel"
]
build-backend = "setuptools.build_meta"
[project]
name = "sbi"
description = "Simulation-based inference."
authors = [
{ name = "sbi-dev", email = "[email protected]"},
]
classifiers = [
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"Topic :: Adaptive Technologies",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Scientific/Engineering :: Mathematics",
"""License :: OSI Approved :: GNU Affero General Public License v3 or later
(AGPLv3+)""",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Development Status :: 3 - Alpha",
]
requires-python = ">=3.6"
dynamic = ["version"]
readme = "README.md"
keywords = ["Bayesian inference", "simulation-based inference", "PyTorch"]
dependencies = [
"arviz",
"joblib>=1.0.0",
"matplotlib",
"numpy",
"pillow",
"pyknos>=0.15.1",
"pyro-ppl>=1.3.1",
"scikit-learn",
"scipy",
"tensorboard",
"torch>=1.8.0",
"tqdm",
]
[project.optional-dependencies]
dev = [
"autoflake",
"black",
"deepdiff",
"flake8",
"isort",
"jupyter",
"mkdocs",
"mkdocs-material",
"markdown-include",
"mkdocs-redirects",
"mkdocstrings[python] >= 0.18",
"nbconvert",
"pre-commit",
"pytest",
"pyyaml",
"pyright >=1.1.300,<1.1.306",
"torchtestcase",
"twine",
]
[project.urls]
documentation = "https://sbi-dev.github.io/sbi/"
source = "https://github.com/sbi-dev/sbi"
tracker = "https://github.com/sbi-dev/sbi/issues"
[tool.black]
line-length = 88
target-version = ['py37', 'py38', 'py39', 'py310', 'py311']
include = '\.pyi?$|\.ipynb$'
extend-exclude = '''
/(
\.git
| \.venv
| \.ipynb_checkpoints
)/
'''
[tool.isort]
line_length = 88
include_trailing_comma = true
use_parentheses = true
skip_glob = [".ipynb_checkpoints", "docs/*"]
known_first_party=["sbi", "tests", "examples", "tutorials"]
known_third_party = ["arviz", "joblib", "matplotlib", "numpy", "pyknos", "pyro", "pytest", "scipy", "six", "sklearn", "tensorboard", "torch", "torchtestcase", "tqdm", "typing_extensions"]
multi_line_output = 3
[tool.flake8]
max-line-length = 88
exclude = [
"docs",
"build",
"dist",
".ipynb_checkpoints"
]
# Pytest configuration
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-ra -q"
testpaths = [
"tests",
]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"gpu: marks tests that require a gpu (deselect with '-m \"not gpu\"')"
]
[tool.setuptools.packages.find]
where = ["."] # list of folders that contain the packages (["."] by default)
include = ["sbi*"] # package names should match these glob patterns (["*"] by default)
exclude = ["sbi-logs*"] # exclude packages matching these glob patterns (empty by default)
namespaces = false # to disable scanning PEP 420 namespaces (true by default)
[tool.setuptools.dynamic]
version = {attr = "sbi.__version__"}