-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
60 lines (51 loc) 路 1.07 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
[tool.pytest.ini_options]
asyncio_mode = "auto"
[tool.black]
line-length = 120
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = py3,security,lint
[testenv]
deps =
pip~=22.1
-r{toxinidir}/requirements-tests.txt
commands=
coverage erase
pytest --cov=app
coverage report -m
coverage xml -i
[testenv:py3]
basepython = python3.12
recreate = true
[testenv:security]
basepython = python3.12
commands =
bandit -r app/
pip-audit --disable-pip --no-deps --requirement requirements.txt
[testenv:lint]
basepython = python3.12
commands =
ruff format --check src
ruff check src
"""
[tool.ruff]
line-length = 120
include = ["pyproject.toml", "src/**/*.py"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"ASYNC", # flake8-async
"S", # flake8-bandit
"DTZ", # flake8-datetimez
"SIM", # flake8-simplify
]
ignore = [
"B008" # do not perform function calls in argument defaults
]