-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
37 lines (29 loc) · 836 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
; Main configuration for running tests with the CI pipeline
; Currently configured to run tests with both AA3 (=Django 4.0) and AA4 (=Django 4.2)
[flake8]
exclude = .git, *migrations*, .tox, dist, htmlcov
max-line-length = 88
select = C,E,F,W,B,B950
ignore = E203, E231, E501, W503, W291, W293
[tox]
envlist = {py38, py39, py310, py311}-django{40, 42}, pylint
[testenv]
setenv =
!django42: DJANGO_SETTINGS_MODULE = testauth.settings_aa3.local
django42: DJANGO_SETTINGS_MODULE = testauth.settings_aa4.local
deps=
!django42: allianceauth<4
django42: allianceauth>=4.0.0a4
coverage
commands_pre=
pip list
commands=
coverage run runtests.py student -v 2
coverage xml
coverage report -m
[testenv:pylint]
deps=
pylint
pylint-django
commands=
pylint --load-plugins pylint_django student