forked from blurstudio/PrEditor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
61 lines (54 loc) · 1.39 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
56
57
58
59
60
61
[tox]
envlist = begin,py{27,36,37,38,39},modernize,black,flake8
skip_missing_interpreters = True
skipsdist = True
[testenv]
changedir = {toxinidir}
# NOTE: we can't install PyQt using pip in python 2, use system-site-packages
sitepackages =
{py27}: True
setenv =
{py27}: PYTHONWARNINGS=ignore:DEPRECATION::pip._internal.cli.base_command
skip_install = True
deps =
-rrequirements.txt
covdefaults
coverage
pytest
PyQt5;python_version>="3.5"
QScintilla>=2.11.4;python_version>="3.5"
Qt.py
commands =
# Ensure the version.py file is created
python setup.py egg_info
python -m coverage run -m pytest {posargs:tests/}
python -m coverage report
[testenv:modernize]
# Test compatibility with python 2 and 3
deps =
modernize
commands =
# Check for python 3 compliance
python -m compileall -f -q -x \.tox|shared-venv .
# Note: `-f numliterals -f except -f dict_six` always report failure so we can't include them
# in this test.
python -m modernize -f print -f import -f basestring -f unicode_type --enforce ./preditor
[testenv:begin]
basepython = python3
deps =
coverage
commands = coverage erase
[testenv:black]
basepython = python3
deps =
black==22.12.0
commands =
python -m black . --check
[testenv:flake8]
basepython = python3
deps =
flake8==5.0.4
flake8-bugbear==22.12.6
pep8-naming==0.13.3
commands =
python -m flake8 .