summaryrefslogtreecommitdiff
path: root/.prospector.yaml
blob: 31f1ead92d9908b9120ae8946e97a65cb68d0daa (plain)
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
66
67
68
69
70
71
72
73
74
75
76
77
inherits:
    - strictness_veryhigh

ignore-patterns:
  - (^|/)\..+
  - ^docs/
  - ^build/
  # ignore these, their quality does not so much matter.
  - ^blessings/tests/
  - ^tools/
  # EK doesn't want setup.py checked
  - ^setup.py

test-warnings: true

output-format: grouped

dodgy:
    # Looks at Python code to search for things which look "dodgy"
    # such as passwords or git conflict artifacts
    run: true

frosted:
    # static analysis
    run: true

mccabe:
    # complexity checking.
    run: true
    disable:
        # Terminal.__init__ is too complex (14)
        - MC0001

pep257:
    # docstring checking
    run: false

pep8:
    # style checking
    run: true

pyflakes:
    # preferring 'frosted' instead (a fork of)
    run: false

pylint:
    # static analysis and then some
    run: false
    options:
        # pytest module has dynamically assigned functions,
        # raising errors such as: E1101: Module 'pytest' has
        # no 'mark' member
        ignored-classes: pytest
    disable:
        # Access to a protected member _sugar of a client class
        - protected-access
        # blessings.Terminal: Too many instance attributes (12/7)
        - too-many-instance-attributes
        # blessings.Terminal: Too many public methods (25/20)
        - too-many-public-methods
        # blessings.Terminal: Too many branches (13/12)
        - too-many-branches
        # blessings.sequences.get_wontmove_sequence_patterns:
        #   Used builtin function 'map'
        - bad-builtin


pyroma:
    # checks setup.py
    run: true

vulture:
    # this tool does a good job of finding unused code, which isn't terribly
    # useful from an API perspective, disable.
    run: false

# vim: noai:ts=4:sw=4