-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyproject.toml
100 lines (90 loc) · 1.98 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
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "ldct-benchmark"
version = "0.0.10"
authors = [
{name = "Elias Eulig", email = "elias.eulig@dkfz.de"},
]
description = "A benchmark for deep learning-based low dose CT image denoising"
requires-python = ">=3.10"
readme = "README_PYPI.md"
dependencies = [
"PyYAML",
"wandb",
"matplotlib",
"tqdm>4.66",
"scikit-image",
"pydicom==3.0.1",
"platformdirs",
"torchmetrics",
"pandas",
"tabulate",
"torch",
"torchvision",
]
[project.optional-dependencies]
dev = [
"black",
"isort",
"pytest",
"poethepoet",
"flake8",
"s5cmd",
]
docs = [
"mkdocs",
"mkdocs-material",
"mkdocstrings-python",
"mkdocs-gen-files",
"mike",
]
[project.scripts]
ldctbench-download-data = "ldctbench.scripts.download_data:main"
ldctbench-train = "ldctbench.scripts.train:main"
ldctbench-test = "ldctbench.scripts.test:main"
[project.urls]
GitHub = "https://github.com/eeulig/ldct-benchmark"
Documentation = "https://eeulig.github.io/ldct-benchmark/"
[tool.setuptools.packages.find]
include = ["ldctbench*"]
exclude = ["assets*", "tests*", "configs*", "docs*"]
namespaces = false
[tool.black]
exclude = '''
/(
env
| \.git
| build
)/
'''
target-version = ["py310"]
color = true
line-length = 88
[tool.isort]
skip = ["env", "build", ".git"]
profile = "black"
skip_gitignore = true
color_output = false
[tool.pytest.ini_options]
addopts = "-ra -q"
testpaths = [
"tests",
]
[tool.poe.tasks]
_black = 'black .'
_isort = 'isort .'
_black_check = 'black --check .'
_isort_check = 'isort --check .'
lint = "flake8 . --select=E9,F63,F7,F82 --show-source --statistics"
test = "pytest -v"
[tool.poe.tasks.format]
sequence = ['_black', '_isort']
ignore_fail = 'return_non_zero'
[tool.poe.tasks.format_check]
sequence = ['lint', '_black_check', '_isort_check']
ignore_fail = 'return_non_zero'
[tool.poe.tasks.verify]
sequence = ['format_check', 'test']
ignore_fail = "return_non_zero"