-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
pyproject.toml
46 lines (38 loc) · 1.06 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
[project]
name = "torchattack"
description = "A set of adversarial attacks implemented in PyTorch"
authors = [{ name = "spencerwooo", email = "[email protected]" }]
requires-python = ">=3.10,<3.13"
readme = "README.md"
license = { text = "MIT" }
dependencies = [
"torch>=1.13.0",
"torchvision>=0.14.0",
"numpy>=1.24.2",
"scipy>=1.10.1",
]
dynamic = ["version"]
[project.optional-dependencies]
dev = ["mypy", "rich", "timm"]
test = ["pytest", "pytest-cov"]
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[tool.setuptools.dynamic]
version = { attr = "torchattack.__version__" }
[tool.setuptools.packages.find]
include = ["torchattack"]
[tool.ruff]
line-length = 88
[tool.ruff.lint]
select = ["E", "F", "I", "N", "B", "SIM"]
ignore = ["E501", "B905"]
[tool.ruff.format]
quote-style = "single"
[tool.mypy]
no_implicit_optional = true
check_untyped_defs = true
ignore_missing_imports = true # Used as torchvision does not ship type hints
# disallow_any_unimported = true
# disallow_untyped_defs = true
# warn_return_any = true