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
Metadata
Release files for prospector-profile-utils 1.27.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| prospector_profile_utils-1.27.0.tar.gz | 8.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| prospector_profile_utils-1.27.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 19.2 kB
Release files / prospector_profile_utils-1.27.0.tar.gz
| Download URL | prospector_profile_utils-1.27.0.tar.gz |
|---|---|
| Size | 8.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1f74b5c07b895ce280e5988a3b82f475424b59efc70914881fcddd0cdec7a716
|
|
BLAKE2b-256 checksum How to use checksums |
eb961780dccb8060f902bbf906bda8d7c4763b86f8a8fbfa1a6d7ae350932f96
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Release files / prospector_profile_utils-1.27.0-py2.py3-none-any.whl
| Download URL | prospector_profile_utils-1.27.0-py2.py3-none-any.whl |
|---|---|
| Size | 11.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
15902c24d5005c895d79b232678c878b1d2bdaaedfec7d29774d2b3ba5e0d4d7
|
|
BLAKE2b-256 checksum How to use checksums |
a7bf97d82e0895075b075787bd1099f8e6eab3af133a8ce2a8e6126f5c1091bf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|