# Prospector profile utils
It contains some utility Prospector profiles.
## Usage
```bash
pip install prospector-profile-utils
```
Then, in your `.prospector.yaml` file, you can use the profiles like this:
```yaml
inherits:
- utils:base
- utils:c2cwsgiutils
- utils:no-design-checks
```
It provide also an alternate base witch activate less strict checks:
```yaml
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 the `utils:fix` or `utils:pre-commit` profiles.
- `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.
```yaml
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:
```bash
pip install pre-commit
pre-commit install --allow-missing-config
```
Raw data
{
"_id": null,
"home_page": null,
"name": "prospector-profile-utils",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": null,
"author": "St\u00e9phane Brunner",
"author_email": "stephane.brunner@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/88/8a/91fd5d21078d6a7e114c24a20d87817dfa80133339c4b8afbd3e1e4bd5f9/prospector_profile_utils-1.26.0.tar.gz",
"platform": null,
"description": "# Prospector profile utils\n\nIt contains some utility Prospector profiles.\n\n## Usage\n\n```bash\npip install prospector-profile-utils\n```\n\nThen, in your `.prospector.yaml` file, you can use the profiles like this:\n\n```yaml\ninherits:\n - utils:base\n - utils:c2cwsgiutils\n - utils:no-design-checks\n```\n\nIt provide also an alternate base witch activate less strict checks:\n\n```yaml\ninherits:\n - utils:base-less-strict\n```\n\nAdditional available profiles:\n\n- `utils:fix`: Disables specific rules that are known to have reliability issues.\n- `utils:autofix`: Enables automatic fixing capabilities for supported rules.\n- `utils:tests`: Specifically designed for test files validation, recommended to use in combination with the `utils:fix` or `utils:pre-commit` profiles.\n- `utils:pre-commit`: Specifically designed for pre-commit hooks.\n\n## pre-commit profile\n\nI 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.\n\n```yaml\nrepos:\n - repo: https://github.com/PyCQA/prospector\n rev: v<rev>\n hooks:\n - id: prospector\n args:\n - --die-on-tool-error\n - --output-format=pylint\n - --profile=utils:pre-commit\n - --profile=.prospector.yaml\n additional_dependencies:\n - prospector-profile-duplicated==<rev> # pypi\n - prospector-profile-utils==<rev> # pypi\n - id: prospector\n args:\n - --die-on-tool-error\n - --output-format=pylint\n - --profile=utils:pre-commit\n - --profile=utils:tests\n additional_dependencies:\n - prospector-profile-utils==<rev> # pypi\n```\n\n## Contributing\n\nInstall the pre-commit hooks:\n\n```bash\npip install pre-commit\npre-commit install --allow-missing-config\n```\n\n",
"bugtrack_url": null,
"license": "BSD-2-Clause",
"summary": "Some utility Prospector profiles.",
"version": "1.26.0",
"project_urls": {
"Bug Tracker": "https://github.com/sbrunner/prospector-profile-utils/issues",
"Repository": "https://github.com/sbrunner/prospector-profile-utils"
},
"split_keywords": [],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "c8d8cf1973d214c1bf3b607074bb28db7fbd8105636bdde26e545b20df6711dc",
"md5": "bfd6a460e750947b9550ac930daea161",
"sha256": "dadf26f32bff0f2da5b5afed4362ee4b6daf6cfdb3e83445fcfd9733a6208351"
},
"downloads": -1,
"filename": "prospector_profile_utils-1.26.0-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "bfd6a460e750947b9550ac930daea161",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 8321,
"upload_time": "2025-08-18T06:35:02",
"upload_time_iso_8601": "2025-08-18T06:35:02.706755Z",
"url": "https://files.pythonhosted.org/packages/c8/d8/cf1973d214c1bf3b607074bb28db7fbd8105636bdde26e545b20df6711dc/prospector_profile_utils-1.26.0-py2.py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "888a91fd5d21078d6a7e114c24a20d87817dfa80133339c4b8afbd3e1e4bd5f9",
"md5": "0f97b98007a126fc27913743ffd3eea1",
"sha256": "a2a109667eca423342b8924d8bd740a149326a7b2d5fd547b60be96b48149d4c"
},
"downloads": -1,
"filename": "prospector_profile_utils-1.26.0.tar.gz",
"has_sig": false,
"md5_digest": "0f97b98007a126fc27913743ffd3eea1",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 5326,
"upload_time": "2025-08-18T06:35:03",
"upload_time_iso_8601": "2025-08-18T06:35:03.917898Z",
"url": "https://files.pythonhosted.org/packages/88/8a/91fd5d21078d6a7e114c24a20d87817dfa80133339c4b8afbd3e1e4bd5f9/prospector_profile_utils-1.26.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-08-18 06:35:03",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "sbrunner",
"github_project": "prospector-profile-utils",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "prospector-profile-utils"
}