-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
50 lines (43 loc) · 1009 Bytes
/
tox.ini
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
[tox]
isolated_build = true
envlist =
lint,
py311-django{502},
sentry-django{30,31},
[testenv]
allowlist_externals = poetry
commands =
poetry install
poetry run pytest --cov=accounts --cov=identity --cov=analytics --cov-append {posargs}
setenv =
DJANGO_SETTINGS_MODULE = tests.settings
PYTHONPATH = {toxinidir}
PYTHONWARNINGS = all
deps =
django502: Django>=5.0.2
sentry: sentry-sdk
[testenv:lint]
commands =
poetry install
poetry run flake8 .
poetry run isort -c .
poetry run black --check .
[flake8]
max-line-length = 100
exclude = docs/, accounts/migrations/, .tox/, build/
inline-quotes = double
[isort]
default_section = THIRDPARTY
known_first_party = accounts, identity, analytics
line_length = 88
lines_after_imports = 2
multi_line_output = 3
include_trailing_comma = True
use_parentheses = True
[coverage:run]
source = accounts, identity, analytics
[pytest]
django_find_project = false
[gh-actions]
python =
3.11: py311, lint, sentry