forked from AndreMiras/pycaw
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
40 lines (33 loc) · 741 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
[tox]
envlist = lint-check,py{38,39,310,311,312}
skipsdist = True
[testenv]
setenv =
SOURCES = pycaw/ tests/ examples/ setup.py
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = pytest --cov=pycaw --cov-report term --cov-report xml tests/
[flake8]
exclude =
venv,
.tox,
.git
max-line-length = 88
[isort]
profile = black
[coverage:run]
relative_files = True
[testenv:coveralls]
passenv = GITHUB_*
setenv =
COVERALLS_SERVICE_NAME = github
commands = coveralls
[testenv:lint-check]
commands =
flake8 {env:SOURCES}
isort --check-only --diff {env:SOURCES}
black --check {env:SOURCES}
[testenv:lint-format]
commands =
isort {env:SOURCES}
black {env:SOURCES}