forked from corpusops/bitwardentools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cfg
66 lines (54 loc) · 1.12 KB
/
setup.cfg
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
59
60
61
62
63
64
65
[tox]
minversion = 2.3
envlist =
tests
coverage
linting
skipsdist = true
[testenv]
direct=true
allowlist_externals=*
changedir=src/
passenv=*
[testenv:tests]
commands =
coverage erase
pytest
[testenv:coverage]
commands =
coverage erase
sh -exc 'pytest --cov'
coverage report
coverage html -d {env:DATA_PATH:/w/data}/htmlcov
coverage xml -o {env:DATA_PATH:/w/data}/xml.cov
coverage annotate -d {env:DATA_PATH:/w/data}/annotatecov
[testenv:linting]
commands =
black --check .
pylama -o ../setup.cfg
isort -c -rc --quiet .
[testenv:clean]
deps = coverage
commands = coverage erase
[pylama]
skip = */migrations/*,*/settings/*
ignore = W0401,C901
[pep8]
max_line_length = 120
[pylama:pep8]
max_line_length = 120
[pylama:pycodestyle]
max_line_length = 120
ignore = E203, W503
[flake8]
extend-ignore = E203, W503
exclude = docs
max-line-length = 120
[isort]
multi_line_output = 3
include_trailing_comma = True
force_grid_wrap = 0
use_parentheses = True
ensure_newline_before_comments = True
# let this low for isort to cut long import lines down with parenthesis
line_length = 88