-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
42 lines (36 loc) · 883 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
41
42
; SPDX-FileCopyrightText: 2021 Markus Linnala <markus.linnala@cybercom.com>
;
; SPDX-License-Identifier: Apache-2.0
[tox]
envlist = black,cs,mypy
isolated_build = True
basepython = python3.9
setenv = sources = simple-cil-parser.py
[testenv:cs]
deps =
flake8
flake8-bugbear;python_version>="3.9"
commands =
flake8 []{posargs}
[testenv:mypy]
setenv = sources = simple-cil-parser.py
deps =
mypy
types-six
commands =
mypy --strict {posargs:{env:sources}}
[testenv:black]
setenv = sources = simple-cil-parser.py
deps =
black
commands =
black --diff --skip-string-normalization {posargs:{env:sources}}
[flake8]
show-source = True
max-line-length = 140
ignore = W503,F405,E203
exclude = _test/lib,.hg,.git,.tox,dist,.cache,__pycache__,ruamel.zip2tar.egg-info
[pytest]
filterwarnings =
error::DeprecationWarning
error::PendingDeprecationWarning