-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
61 lines (50 loc) · 1.27 KB
/
pyproject.toml
File metadata and controls
61 lines (50 loc) · 1.27 KB
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
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "pvae"
version = "0.1.0"
[tool.setuptools.package-dir]
"" = "src"
[tool.setuptools.packages.find]
where = ["src"]
namespaces = false
[tool.pytest.ini_options]
# color output and show skipped
addopts = "--color=yes -rs"
[tool.black]
target-version = ['py39', 'py310', 'py311', 'py312']
line-length = 88
[tool.ruff]
target-version = "py312"
line-length = 88
[tool.ruff.lint]
ignore = [
"E501", # line-too-long (black should handle)
"UP038", # it produces slower code
]
select = [
"B", # flake8-bugbear
"C", # flake8-comprehensions
"C90", # mccabe
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
"UP", # pyupgrade
"W", # pycode warnings
]
[tool.ruff.lint.mccabe]
max-complexity = 19
[tool.ruff.lint.per-file-ignores]
"nbs/**/*.ipynb" = ["B018"]
"nbs/**/*.py" = ["B018"]
"src/linear_signal/**/*.py" = ["F821"]
"tasks.py" = ["B008"]
[tool.pytask.ini_options]
#paths = "pvae/tasks/"
task_files = ["tasks.py"]
show_errors_immediately = true
[tool.pytask.ini_options.markers]
setup_data = "Data setup tasks (downloading external data, processing, etc)"
run_standard_methods = "Run standard methods"
run_pvae = "Run/train the PVAE model"