forked from chaitin/django-pg-partitioning
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
47 lines (42 loc) · 998 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
[tox]
envlist =
{py36,py37}-django{20,21,22,master}
docs
lint
[travis:env]
DJANGO =
2.0: django20
2.1: django21
2.2: django22
master: djangomaster
[testenv]
setenv =
PYTHONDONTWRITEBYTECODE=1
PYTHONWARNINGS=once
envdir = {toxworkdir}/venvs/{envname}
extras =
dev
deps =
lint: isort
black
flake8
flake8-bugbear
flake8-quotes
django20: Django>=2.0,<2.1
django21: Django>=2.1,<2.2
django22: Django>=2.2a1,<3.0
djangomaster: https://github.com/django/django/archive/master.tar.gz
commands =
python3 ./run_test.py -c {posargs}
[testenv:docs]
basepython = python3.6
whitelist_externals = make
changedir = docs
commands =
make html
[testenv:lint]
basepython = python3.6
commands =
isort -rc pg_partitioning tests
black pg_partitioning tests -l 157 --exclude pg_partitioning/migrations/*
flake8 {toxinidir}/pg_partitioning {toxinidir}/tests {toxinidir}/*.py --exclude */migrations