-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
80 lines (69 loc) · 1.86 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
[build-system]
requires = ["setuptools>=65.5.0"]
build-backend = "setuptools.build_meta"
[project]
name = "ckatorch"
authors = [
{name = "Alessandro Ristori", email = "[email protected]"}
]
version = "1.0.0"
description = "Centered Kernel Alignment in PyTorch"
readme = "README.md"
license = {file = "LICENSE"}
requires-python = ">=3.10"
keywords = ["CKA", "Centered Kernel Aligment", "Neural Network Similarity", "Deep Learning"]
classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3 :: Only",
]
dependencies = [
"matplotlib>=3.8.0",
"seaborn>=0.12.2",
"torch>=2.3.1",
"torchvision>=0.18.1",
"tqdm>=4.66.3",
"transformers>=4.43.0",
]
[project.optional-dependencies]
dev = [
"pre-commit>=3.7.1",
"ruff>=0.6.5",
"typos>=1.24.5",
]
[project.urls]
Repository = "https://github.com/RistoAle97/centered-kernel-alignment"
[tool.ruff]
line-length = 120
output-format = "grouped"
target-version = "py310"
[tool.ruff.lint]
ignore = [
"E111", # Indentation is not a multiple of {indent_width}
"E114", # Indentation is not a multiple of {indent_width} (comment)
"E117", # Over-indented (comment)
"E501", # Line too long
]
select = [
"ARG", # Flake8 unused arguments
"D", # Pydocstyle errors
"E", # PEP8 errors
"F", # PEP8 formatting
"I", # Import sorting
"N", # PEP8 naming
"RUF", # Ruff specific rules
"UP", # Pyupgrade upgrades
]
[tool.ruff.lint.extend-per-file-ignores]
"examples/*" = ["D"]
[tool.ruff.lint.isort]
force-single-line = false
lines-after-imports = 2
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.format]
docstring-code-format = true
[tool.uv.pip]
extra-index-url = ["https://download.pytorch.org/whl/cu124"]