File: tox.ini

package info (click to toggle)
setools 4.3.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 3,900 kB
  • sloc: python: 20,968; makefile: 14
file content (42 lines) | stat: -rw-r--r-- 1,402 bytes parent folder | download | duplicates (2)
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
[tox]
minversion      = 1.4
envlist         = py34, py35, py36

[pycodestyle]
max-line-length = 100
# W605 ignored because pycodestyle gets confused by a regex string
# in AVRuleTest test_103_statement_two_perms_cond
ignore          = W605

[testenv:pep8]
deps            = pycodestyle
                  cython>=0.27
commands        = pycodestyle --version
                  pycodestyle setools/ setoolsgui/ tests/ seinfo seinfoflow sedta sesearch sediff --statistics

[testenv:coverage]
setenv          = SETOOLS_COVERAGE = 1
deps            = networkx==2.0
                  coverage>=4.0
                  cython>=0.27
commands        = coverage --version
                  coverage erase
                  coverage run setup.py test -q
                  coverage report

[testenv:lint]
deps            = pylint
                  networkx==2.0
                  cython>=0.27
commands        = {envpython} setup.py build_ext -i
                  pylint --version
                  pylint -E --rcfile .pylintrc setools tests seinfo seinfoflow sedta sesearch sediff
                  # pylint can't see all members introduced by PyQt uic
                  pylint -E --rcfile .pylintrc --disable=no-member,import-error setoolsgui

[testenv]
passenv         = USERSPACE_SRC
deps            = networkx==2.0
                  cython>=0.27
commands        = {envpython} setup.py test
recreate        = True