forked from hertie-dsl-interim-backup/hertie-school-deep-learning-fall-2025-tutorial-new-deep-learning-2025-tutorial
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
143 lines (132 loc) · 3.54 KB
/
pyproject.toml
File metadata and controls
143 lines (132 loc) · 3.54 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
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
[build-system]
requires = ["setuptools >= 69.1.0"]
build-backend = "setuptools.build_meta"
[project]
name = "few_shot_utils"
version = "0.0.1"
description = "DL Tutorial 2025: Few-shot learning tutorial on satellite imagery for rooftop detection."
readme = "README.md"
authors = [
{name = "Tutorial Group 1"},
]
maintainers = [{name = "Tutorial Group 1"}]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.11",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Scientific/Engineering :: Image Processing"
]
requires-python = ">=3.11"
dependencies = [
'numpy>=1.24.0',
'pandas>=2.1.0',
'matplotlib>=3.8.0',
'Pillow>=10.0.0',
'scikit-learn>=1.3.0',
'tqdm>=4.66.0',
]
[project.optional-dependencies]
dev = [
"ruff==0.8.2",
"ipykernel==6.29.3",
"nbformat>=5.9.0",
"pre-commit==3.6.0",
]
torch = [
"torch>=2.0.0",
"torchvision>=0.15.0",
]
[project.urls]
Documentation = "https://github.com/hertie-data-science-lab/tutorial-new-tutorial-group-1/docs"
Source = "https://github.com/hertie-data-science-lab/tutorial-new-tutorial-group-1"
Tracker = "https://github.com/hertie-data-science-lab/tutorial-new-tutorial-group-1/issues"
#Global ruff configuration
[tool.ruff]
exclude = [
".git",
".hg",
".mypy_cache",
".eggs",
".cache",
".tox",
"venv",
".venv",
".env",
"_build",
"buck-out",
"build",
"__pycache__",
"dist",
"nssm",
"obj",
"out",
"packages",
"pywin32",
"swagger_client",
]
line-length = 120
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"F", # pyflakes
"W", # pycodestyle warnings (includes W293)
"I", # isort
"D", # pydocstyle
"ANN", # flake8-annotations
"UP", # pyupgrade
"B", # flake8-bugbear
"S", # bandit
"N", # pep8-naming
"PL", # pylint
]
ignore = [
# Docstrings: relaxed
"D100", "D101", "D102", "D103", "D104", "D105", "D106", "D107",
# Conflicts / formatting preferences
"D211",
"D212",
"COM812",
"D203",
]
# Allow underscore-prefixed unused variables
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.lint.per-file-ignores]
# Relax security checks in notebooks/tutorial code
"*.ipynb" = [
"T201", # allow print
"ANN", # no type annotation requirements
"E501", # allow long lines
"E402", # allow imports not at top of file
"I001", # relaxed import sorting
"PLC0415", # allow imports outside top-level
"PLR0913", # allow many function args
"S105", # allow "password" strings (tutorial placeholders)
"PLR2004", # allow magic values
"N803", # allow capitalized variable names
"N806", # allow single-letter variable names
"N812", # allow lowercase class names
"S", # skip all bandit checks
"D400", # summary line position
"D401", # first line should be in imperative mood
"PLR0915", # allow complex functions
"B006", # allow use of mutable defaults
]
[tool.ruff.lint.isort]
split-on-trailing-comma = true
[tool.ruff.lint.pylint]
max-args = 5
max-branches = 12
max-locals = 15
max-returns = 6
max-statements = 50
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
docstring-code-format = true
docstring-code-line-length = "dynamic"