Skip to content

Commit

Permalink
Merge pull request #1587 from camptocamp/prospector
Browse files Browse the repository at this point in the history
Cleanup Prospector configuration, fix the errors
  • Loading branch information
sbrunner authored Aug 29, 2023
2 parents 09dddb3 + 96a4135 commit 0bd8e53
Show file tree
Hide file tree
Showing 43 changed files with 394 additions and 315 deletions.
33 changes: 3 additions & 30 deletions .prospector.yaml
Original file line number Diff line number Diff line change
@@ -1,45 +1,18 @@
inherits:
- duplicated
- utils:base
- utils:no-design-checks

strictness: veryhigh
doc-warnings: false
max-line-length: 110

ignore-patterns:
- ^tilecloud/scripts/tc_.*.py

pylint:
options:
max-line-length: 110
disable:
- too-many-instance-attributes
- too-many-ancestors
- too-many-return-statements
- too-many-branches
- too-many-arguments
- too-many-locals
- too-many-nested-blocks
- too-few-public-methods
- no-else-return
- abstract-method
- invalid-name
- redefined-builtin
- broad-except
- cyclic-import # see: https://github.com/PyCQA/pylint/issues/850

pycodestyle:
disable:
- E501

mypy:
run: true

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

pyroma:
run: true

mccabe:
run: false
19 changes: 15 additions & 4 deletions poetry.lock

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

7 changes: 3 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,10 @@ redis = ["redis"]
prometheus = ["prometheus_client"]
all = ["azure-storage-blob", "azure-identity", "boto3", "pyramid", "redis", "prometheus_client"]

[tool.poetry.dev-dependencies]
[tool.poetry.group.dev.dependencies]
prospector = { version = "1.10.2", extras = ["with_bandit", "with_mypy", "with_pyroma"] }
prospector-profile-duplicated = "0.3.0"
prospector-profile-utils = "1.1.0"
pytest = "7.4.0"
pytest-cov = "4.1.0"
types-boto = "2.49.18.8"
Expand All @@ -79,9 +81,6 @@ types-requests = "2.31.0.1"
pycairo = "1.24.0"
Shapely = "2.0.1"

[tool.poetry.group.dev.dependencies]
prospector-profile-duplicated = "0.1.0"

[build-system]
requires = [
"poetry-core>=1.3.0",
Expand Down
Loading

0 comments on commit 0bd8e53

Please sign in to comment.