Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup Prospector configuration, fix the errors #1587

Merged
merged 1 commit into from
Aug 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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