Skip to content

Commit

Permalink
Update Prospector configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Nov 4, 2024
1 parent 0bb4520 commit 5dee123
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 35 deletions.
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ repos:
- --die-on-tool-error
additional_dependencies:
- prospector-profile-duplicated==1.6.0 # pypi
- prospector-profile-utils==1.9.1 # pypi
- repo: https://github.com/sbrunner/jsonschema-validator
rev: 0.1.0
hooks:
Expand Down
32 changes: 2 additions & 30 deletions .prospector.yaml
Original file line number Diff line number Diff line change
@@ -1,32 +1,4 @@
inherits:
- utils:base
- utils:no-design-checks
- duplicated
strictness: veryhigh
max-line-length: 110
doc-warnings: true

pylint:
disable:
- too-many-arguments
- missing-module-docstring

pycodestyle:
disable:
- E722 # Do not use bare 'except'

pydocstyle:
disable:
- D104 # Missing docstring in public package
- D212 # Multi-line docstring summary should start at the first line
- D407 # Missing dashed underline after section ('Arguments')
- D412 # No blank lines allowed between a section header and its content ('Arguments')
bandit:
run: true

mypy:
run: true

pyroma:
run: true

mccabe:
run: false
15 changes: 13 additions & 2 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,10 @@ print_colors = "bashcolor:print_colors"
[tool.poetry.dependencies]
python = ">=3.9,<3.13"

[tool.poetry.dev-dependencies]
prospector = { version = "1.12.1", extras = ["with_bandit", "with_mypy", "with_pyroma"] }

[tool.poetry.group.dev.dependencies]
prospector = { version = "1.12.1", extras = ["with_bandit", "with_mypy", "with_pyroma"] }
prospector-profile-duplicated = "1.6.0"
prospector-profile-utils = "1.9.1"

[build-system]
requires = ["poetry-core>=1.0.0", "poetry-plugin-tweak-dependencies-version", "poetry-dynamic-versioning", "poetry-plugin-drop-python-upper-constraint"]
Expand Down

0 comments on commit 5dee123

Please sign in to comment.