forked from jazzband/django-simple-history
-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
55 lines (48 loc) · 1.32 KB
/
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
51
52
53
54
55
[tox]
envlist =
py{36,37,38,39}-dj{22,30,31,dev}-{sqlite3,postgres,mysql,mariadb},
docs,
lint
[gh-actions]
python =
3.6: py36
3.7: py37
3.8: py38, docs, lint
3.9: py39
[gh-actions:env]
DJANGO =
2.2: dj22
3.0: dj30
3.1: dj31
dev: djdev
[flake8]
ignore = N802,F401,W503
max-complexity = 10
max-line-length = 88
exclude = __init__.py,simple_history/registry_tests/migration_test_app/migrations/*
[testenv]
deps =
-rrequirements/test.txt
dj22: Django>=2.2,<2.3
dj30: Django>=3.0,<3.1
dj31: Django>=3.1,<3.2
djdev: https://github.com/django/django/tarball/master
postgres: -rrequirements/postgres.txt
mysql: -rrequirements/mysql.txt
mariadb: -rrequirements/mysql.txt
commands =
sqlite3: coverage run -a runtests.py
postgres: coverage run -a runtests.py --database=postgres
mysql: coverage run -a runtests.py --database=mysql
mariadb: coverage run -a runtests.py --database=mariadb
coverage report
[testenv:lint]
deps = -rrequirements/lint.txt
commands =
isort --check --diff docs simple_history runtests.py setup.py
black --check --diff docs simple_history runtests.py setup.py
flake8 simple_history
[testenv:docs]
changedir = docs
deps = -rrequirements/docs.txt
commands = sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html