summaryrefslogtreecommitdiff
path: root/.prospector.yaml
blob: d6714ed2db8c8d0a0f9e68d9b9028ca07eee5930 (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
inherits:
    - strictness_veryhigh

ignore:
  - (^|/)\..+
  - ^docs/
  # ignore tests and bin/ for the moment, their quality does not so much matter.
  - ^bin/
  - ^blessed/tests/

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

pep257:
    # docstring checking
    run: true

pep8:
    # style checking
    run: true

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

pylint:
    # static analysis and then some
    run: true
    options:
        # pytest module has dynamically assigned functions,
        # raising errors such as: E1101: Module 'pytest' has
        # no 'mark' member
        ignored-classes: pytest
    disable:
        # Too many lines in module
        ##- C0302
        # Used * or ** magic
        ##- W0142
        # Used builtin function 'filter'.
        # (For maintainability, one should prefer list comprehension.)
        ##- W0141
        # Use % formatting in logging functions but pass the % parameters
        ##- W1202

pyroma:
    # checks setup.py
    run: true

vulture:
    # this tool does a good job of finding unused code.
    run: true

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