-
Notifications
You must be signed in to change notification settings - Fork 44
/
pyproject.toml
105 lines (93 loc) · 2.68 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
[project]
name = "smaat-unet"
version = "0.1.0"
description = "Code for the paper `SmaAt-UNet: Precipitation Nowcasting using a Small Attention-UNet Architecture`"
authors = [{ name = "Kevin Trebing", email = "[email protected]" }]
readme = "README.md"
requires-python = ">= 3.10"
dependencies = [
"tqdm~=4.65.0",
"torch==2.2.2+cu121",
"torchvision>=0.15.1",
"torchsummary>=1.5.1",
"h5py~=3.8.0",
"fastapi~=0.80",
"lightning~=2.2.1",
"tensorboard~=2.13.0",
"pandas~=1.5.3",
"tables>=3.9.2",
"matplotlib>=3.8.3",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.rye]
managed = true
dev-dependencies = [
"black>=23.3.0",
"ruff>=0.0.262",
"mypy>=1.2.0",
"pre-commit>=3.2.2",
]
[[tool.rye.sources]]
name = "pytorch"
url = "https://download.pytorch.org/whl/cu121"
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.build.targets.wheel]
packages = ["src/SmaAt-UNet"]
[tool.black]
line-length = 120
[tool.mypy]
python_version = "3.9"
ignore_missing_imports = true
[tool.ruff]
line-length = 120
[tool.ruff.lint]
select = [
"E", # pycodestyle Errors
"W", # pycodestyle Warnings
"F", # pyflakes
"UP", # pyupgrade
# "D", # pydocstyle
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"A", # flake8-builtins
"C90", # mccabe complexity
"DJ", # flake8-django
"PIE", # flake8-pie
# "SIM", # flake8-simplify
]
ignore = [
"B905", # length-checking in zip() only introduced with Python 3.10 (PEP618)
"UP007", # Python version 3.9 does not allow writing union types as X | Y
"UP038", # Python version 3.9 does not allow writing union types as X | Y
"D202", # No blank lines allowed after function docstring
"D100", # Missing docstring in public module
"D104", # Missing docstring in public package
"D205", # 1 blank line required between summary line and description
"D203", # One blank line before class docstring
"D212", # Multi-line docstring summary should start at the first line
"D213", # Multi-line docstring summary should start at the second line
"D400", # First line of docstring should end with a period
"D404", # First word of the docstring should not be "This"
"D415", # First line should end with a period, question mark, or exclamation point
"DJ001", # Avoid using `null=True` on string-based fields
]
exclude = [
".git",
".local",
".cache",
".venv",
"./venv",
".vscode",
"__pycache__",
"docs",
"build",
"dist",
"notebooks",
"migrations"
]
[tool.ruff.lint.mccabe]
# Flag errors (`C901`) whenever the complexity level exceeds 12.
max-complexity = 12