-
-
Notifications
You must be signed in to change notification settings - Fork 24
/
pyproject.toml
150 lines (136 loc) · 3.59 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
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "pyrovision"
description = "Datasets and models for wildfire detection in PyTorch"
authors = [
{name = "Pyronear", email = "[email protected]"}
]
readme = "README.md"
requires-python = ">=3.6,<4"
license = {file = "LICENSE"}
keywords = ["pytorch", "deep learning", "vision", "cnn", "wildfire"]
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 = [
"torch>=1.11.0,<2.0.0",
"torchvision>=0.12.0,<1.0.0",
"tqdm>=4.1.0",
"requests>=2.20.0,<3.0.0",
"pylocron>=0.2.1,<1.0.0",
"huggingface-hub>=0.4.0",
]
[project.optional-dependencies]
test = [
# cf. https://cwe.mitre.org/data/definitions/1333.html
"pytest>=7.2.0,<8.0.0",
"coverage[toml]>=4.5.4",
]
training = [
"wandb>=0.10.31,<1.0.0",
"codecarbon>=2.0.0,<3.0.0",
]
quality = [
"flake8>=3.9.0",
"isort>=5.7.0",
"mypy>=0.812",
"pydocstyle[toml]>=6.0.0",
"black>=22.1,<23.0",
"bandit[toml]>=1.7.0,<1.8.0",
"autoflake>=1.5.0,<2.0.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",
# Indirect deps
# cf. https://github.com/readthedocs/readthedocs.org/issues/9038
"Jinja2<3.1",
]
dev = [
# test
"pytest>=7.2.0,<8.0.0",
"coverage[toml]>=4.5.4",
"requests>=2.20.0",
"torchvision>=0.4.0",
# style
"flake8>=3.9.0",
"isort>=5.7.0",
"mypy>=0.812",
"pydocstyle[toml]>=6.0.0",
"black>=22.1,<23.0",
"bandit[toml]>=1.7.0,<1.8.0",
"autoflake>=1.5.0,<2.0.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",
"Jinja2<3.1",
]
[project.urls]
documentation = "https://pyronear.org/pyro-vision"
repository = "https://github.com/pyronear/pyro-vision"
tracker = "https://github.com/pyronear/pyro-vision/issues"
[tool.setuptools]
zip-safe = true
[tool.setuptools.packages.find]
exclude = ["demo*", "docs*", "notebooks*", "scripts*", "tests*"]
[tool.mypy]
files = "pyrovision/"
show_error_codes = true
pretty = true
warn_unused_ignores = true
warn_redundant_casts = true
no_implicit_optional = true
check_untyped_defs = true
implicit_reexport = false
[[tool.mypy.overrides]]
module = [
"holocron.*",
"torchvision.*",
"requests.*",
"tqdm.*",
"PIL.*",
"huggingface_hub.*",
]
ignore_missing_imports = true
[tool.isort]
line_length = 120
src_paths = ["pyrovision", "tests", "references", "docs", ".github"]
skip_glob = "**/__init__.py"
known_first_party = ["app"]
[tool.pydocstyle]
select = "D300,D301,D417"
match = ".*\\.py"
[tool.coverage.run]
source = ["pyrovision"]
[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"]