-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
77 lines (69 loc) · 1.72 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
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "ptp"
version = "0.0.1"
description = "Codebase for PTP - Patch the Planet: Restore Missing Data"
requires-python = ">= 3.8, < 3.12"
dependencies = [
"torch ~= 2.1",
"pytorch-lightning ~= 2.1",
"lightning ~= 2.3",
"monai[nibabel, skimage, pillow, tensorboard, torchvision, itk, tqdm] ~= 1.3",
"torchmetrics ~= 1.2",
"torchvision ~= 0.16",
"scipy ~= 1.10",
"numpy ~= 1.24",
"wandb",
"scikit-image"
]
[project.urls]
"Source" = "https://github.com/SOLVRO-ML/PTP1"
[project.optional-dependencies]
jupyter = [
"jupyterlab~=3.6",
"pandas ~= 2.0",
"matplotlib ~= 3.7",
"seaborn ~= 0.12",
"plotly ~= 5.14",
]
lint = ["ruff ~= 0.1", "pre-commit ~= 2.20"]
test = [
"pytest ~= 7.1",
"pytest-cases ~= 3.6",
"pytest-cov ~= 3.0",
"pytest-xdist ~= 2.5",
"pytest-sugar ~= 0.9",
]
dev = ["ptp[jupyter, lint, test]"]
[tool.setuptools.packages.find]
where = ["src"]
[tool.ruff]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"C", # flake8-comprehensions
"B", # flake8-bugbear
# "UP", # pyupgrade
]
line-length = 120
ignore = [
# "E501", # line too long, handled by black
"B008", # do not perform function calls in argument defaults
"C901", # too complex
"W191", # indentation contains tabs
]
extend-exclude = [".venv/", "build/", "dist/", "docs/"]
[tool.ruff.format]
quote-style = "single"
indent-style = "space"
[tool.ruff.lint.isort]
order-by-type = true
lines-between-types = 1
combine-as-imports = true
# known_first_party = "common"
[tool.setuptools.dynamic]
readme = {file = ['README.md']}