forked from frgfm/torch-cam
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
151 lines (137 loc) · 3.76 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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "torchcam"
description = "Class activation maps for your PyTorch CNN models"
authors = [
{name = "François-Guillaume Fernandez", email = "fg-feedback@protonmail.com"}
]
readme = "README.md"
requires-python = ">=3.6,<4"
license = {file = "LICENSE"}
keywords = ["pytorch", "deep learning", "class activation map", "cnn", "gradcam"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Mathematics",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
dynamic = ["version"]
dependencies = [
# cf. https://github.com/frgfm/torch-cam/discussions/148
"torch>=1.7.0,<2.0.0",
"numpy>=1.14.0,<2.0.0",
# cf. https://github.com/advisories/GHSA-98vv-pw6r-q6q4
"Pillow>=8.3.2",
"matplotlib>=3.0.0,<4.0.0",
]
[project.optional-dependencies]
test = [
"pytest>=5.3.2",
"coverage[toml]>=4.5.4",
"requests>=2.20.0,<3.0.0",
"torchvision>=0.4.0,<1.0.0",
]
quality = [
"flake8>=3.9.0",
"isort>=5.7.0",
"mypy>=0.812",
"pydocstyle[toml]>=6.0.0",
"black>=22.1,<23.0",
"autoflake>=1.5.0,<2.0.0",
"bandit[toml]>=1.7.0,<1.8.0",
"pre-commit>=2.17.0,<3.0.0",
]
docs = [
"sphinx>=3.0.0,!=3.5.0",
"furo>=2022.3.4",
"sphinxemoji>=0.1.8",
"sphinx-copybutton>=0.3.1",
"recommonmark>=0.7.1",
"sphinx-markdown-tables>=0.0.15",
# Indirect deps
# cf. https://github.com/readthedocs/readthedocs.org/issues/9038
"Jinja2<3.1",
]
demo = [
"streamlit>=0.65.0,<2.0.0",
"torchvision>=0.12.0,<1.0.0",
]
dev = [
# test
"pytest>=5.3.2",
"coverage[toml]>=4.5.4",
"requests>=2.20.0,<3.0.0",
"torchvision>=0.4.0,<1.0.0",
# style
"flake8>=3.9.0",
"isort>=5.7.0",
"mypy>=0.812",
"pydocstyle[toml]>=6.0.0",
"black>=22.1,<23.0",
# docs
"sphinx>=3.0.0,!=3.5.0",
"furo>=2022.3.4",
"sphinxemoji>=0.1.8",
"sphinx-copybutton>=0.3.1",
"recommonmark>=0.7.1",
"sphinx-markdown-tables>=0.0.15",
"Jinja2<3.1",
]
[project.urls]
documentation = "https://frgfm.github.io/torch-cam"
repository = "https://github.com/frgfm/torch-cam"
tracker = "https://github.com/frgfm/torch-cam/issues"
changelog = "https://frgfm.github.io/torch-cam/latest/changelog.html"
[tool.setuptools]
zip-safe = true
[tool.setuptools.packages.find]
exclude = ["demo*", "docs*", "notebooks*", "scripts*", "tests*"]
[tool.mypy]
files = "torchcam/"
show_error_codes = true
pretty = true
warn_unused_ignores = true
warn_redundant_casts = true
warn_return_any = true
no_implicit_optional = true
check_untyped_defs = true
implicit_reexport = false
disallow_untyped_defs = true
[[tool.mypy.overrides]]
module = [
"PIL",
"matplotlib"
]
ignore_missing_imports = true
[tool.isort]
line_length = 120
src_paths = ["torchcam", "tests", "scripts", "docs", "demo", ".github"]
skip_glob = "**/__init__.py"
known_third_party = ["torch", "torchvision"]
[tool.pydocstyle]
select = "D300,D301,D417"
match = ".*\\.py"
[tool.coverage.run]
source = ["torchcam"]
[tool.black]
line-length = 120
target-version = ['py38']
[tool.autoflake]
remove-unused-variables = true
remove-all-unused-imports = true
ignore-init-module-imports = true
[tool.bandit]
exclude_dirs = [".github/collect_env.py"]
skips = ["B101"]