generated from rpatterson/project-structure
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.prospector.yaml
70 lines (65 loc) · 2.48 KB
/
.prospector.yaml
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
# SPDX-FileCopyrightText: 2023 Ross Patterson <[email protected]>
#
# SPDX-License-Identifier: MIT
# https://prospector.landscape.io/en/master/profiles.html#global-configuration-options
strictness: "veryhigh"
test-warnings: true
doc-warnings: true
member-warnings: true
autodetect: false
inherits:
- "full_pep8"
max-line-length: 88
# https://prospector.landscape.io/en/master/profiles.html#enabling-and-disabling-tools
bandit:
run: true
mypy:
run: true
# Tools that report more when run independently:
# https://github.com/PyCQA/prospector/issues/599#issuecomment-1445406215
vulture:
run: false
pylint:
run: false
# Deprecated in favor of PyFlakes:
# https://github.com/timothycrosley/deprecated.frosted#important-note-frosted-is-deprecated-long-live-flake8
# frosted:
# run: true
# FIXME: I confirmed the package is installed but couldn't get to work:
# Cannot run tool pyroma as support was not installed.
# Please install by running 'pip3 install prospector[with_pyroma]'
# pyroma:
# run: true
pyflakes:
disable:
# Redundant with `pylint - unused-import`.
# If a line disables that error with a ` # pylint: disable=unused-import` comment,
# then the `pyflakes - F401` error is returned and vice versa with a ` # noqa: `
# comment and I couldn't get both to work in the same comment.
- "F401"
pep257:
disable:
# Choose between the conflicting docstring first line rules:
# https://github.com/PyCQA/pydocstyle/issues/242#issuecomment-288166773
- "D212"
# https://github.com/PyCQA/pydocstyle/issues/141#issuecomment-146903063
- "D203"
# Disable `One-line docstring should fit on one line with quotes`. I don't like
# this rule in the first place, I think the mix makes docstrings harder to scan
# visually. The point of these tools, however, is to minimize choices so I went
# along with it until I discovered that `$ pydocstyle` will issue this warning even
# when the one-line version exceeds the `max-line-length`.
- "D200"
# Redundant with `pylint - missing-function-docstring`
- "D103"
# Defensively avoid scanning large artifacts:
# https://prospector.landscape.io/en/master/profiles.html#ignoring-paths-and-patterns
ignore-paths:
- "src/feedarchiver/version.py"
- ".tox"
- "var"
# Prospector's file finding process seems quite expensive, best to aggressively
# exclude directories it should never have to check:
- "src/prunerr/newsfragments"
- "src/feedarchiver/tests/remotes"
- "src/feedarchiver/tests/archives"