forked from PythonTurtle/PythonTurtle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
67 lines (59 loc) · 1.76 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
62
63
64
65
66
67
# Tox configuration for linting and tests.
#
# IMPORTANT NOTE:
# - Installing wxPython is non-trivial on GNU/Linux. We need to install wheels from a dedicated repository,
# located at https://extras.wxpython.org/wxPython4/extras/linux/. For beackground reading see
# https://wiki.wxpython.org/How%20to%20install%20wxPython#Installing_wxPython-Phoenix_using_pip
# - The wheel repository specified via --find-links below matches the build environment on GitHub Actions.
# - For local Tox runs adapt the wheel repository URLs to match your local environment.
[tox]
envlist =
flake8
pylint
py36
py37
py38
[testenv]
description = Unit tests
deps =
pytest
commands =
{envpython} -m pip install --find-links https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-18.04 wxPython
{envpython} -m pytest
[testenv:flake8]
description = Static code analysis and code style
deps =
flake8
commands =
{envpython} -m flake8 {posargs}
[testenv:pylint]
description = Check for errors and code smells
deps =
pylint
pyinstaller
commands =
{envpython} -m pip install --find-links https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-18.04 wxPython
{envpython} -m pylint --rcfile tox.ini {posargs:pythonturtle setup}
[gh-actions]
python =
3.6: py36
3.7: py37
3.8: py38
[flake8]
exclude =
.cache
.git
.tox
build
dist
out
PythonTurtle
[pylint]
disable = attribute-defined-outside-init,invalid-name,missing-docstring,no-member,self-cls-assignment,too-few-public-methods,too-many-instance-attributes,too-many-locals,too-many-statements,unused-argument,fixme,arguments-differ
[pytest]
addopts =
--color=yes
--ignore=PythonTurtle
--junitxml=tests/reports/unittests.xml
--strict
--verbose