-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
132 lines (119 loc) · 3.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
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
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "pyrostorage"
description = "Python Client for Pyronear data curation API"
authors = [
{name = "Pyronear", email = "[email protected]"}
]
readme = "README.md"
requires-python = ">=3.8,<4"
license = {file = "LICENSE"}
keywords = ["backend", "data", "storage", "client", "api"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dynamic = ["version"]
dependencies = [
"requests>=2.24.0",
]
[project.optional-dependencies]
test = [
"pytest>=5.3.2",
"coverage[toml]>=4.5.4",
]
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",
"sphinxemoji>=0.1.8",
"sphinx-copybutton>=0.3.1",
"docutils<0.18",
# cf. https://github.com/readthedocs/readthedocs.org/issues/9038
"Jinja2<3.1",
"furo>=2022.3.4",
]
dev = [
# test
"pytest>=5.3.2",
"coverage[toml]>=4.5.4",
# style
"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",
"sphinxemoji>=0.1.8",
"sphinx-copybutton>=0.3.1",
"docutils<0.18",
"Jinja2<3.1",
"furo>=2022.3.4",
]
[project.urls]
documentation = "https://pyronear.org/pyro-storage"
repository = "https://github.com/pyronear/pyro-storage/client"
tracker = "https://github.com/pyronear/pyro-storage/issues"
[tool.setuptools]
zip-safe = true
[tool.setuptools.packages.find]
exclude = ["docs*", "scripts*", "tests*"]
[tool.coverage.run]
source = ["pyrostorage"]
[tool.mypy]
files = "pyrostorage/"
show_error_codes = true
pretty = true
warn_unused_ignores = true
warn_redundant_casts = true
no_implicit_optional = true
disallow_untyped_calls = true
check_untyped_defs = true
implicit_reexport = false
[[tool.mypy.overrides]]
module = [
"requests.*",
]
ignore_missing_imports = true
[tool.isort]
line_length = 120
src_paths = ["client", "tests"]
skip_glob = "**/__init__.py"
known_first_party = ["pyrostorage"]
[tool.pydocstyle]
select = "D300,D301,D417"
match = ".*\\.py"
[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"]