-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
103 lines (93 loc) · 2.59 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
[build-system]
requires = ["setuptools>=61.2"]
build-backend = "setuptools.build_meta"
[project]
name = "torch-mnf"
version = "0.2.0"
description = "PyTorch implementation of Multiplicative Normalizing Flows"
authors = [{ name = "Janosh Riebesell", email = "[email protected]" }]
readme = "readme.md"
license = { file = "license" }
keywords = [
"autoregressive models",
"generative models",
"machine learning",
"multiplicative normalizing flows",
"probabilistic programming",
"pytorch",
]
classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
]
urls = { Homepage = "https://github.com/janosh/torch-mnf" }
requires-python = ">=3.8"
dependencies = [
"matplotlib",
"numpy",
"pandas",
"scikit-learn",
"scipy",
"seaborn",
"torch",
"torchvision",
]
[project.optional-dependencies]
test = ["pytest", "pytest-cov"]
[tool.setuptools.packages]
find = {}
[tool.setuptools.package-data]
torch_mnf = ["*.csv"]
[tool.distutils.bdist_wheel]
universal = true
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-p no:warnings"
[tool.mypy]
check_untyped_defs = true
disallow_any_generics = true
disallow_incomplete_defs = true
warn_redundant_casts = true
warn_unused_ignores = true
show_error_codes = true
no_implicit_optional = false
[tool.codespell]
ignore-words-list = "hist"
[tool.ruff]
target-version = "py38"
include = ["**/pyproject.toml", "*.ipynb", "*.py", "*.pyi"]
select = [
"B", # flake8-bugbear
"D", # pydocstyle
"E", # pycodestyle error
"F", # pyflakes
"I", # isort
"PLE", # pylint error
"PLW", # pylint warning
"PYI", # flakes8-pyi
"Q", # flake8-quotes
"SIM", # flake8-simplify
"TID", # tidy imports
"UP", # pyupgrade
"W", # pycodestyle warning
"YTT", # flake8-2020
]
ignore = [
"D100", # Missing docstring in public module
"D104", # Missing docstring in public package
"D205", # 1 blank line required between summary line and description
"E731", # Do not assign a lambda expression, use a def
"SIM105", # Use contextlib.suppress(FileNotFoundError) instead of try-except-pass
"SIM115", # Use context handler for opening files
]
pydocstyle.convention = "google"
isort.lines-after-imports = 2
[tool.ruff.per-file-ignores]
"tests/*" = ["D103"]
"__init__.py" = ["F401"]
"examples/*" = ["D"]