-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathpyproject.toml
110 lines (97 loc) · 2.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
[build-system]
requires = ["poetry>=1.0"]
build-backend = "poetry.masonry.api"
[tool.poetry]
name = "pyro-platform"
version = "0.1.2.dev0"
description = "Monitoring platform for wildfire alerts"
authors = ["Pyronear <[email protected]>"]
license = "Apache-2.0"
[tool.poetry.dependencies]
python = "^3.9"
dash = ">=2.14.0"
dash-bootstrap-components = ">=1.5.0"
dash-leaflet = "^0.1.4"
pandas = ">=2.1.4"
pyroclient = { git = "https://github.com/pyronear/pyro-api.git", branch = "old-production", subdirectory = "client" }
python-dotenv = ">=1.0.0"
geopy = ">=2.4.0"
sentry-sdk = { version = "^1.5.12", extras = ["flask"] }
timezonefinder = ">=6.2.0"
pytz = ">=2023.3.post1"
[tool.poetry.group.quality]
optional = true
[tool.poetry.group.quality.dependencies]
ruff = { version = "==0.1.2" }
mypy = {version = "==1.6.1", optional = true}
types-requests = { version = ">=2.0.0" }
pandas-stubs = { version = ">=1.5.2" }
black = {version = "==23.3.0", optional = true}
bandit = { version = "^1.7.0", extras = ["toml"], optional = true }
pre-commit = { version = "^2.17.0", optional = true }
[tool.ruff]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
# "D101", "D103", # pydocstyle missing docstring in public function/class
"D201","D202","D207","D208","D214","D215","D300","D301", "D419", # pydocstyle
"F", # pyflakes
"I", # isort
"C", # flake8-comprehensions
"B", # flake8-bugbear
"CPY001", # flake8-copyright
"ISC", # flake8-implicit-str-concat
"PYI", # flake8-pyi
"NPY", # numpy
"PERF", # perflint
"RUF", # ruff specific
]
ignore = [
"E501", # line too long, handled by black
"B008", # do not perform function calls in argument defaults
"B904", # raise from
"C901", # too complex
"F403", # star imports
"E731", # lambda assignment
"C416", # list comprehension to list()
]
exclude = [".git"]
line-length = 120
target-version = "py39"
preview = true
[tool.ruff.per-file-ignores]
"**/__init__.py" = ["I001", "F401", "CPY001"]
".github/**.py" = ["D"]
[tool.ruff.isort]
known-first-party = ["config", "pages", "components", "utils", "services"]
[tool.mypy]
python_version = "3.9"
mypy_path = "app/"
files = "app/"
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
explicit_package_bases = true
[[tool.mypy.overrides]]
module = [
"dash.*",
"dash_table.*",
"dash_leaflet.*",
"dash_bootstrap_components.*",
"dash_html_components.*",
"dash_core_components.*",
"geopy.*",
"pyroclient.*",
"flask_caching.*",
]
ignore_missing_imports = true
[tool.black]
line-length = 120
target-version = ['py39']
[tool.bandit]
exclude_dirs = []
skips = ["B101"]