-
Notifications
You must be signed in to change notification settings - Fork 0
/
.prospector.yaml
88 lines (82 loc) · 2.85 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# 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 installing the package but couldn't get to work:
# Can't run tool pyroma as support wasn't installed.
# 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 it fails with `pyflakes - F401` 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"
# I dislike the `One-line docstring should fit on one line with quotes` rule in the
# first place. I think the mix makes docstrings more difficult to scan visually.
# The point of these tools is to avoid choices so I went along with it until I
# discovered that `$ pydocstyle` issues this warning even when the one-line version
# exceeds the `max-line-length`:
- "D200"
# Redundant with `pylint - missing-function-docstring`
- "D103"
# Prospector's file finding process seems quite expensive, best to aggressively
# exclude directories it should never have to search:
# https://prospector.landscape.io/en/master/profiles.html#ignoring-paths-and-patterns
ignore-paths:
# Build artifacts that might contain many files:
# $ find -mindepth 1 -maxdepth 1 -type d | while read top_dir; do \
# > echo " - \"$(basename "${top_dir}")\""; done
- "test"
- "docs"
- ".mypy_cache"
- "newsfragments"
- "styles"
- "node_modules"
- ".reuse"
- "requirements"
- "build"
- ".tox"
- "home"
- "LICENSES"
- "var"
- "bin"
- ".git"
- "dist"
# Ignore failures in these artifacts:
- "src/prunerr/version.py"
# TEMPLATE: Add any paths that never contain Python code under `./src/prunerr/`
# or `./tests/prunerrtests/` for your project:
# - "tests/prunerrtests/fixtures"