You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

prospector-profile-utils

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prospector-profile-utils

Some utility Prospector profiles.

1.25.0
pipPyPI
Maintainers
1

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 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.

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

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts