Skip to content

Commit

Permalink
Upgrade Prospector, use profile
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Oct 8, 2024
1 parent a3844da commit c89c60d
Show file tree
Hide file tree
Showing 6 changed files with 446 additions and 529 deletions.
39 changes: 3 additions & 36 deletions .prospector.yaml
Original file line number Diff line number Diff line change
@@ -1,50 +1,17 @@
inherits:
- utils:base
- utils:no-design-checks
- duplicated
strictness: veryhigh
max-line-length: 110

doc-warnings: true

ignore-paths:
- c2cciutils/configuration.py

pylint:
disable:
- too-many-arguments
- too-many-branches
- too-many-locals
- too-many-statements
- too-many-nested-blocks
- too-many-lines
- too-few-public-methods
- line-too-long # done by Black
- missing-module-docstring

pycodestyle:
options:
max-line-length: 110
disable:
- W293 # blank line contains whitespace
- E501 # line too long, Done by Black

pydocstyle:
disable:
- D105 # Missing docstring in magic method
- D200 # One-line docstring should fit on one line with quotes
- D202 # No blank lines allowed after function docstring
- D203 # 1 blank line required before class
- D212 # Multi-line docstring summary should start at the first line
- D407 # Missing dashed underline after section
mypy:
run: true

bandit:
run: true
options:
config: .bandit.yaml

# Not working withy current Pyroma version
pyroma:
run: true

mccabe:
run: false
24 changes: 3 additions & 21 deletions example-project/.prospector.yaml
Original file line number Diff line number Diff line change
@@ -1,25 +1,11 @@
inherits:
- utils:base
- utils:no-design-checks
- duplicated
strictness: veryhigh
max-line-length: 110

pylint:
disable:
- too-many-arguments
- too-many-branches
- too-many-locals
- too-many-statements
- too-many-nested-blocks
- too-few-public-methods

pycodestyle:
options:
max-line-length: 110

mypy:
run: true
options:
python-version: 3.8
python-version: '3.10'
ignore-missing-imports: True
warn:
- redundant-casts
Expand All @@ -28,9 +14,5 @@ mypy:
- untyped-defs

bandit:
run: true
options:
config: .bandit.yaml

mccabe:
run: false
Loading

0 comments on commit c89c60d

Please sign in to comment.