Some utility Prospector profiles.
Project description
Prospector profile utils
It contains some utility Prospector profiles.
Usage
pip install prospector-profile-utils
Then, in your .prospector.yaml file, you can use the profiles like this:
inherits:
- utils:base
- utils:c2cwsgiutils
- utils:no-design-checks
It provide also an alternate base witch activate less strict checks:
inherits:
- utils:base-less-strict
Additional available profiles:
utils:fix: Disables specific rules that are known to have reliability issues.utils:autofix: Enables automatic fixing capabilities for supported rules.utils:tests: Specifically designed for test files validation, recommended to use in combination with theutils:fixorutils:pre-commitprofiles.utils:pre-commit: Specifically designed for pre-commit hooks.
pre-commit profile
I use the utils:tests and utils:pre-commit profiles with the following precommit configuration to have the ruff checks with auto-fix on all the files with a specific profile for the tests.
repos:
- repo: https://github.com/PyCQA/prospector
rev: v<rev>
hooks:
- id: prospector
args:
- --die-on-tool-error
- --output-format=pylint
- --profile=utils:pre-commit
- --profile=.prospector.yaml
additional_dependencies:
- prospector-profile-duplicated==<rev> # pypi
- prospector-profile-utils==<rev> # pypi
- id: prospector
args:
- --die-on-tool-error
- --output-format=pylint
- --profile=utils:pre-commit
- --profile=utils:tests
additional_dependencies:
- prospector-profile-utils==<rev> # pypi
Contributing
Install the pre-commit hooks:
pip install pre-commit
pre-commit install --allow-missing-config
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file prospector_profile_utils-1.27.0.tar.gz.
File metadata
- Download URL: prospector_profile_utils-1.27.0.tar.gz
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1f74b5c07b895ce280e5988a3b82f475424b59efc70914881fcddd0cdec7a716
|
|
| MD5 |
6078969007507f0b421395b8f417ca0b
|
|
| BLAKE2b-256 |
eb961780dccb8060f902bbf906bda8d7c4763b86f8a8fbfa1a6d7ae350932f96
|
File details
Details for the file prospector_profile_utils-1.27.0-py2.py3-none-any.whl.
File metadata
- Download URL: prospector_profile_utils-1.27.0-py2.py3-none-any.whl
- Upload date:
- Size: 11.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
15902c24d5005c895d79b232678c878b1d2bdaaedfec7d29774d2b3ba5e0d4d7
|
|
| MD5 |
dbd43cbd82bc3ce690d0807144d481cd
|
|
| BLAKE2b-256 |
a7bf97d82e0895075b075787bd1099f8e6eab3af133a8ce2a8e6126f5c1091bf
|