-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
71 lines (63 loc) · 1.35 KB
/
pyproject.toml
File metadata and controls
71 lines (63 loc) · 1.35 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
62
63
64
65
66
67
68
69
70
71
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "ldct-invariances"
version = "0.0.1"
authors = [
{name = "Elias Eulig", email = "elias.eulig@dkfz.de"},
]
description = "Reconstruct invariances of LDCT denoising networks"
requires-python = ">=3.10"
readme = "README.md"
dependencies = [
"PyYAML",
"wandb",
"matplotlib",
"tqdm>4.66",
"scikit-image",
"pydicom",
"torch",
"torchvision",
"ldct-benchmark>=0.0.7",
]
[project.optional-dependencies]
dev = [
"poethepoet",
"black",
"isort",
"flake8",
]
[tool.setuptools.packages.find]
include = ["ldctinv*"]
exclude = ["assets*", "configs*", "env*"]
namespaces = false
[tool.black]
exclude = '''
/(
env
| \.git
| build
| wandb
)/
'''
target-version = ["py310"]
color = false
line-length = 120
[tool.isort]
skip = ["env", "build", ".git", "wandb"]
profile = "black"
skip_gitignore = true
color_output = false
[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 --exclude .git,env,build,wandb"
[tool.poe.tasks.format]
sequence = ['_black', '_isort']
ignore_fail = 'return_non_zero'
[tool.poe.tasks.format_check]
sequence = ['_black_check', '_isort_check', '_lint']
ignore_fail = 'return_non_zero'