forked from herbstluftwm/herbstluftwm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
35 lines (29 loc) · 788 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
[tox]
envlist = py36
skipsdist = true
###
# Cheatsheet:
#
# * run a specific test suite: tox -- tests/test_layout.py
# * run a specific single test case: tox -- tests/test_layout.py::test_single_frame_layout
# * run tests matching a substring expression: tox -- _remove_
# * run tests in parallel: tox -- -n auto
###
###
[testenv]
# OBACHT / CAUTION: you need to have xvfb installed (xorg-server-xvfb)
commands = {envpython} -m pytest {posargs}
deps =
pytest-xvfb
pytest-xdist
python-xlib
; Pass $PWD as it is when tox is invoked to pytest (used to find hlwm binaries)
passenv = PWD
[testenv:flake8]
deps =
flake8
commands = flake8 .
[flake8]
ignore =
E501, # line too long
W503, # incompatible with pep8.. "Line break occurred before a binary operator"