-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
99 lines (81 loc) · 1.88 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
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "flask-boilerplate"
description = ""
authors = ["nhymxu"]
readme = "README.md"
package-mode = false
[tool.poetry.dependencies]
python = "^3.12"
uvicorn = {extras = ["standard"], version = "^0.30.0"}
gunicorn = "^22.0.0"
a2wsgi = "^1.10.6"
flask = {extras = ["async", "dotenv"], version= "^3.0.3"}
python-dotenv = "^1.0.1"
httpx = "^0.27.0"
stamina = "^24.2.0"
[tool.poetry.group.dev.dependencies]
ruff = "^0.4.3"
[tool.poetry.group.test.dependencies]
coverage = {extras = ["toml"], version = "^7.6.0"}
pytest = "^8.2.0"
pytest-asyncio = "^0.23.8"
pytest-cov = "^5.0.0"
pytest-mock = "^3.14.0"
pytest-order = "^1.2.1"
pytest-randomly = "^3.15.0"
time-machine = "^2.14.2"
[tool.ruff]
exclude = [
".git",
"__pycache__",
".env",
".venv",
"old",
"build",
"dist",
"tests",
"exclude",
]
line-length = 120
indent-width = 4
[tool.ruff.lint]
select = [
"E",
"F",
"I",
"W",
]
ignore = [
"F841",
"W605",
]
# Allow fix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = []
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.format]
# Like Black, use double quotes for strings.
quote-style = "double"
# Like Black, indent with spaces, rather than tabs.
indent-style = "space"
# Like Black, respect magic trailing commas.
skip-magic-trailing-comma = false
# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"
[tool.mypy]
exclude = [
'exclude/',
]
ignore_missing_imports = true
[tool.pylint.FORMAT]
max-line-length = 120
[tool.pylint.MASTER]
init-hook="from pylint.config import find_pylintrc; import os, sys; sys.path.append(os.path.dirname(find_pylintrc()))"
[tool.pytest.ini_options]
testpaths = [
"tests",
]