-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtox.ini
More file actions
42 lines (36 loc) · 785 Bytes
/
tox.ini
File metadata and controls
42 lines (36 loc) · 785 Bytes
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
[tox]
envlist =
lint
py3-django{40,41,42}
skipsdist = True
[base]
deps =
-r requirements.txt
[testenv:lint]
deps =
flake8
commands =
flake8 lowfat
[testenv]
deps =
{[base]deps}
coverage
setenv =
SECRET_KEY=test_secret_key
commands =
# Reinstall Django here to override version in requirements.txt
; django32: pip install django~=3.2.0
django40: pip install django~=4.0.0
django41: pip install django~=4.1.0
django42: pip install django~=4.2.0
coverage run --source=lowfat/ manage.py test
coverage report --skip-covered
[flake8]
exclude =
migrations
max-line-length = 120
ignore = E501, W503, E722
# Errors Ignored
# E501 ; line too long
# W503 ; line break before binary operator
# E722 ; do not use bare except