-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathtox.ini
34 lines (29 loc) · 847 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 = flake8, black, yamllint
minversion = 1.6
skipsdist = True
[default]
basepython = python3
[testenv:flake8]
basepython = {[default]basepython}
commands = flake8 images build.py
deps = flake8
[flake8]
max-line-length = 100
# E121, E123, E126, E133, E226, E241, E242, E704 and W503 are default ignores
# E124: closing bracket does not match visual indentation
# E203: non-pep8 compliant brainfart of flake8
ignore = E121,E123,E126,E133,E203,E226,E241,E242,E704,W503,E124
[testenv:black]
description = check black formatter
basepython = {[default]basepython}
commands = black -l 80 -t py36 --check \
images \
build.py
deps = black
[testenv:yamllint]
description = check yaml with yamllint
basepython = {[default]basepython}
commands = bash ./tox_scripts/yamllint.sh
deps = yamllint
allowlist_externals = bash