-
Notifications
You must be signed in to change notification settings - Fork 7
/
tox.ini
31 lines (28 loc) · 1.04 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
[tox]
envlist = py{38,39,310}-{tests},{py38,py39,310}-codecheck-{pylint,flake8,bandit}
skipsdist = True
[testenv]
allowlist_externals = bash
deps = -r {toxinidir}/requirements/test.txt
passenv = *
commands =
py{38,39,310}-tests: bash {toxinidir}/run_tests.sh unit
py{38,39,310}-codecheck-pylint: pylint r2env
py{38,39,310}-codecheck-flake8: flake8 r2env
py{38,39,310}-codecheck-bandit: bandit -c .bandit.yml -r r2env
[flake8]
# to ignore complete files, add to the file: # flake8: noqa
# to ignore specific lines inspections, add to the line: # noqa: E731,E123
# https://google.github.io/styleguide/pyguide.html?showone=Imports_formatting#Imports_formatting
import-order-style = google
statistics = True
max-complexity = 10
max-line-length = 120
exclude = test,venv,.venv,.tox,bin
ignore =
# missing docstring in public module (meaning: docstring in at the top of the file)
D100
# Missing module docstring (missing-module-docstring)
D104
# this recommendation goes against PEP8, and generates a loop with W504
W503