-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
75 lines (68 loc) · 1.58 KB
/
Copy pathpyproject.toml
File metadata and controls
75 lines (68 loc) · 1.58 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
[tool.poetry]
name = "group-agf"
version = "0.1.0"
description = "Learning"
authors = ["John Smith <john@example.com>"]
readme = "README.md"
packages = [{include = "src"}]
[tool.poetry.dependencies]
python = "^3.12"
torch = "^2.2.1"
numpy = "^1.26.4"
ruff = "*"
pre-commit = "*"
matplotlib = "*"
jupyter = "*"
jupyterlab = "*"
pandas = "*"
scikit-image = "*"
scipy = "*"
torchvision = "*"
wandb = "*"
jupyterlab-code-formatter = "^3.0.2"
pytest = "^8.3.4"
ipykernel = "^6.29.5"
pykernel = "^0.1.6"
scikit-learn = "^1.7.2"
tqdm = "^4.67.1"
seaborn = "^0.13.2"
jupyter-black = "^0.4.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
line-length = 100
exclude = [
".git",
"__pycache__",
"*.ipynb",
".venv",
"build",
"dist",
"wandb",
]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # Pyflakes
"I", # isort
"B", # flake8-bugbear
"UP", # pyupgrade
]
ignore = [
"E501", # line too long (handled by formatter)
"B008", # do not perform function calls in argument defaults
"B905", # zip without strict
"F403", # star imports
"F405", # may be undefined from star imports
"F841", # local variable assigned but never used (common in notebooks/experiments)
"B007", # loop control variable not used (common pattern)
]
[tool.ruff.lint.isort]
known-first-party = ["src", "group_agf", "default_config"]
known-third-party = ["wandb"]
[tool.pytest.ini_options]
testpaths = ["test"]
python_files = ["test_*.py"]
python_functions = ["test_*"]