-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
122 lines (108 loc) · 2.69 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
[project]
name = "quanda"
dynamic = ["version"]
authors = [
{ name="Dilyara Bareeva", email="dilyabareeva@gmail.com" },
{name = "Galip Ümit Yolcu", email = "galip.uemit.yolcu@hhi.fraunhofer.de" },
]
description = "Toolkit for quantitative evaluation of data attribution methods in PyTorch."
license = { file = "LICENSE" }
readme = "README.md"
requires-python = ">=3.8,<3.12"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
keywords = ["interpretability", "xai", "machine learning", "deep learning"]
dependencies = [
"numpy>=1.19.5",
"torch>=1.13.1",
"lightning>=1.4.0",
"torchmetrics>=1.4.0",
"tqdm>=4.0.0",
"traker>=0.3.2",
"annoy>=1.17.0",
"datasets>=2.0.0",
"torcheval>=0.0.6",
"torchvision>=0.10.0",
]
[project.urls]
Homepage = "https://github.com/dilyabareeva/quanda"
Issues = "https://github.com/dilyabareeva/quanda/issues"
[build-system]
requires = ["setuptools>=42", "setuptools-scm[toml]>=6.0"]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
version_scheme = "post-release"
local_scheme = "node-and-date"
[tool.isort]
profile = "black"
line_length = 79
multi_line_output = 3
include_trailing_comma = true
[tool.mypy]
python_version = "3.11"
warn_return_any = false
warn_unused_configs = true
check_untyped_defs = true
[[tool.mypy.overrides]]
module = ["trak", "trak.projectors", "fast_jl"]
ignore_missing_imports = true
# Black formatting
[tool.black]
line-length = 127
include = '\.pyi?$'
exclude = '''
/(
.eggs # exclude a few common directories in the
| .git # root of the project
| .hg
| .mypy_cache
| .tox
| venv
| _build
| buck-out
| build
| dist
)/
'''
# Pytest
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = "test_*.py"
[tool.setuptools]
py-modules = []
[tool.commitizen]
name = "cz_conventional_commits"
[tool.semantic_release]
version_toml = ["pyproject.toml:project.version"]
branch = "main"
changelog_file = "CHANGELOG.md"
[project.optional-dependencies]
dev = [ # Install wtih pip install .[dev] or pip install -e '.[dev]' in zsh
"coverage>=7.2.3",
"flake8>=6.0.0",
"pytest<=7.4.4",
"flake8-pytest-style>=1.3.2",
"pytest-cov>=4.0.0",
"pytest-mock==3.10.0",
"pre-commit>=3.2.0",
"mypy==1.9.0",
"black[d]>=23.0.0",
"isort>=5.0.0",
"types-tqdm>=4.0.0",
"sphinx-rtd-theme>=1.0.0",
"sphinx>=7.0.0",
"numpydoc",
"torchvision>=0.10.0",
"types-Pillow>=8.3.0",
]
tutorials = [
"torchvision>=0.10.0",
"matplotlib>=3.4.0",
"pillow>=8.3.0",
"python-dotenv>=1.0.0",
"nltk>=3.6.0",
"wandb>=0.12.10",
]