-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
104 lines (89 loc) · 2.54 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
[build-system]
requires = ["poetry>=1.0"]
build-backend = "poetry.masonry.api"
[tool.poetry]
name = "pyro-storage"
version = "0.1.1.dev0"
description = "Backend for visual data curation about wildfires"
authors = ["Pyronear <[email protected]>"]
license = "Apache-2.0"
readme = "README.md"
repository = "https://github.com/pyronear/pyro-storage"
keywords = ["backend", "api", "storage"]
[tool.poetry.dependencies]
python = "^3.8"
uvicorn = ">=0.11.1,<1.0.0"
fastapi = ">=0.89.0,<1.0.0"
bcrypt = "^3.2.0"
passlib = { version = "^1.7.4", extras = ["bcrypt"] }
databases = { version = ">=0.2.6,<=0.4.0", extras = ["postgresql"] }
python-jose = "^3.2.0"
SQLAlchemy = "^1.3.12"
python-multipart = "==0.0.5"
aiofiles = "==0.6.0"
requests = "^2.31.0"
sentry-sdk = "^1.14.0"
boto3 = "^1.26.0"
ruff = { version = ">=0.0.260,<1.0.0", optional = true }
isort = { version = "^5.7.0", optional = true }
mypy = { version = "^1.2.0", optional = true }
black = { version = "==22.3.0", optional = true }
pydocstyle = { version = "^6.0.0", extras = ["toml"], optional = true }
autoflake = { version = "^1.5.0", optional = true }
bandit = { version = "^1.7.0", extras = ["toml"], optional = true }
pre-commit = { version = "^2.17.0", optional = true }
[tool.poetry.dev-dependencies]
pytest = ">=5.3.2,<8.0.0"
pytest-asyncio = ">=0.17.0,<1.0.0"
coverage = ">=4.5.4,<7.0.0"
aiosqlite = ">=0.16.0,<1.0.0"
httpx = ">=0.23.0"
asyncpg = ">=0.20.0,<1.0.0"
[tool.poetry.extras]
quality = ["ruff", "isort", "mypy", "pydocstyle", "black", "autoflake", "bandit", "pre-commit"]
[tool.coverage.run]
source = ["src/app", "client/pyrostorage"]
[tool.ruff]
ignore = ["E402", "F403", "E731"]
exclude = [".git", "venv*", "build", "client/docs"]
line-length = 120
target-version = "py38"
[tool.ruff.per-file-ignores]
"**/__init__.py" = ["F401"]
[tool.ruff.flake8-quotes]
docstring-quotes = "double"
[tool.mypy]
mypy_path = "src/"
files = "src/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
[[tool.mypy.overrides]]
module = [
"sqlalchemy.*",
"qarnot.*",
"jose.*",
"passlib.*",
"app.*",
"requests.*",
]
ignore_missing_imports = true
[tool.isort]
line_length = 120
src_paths = ["src/"]
skip_glob = ["client/*", "**/__init__.py"]
known_first_party = ["pyrostorage", "app"]
known_third_party = ["fastapi"]
[tool.pydocstyle]
select = "D300,D301,D417"
match = ".*\\.py"
[tool.black]
line-length = 120
target-version = ['py38']
[tool.bandit]
exclude_dirs = []
skips = ["B101"]