-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
47 lines (40 loc) · 1.15 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
[tox]
envlist = lint
minversion = 2.3.1
skipsdist = True
isolated_build = True
# requires =
# pip < 20.3
# virtualenv < 20.0
# setuptools<50.0.0
[testenv]
basepython = python3
allowlist_externals =
charmcraft
[testenv:lint]
deps = pre-commit
commands = pre-commit run --all-files --show-diff-on-failure
[testenv:build]
deps = -r{toxinidir}/requirements-dev.txt
commands =
charmcraft clean --verbose
charmcraft pack --verbose
; deps = charm-tools
; allowlist_externals = charm-build
; commands = charm-build --report --no-local-layers --force --log-level INFO
[testenv:test-xenial]
deps = jujuna
commands = jujuna deploy --timeout 600 --wait tests/bundles/xenial.yaml
[testenv:test-bionic]
deps = jujuna
commands = jujuna deploy --timeout 600 --wait tests/bundles/bionic.yaml
[isort]
force_single_line = True
[flake8]
exclude = .tox/*,build/*,docs/*,.env/*,get-pip.py,migrations/*
ignore = D203, D100, D103, D202, D205, D400, D413, W503
import-order-style = google
max-line-length = 120
statistics = True
; flake8-colors
format = ${cyan}%(path)s${reset}:${yellow_bold}%(row)d${reset}:${green_bold}%(col)d${reset}: ${red_bold}%(code)s${reset} %(text)s