-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathpyproject.toml
More file actions
158 lines (134 loc) · 4.07 KB
/
pyproject.toml
File metadata and controls
158 lines (134 loc) · 4.07 KB
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
152
153
154
155
156
157
158
[build-system]
requires = ["setuptools>=67.0.0", "wheel>=0.40.0"]
build-backend = "setuptools.build_meta"
[tool.poetry]
name = "pyroengine"
version = "3.0.0"
description = "Wildfire detection on edge devices"
authors = ["Pyronear <contact@pyronear.org>"]
readme = "README.md"
license = "Apache-2.0"
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.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Mathematics",
"Topic :: Scientific/Engineering :: Artificial Intelligence"
]
[tool.poetry.dependencies]
python = ">=3.11,<4.0"
requests = "==2.31.0"
tqdm = "==4.67.1"
onnxruntime = "==1.22.1"
huggingface_hub = "==0.23.1"
pillow = "==11.0.0"
ncnn = "==1.0.20240410"
pyroclient = { git = "https://github.com/pyronear/pyro-api.git", branch = "main", subdirectory = "client" }
pyro_camera_api_client = { git = "https://github.com/pyronear/pyro-engine.git", branch = "pyro-camera-api", subdirectory = "pyro_camera_api/client" }
python-dotenv = "==1.1.0"
[tool.poetry.group.quality.dependencies]
ruff = "^0.11.9"
black = "^24.3.0"
isort = "^5.13.2"
mypy = "^1.9.0"
pydocstyle = "^6.3.0"
[tool.poetry.group.dev.dependencies]
pytest = "^7.0"
pytest-asyncio = "^0.23.0"
coverage = "^7.4.0"
requests = "^2.31.0"
flake8 = "^7.0.0"
isort = "^5.13.2"
mypy = "^1.9.0"
pydocstyle = "^6.3.0"
black = "^24.3.0"
onnx = "^1.15.0"
[tool.poetry.group.docs.dependencies]
sphinx = "^7.2.6"
furo = "^2024.1.29"
sphinxemoji = "^0.2.0"
sphinx-copybutton = "^0.5.2"
Jinja2 = "^3.1.3"
[tool.poetry.urls]
documentation = "https://pyronear.org/pyro-engine"
repository = "https://github.com/pyronear/pyro-engine"
tracker = "https://github.com/pyronear/pyro-engine/issues"
[tool.coverage.run]
source = ["pyroengine"]
[tool.mypy]
python_version = "3.11"
files = "pyroengine/,pyro_camera_api/"
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
ignore_missing_imports = true
disable_error_code = ["import-untyped"]
[[tool.mypy.overrides]]
module = "pyroengine.version"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "pyroengine.__init__"
ignore_errors = true
[[tool.mypy.overrides]]
module = [
"onnxruntime.*",
"requests.*",
"PIL.*",
"pyroclient.*",
"urllib3.*",
"setuptools",
"yaml",
"ncnn",
]
[tool.ruff]
line-length = 120
target-version = "py311"
preview = true
[tool.ruff.lint]
select = [
"F", "E", "W", "I", "N",
"D201", "D202", "D207", "D208", "D214", "D215", "D300", "D301", "D417", "D419",
"YTT", "ANN", "ASYNC", "S", "BLE", "B", "A", "COM", "CPY", "C4", "T10", "ISC", "ICN", "LOG",
"PIE", "T20", "PYI", "PT", "Q", "RSE", "RET", "SIM", "ARG", "PTH", "PERF", "NPY", "FURB", "RUF"
]
ignore = [
"E501", "B008", "B904", "C901", "F403", "E731", "C416",
"ANN002", "ANN003", "COM812", "ISC001"
]
exclude = [".git"]
[tool.ruff.lint.flake8-quotes]
docstring-quotes = "double"
[tool.ruff.lint.isort]
known-first-party = ["pyroengine", "pyro_camera_api"]
known-third-party = ["pillow", "tqdm", "onnxruntime", "huggingface_hub"]
[tool.ruff.lint.per-file-ignores]
"**/__init__.py" = ["I001", "F401", "CPY001"]
"src/**.py" = ["D", "T201", "S101", "ANN"]
".github/**.py" = ["D", "T201", "ANN"]
"tests/**.py" = ["D103", "CPY001", "S101", "T201", "ANN001", "ANN201", "ANN202", "ARG001"]
"pyro_camera_api/**.py" = ["D", "T201", "S101", "ANN"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
[tool.isort]
line_length = 120
skip_glob = "**/__init__.py"
[tool.pydocstyle]
select = "D300,D301,D417"
match = ".*\\.py"
[tool.black]
line-length = 120
target-version = ['py311']