-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
130 lines (114 loc) · 3.02 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
124
125
126
127
128
129
130
[project]
name = "releso"
authors = [
{name = "Clemens Fricke", email = "clemens.david.fricke@tuwien.ac.at"}
]
requires-python = ">=3.8"
license = { file = "LICENSE" }
classifiers = [
"Operating System :: OS Independent",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Natural Language :: English",
"Topic :: Scientific/Engineering",
]
dependencies = [
"pydantic<2",
"stable-baselines3",
"tensorboard",
"hjson",
]
dynamic = [
"version"
]
[project.readme]
file = "README.md"
content-type = "text/markdown"
[project.urls]
homepage = "https://github.com/clemens-fricke/releso"
documentation = "https://releso.readthedocs.io/en/latest/"
issues = "https://github.com/clemens-fricke/releso/issues"
repository = "https://github.com/clemens-fricke/releso.git"
[project.optional-dependencies]
all = [
"splinepy[all]",
"torchvision",
]
test = [
"pytest",
"pytest-cov",
]
docs = [
"sphinx",
"sphinx-rtd-theme",
"sphinx-jsonschema",
]
dev = [
"splinepy[all]",
"torchvision",
"pytest",
"pytest-cov",
"sphinx",
"sphinx-rtd-theme",
"sphinx-jsonschema",
]
[project.scripts]
releso = "releso.__main__:entry"
[tool.setuptools]
packages = [
"releso",
"releso.util",
]
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[tool.setuptools.dynamic]
version = {attr = "releso.__version__.version"}
[tool.black]
line-length = 79
[tool.ruff]
line-length = 79
# Adding "ANN" would be really nice, but is to much work currently.
# Adding "PT" would be nice, for pytest naming convention.
# Adding "SIM" would be nice, but is to much work currently.
select = [
"E", "F", "W", "I", "N", "D", "UP", "YTT", "S", "BLE", "B", "A", "C4",
"ISC", "ICN", "PIE", "T20", "PYI", "Q", "RSE", "TID", "TCH", "INT", "PD",
"PGH", "TRY", "FLY", "NPY", "PERF", "FURB", "LOG"]
ignore = ["N818", "TRY003"]
preview = true
exclude = ["examples"]
[tool.ruff.per-file-ignores]
"tests/*.py" = ["D", "S", "E", "CPY", "PIE804", "NPY002"]
"__main__.py" = ["T20"]
[tool.ruff.pydocstyle]
convention = "google"
[tool.pytest.ini_options]
addopts = "--ignore=tests/samples -W ignore::DeprecationWarning"
markers = [
"torch_test",
]
[tool.coverage.run]
omit = [
"releso/util/load_binary.py",
"releso/util/cnn_xns_observations.py",
"releso/util/plotting.py",
]
[tool.coverage.report]
exclude_also = [
"def __repr__",
"if self.debug:",
"if settings.DEBUG",
"raise AssertionError",
"raise NotImplementedError",
"if 0:",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
# "class .*\bProtocol\):",
# "@(abc\.)?abstractmethod",
"except ModuleNotFoundError as err:",
"except ImportError as err:",
]