/ tox.ini
tox.ini
 1  [tox]
 2  requires = virtualenv<20.22.0
 3  envlist = reset,py{27,27-portable,35,36,38,39,310},stats
 4  skip_missing_interpreters = true
 5  
 6  [testenv]
 7  setenv =
 8      BITMESSAGE_HOME = {envtmpdir}
 9      HOME = {envtmpdir}
10      PYTHONWARNINGS = default
11  deps = -rrequirements.txt
12  commands =
13      python checkdeps.py
14      python src/bitmessagemain.py -t
15      coverage run -a -m tests
16  
17  [testenv:lint-basic]
18  skip_install = true
19  basepython = python3
20  deps =
21      bandit
22      flake8
23  commands =
24      bandit -r -s B101,B411,B413,B608 \
25      -x checkdeps.*,bitmessagecurses,bitmessageqt,tests pybitmessage
26      flake8 pybitmessage --count --select=E9,F63,F7,F82 \
27      --show-source --statistics
28  
29  [testenv:lint]
30  skip_install = true
31  basepython = python3
32  deps =
33       -rrequirements.txt
34       pylint
35  commands = pylint --rcfile=tox.ini --exit-zero pybitmessage
36  
37  [testenv:py27]
38  sitepackages = true
39  
40  [testenv:py27-doc]
41  deps =
42      .[docs]
43      -r docs/requirements.txt
44  commands = python setup.py build_sphinx
45  
46  [testenv:py27-portable]
47  skip_install = true
48  commands = python pybitmessage/bitmessagemain.py -t
49  
50  [testenv:py35]
51  skip_install = true
52  
53  [testenv:py36]
54  setenv =
55      BITMESSAGE_TEST_POW = true
56      {[testenv]setenv}
57  
58  [testenv:reset]
59  skip_install = true
60  deps = coverage
61  commands = coverage erase
62  
63  [testenv:stats]
64  skip_install = true
65  deps = coverage
66  commands =
67      coverage report
68      coverage xml
69  
70  [coverage:run]
71  source = src
72  omit =
73      tests.py
74      */tests/*
75      src/bitmessagekivy/*
76      src/version.py
77      src/fallback/umsgpack/*
78  
79  [coverage:report]
80  ignore_errors = true
81  
82  [pylint.main]
83  disable =
84      invalid-name,consider-using-f-string,fixme,raise-missing-from,
85      super-with-arguments,unnecessary-pass,unknown-option-value,
86      unspecified-encoding,useless-object-inheritance,useless-option-value
87  ignore = bitmessagecurses,bitmessagekivy,bitmessageqt,messagetypes,mockbm,
88      network,plugins,umsgpack,bitmessagecli.py
89  
90  max-args = 8
91  max-attributes = 8