-
Notifications
You must be signed in to change notification settings - Fork 262
/
tox.ini
58 lines (49 loc) · 1.55 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
[tox]
envlist = py,docs,check-formatting,lint
skipsdist = True
usedevelop = True
[testenv]
basepython = python3
deps =
-r{toxinidir}/dev-requirements.txt
commands =
coverage run -m pytest {posargs}
[testenv:docs]
deps = -rdocs-requirements.txt
commands =
# interrogate -vv --fail-under 40 pedalboard
; "black" is a code formatter, much like gofmt. It requires 3.6 or higher.
; This env just runs `black` and fails tox if it's not formatted correctly.
; If this env fails on Tingle, run `tox -e format` locally in order to apply changes.
[testenv:check-formatting]
basepython = python3
deps = black
skip_install = true
commands =
# black pedalboard tests --line-length 120 --experimental-string-processing --diff --check
# clang-format -style=LLVM pedalboard.cpp
[testenv:format]
basepython = python3
deps = black
skip_install = true
commands =
# black pedalboard tests --line-length 120 --experimental-string-processing
clang-format -style=LLVM -i pedalboard.cpp
[testenv:lint]
; feel free to add flake8 plugins (i.e. flake8-import-order), add isort,
; or use another linter of your choice
basepython = python3
deps = flake8
skip_install = true
commands = flake8
; The sections defined below are for configuring specific tools that are used
; in the above testenvs. Usually, if the tool is ran directly/outside of tox,
; i.e. `(env) $ pytest`, it will still pick up this configuration.
[flake8]
show-source = true
max-line-length = 120
ignore = W503,E203
exclude = .venv,.tox,.git,dist,doc,*.egg,build,vendors
[pytest]
addopts =
testpaths = tests