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

[FEATURE REQUEST] Add section (profile for a set of files) #710

Open
sbrunner opened this issue Dec 27, 2024 · 0 comments
Open

[FEATURE REQUEST] Add section (profile for a set of files) #710

sbrunner opened this issue Dec 27, 2024 · 0 comments
Assignees

Comments

@sbrunner
Copy link
Member

Add a way to be able to add some configuration to a part of the files.

Example of configuration:

sections:
  tests:
    patterns:
      - ^tests?/?
      - /tests?(/|$)
      - .*/tests(/|$)
      - (^|/)test_[_a-zA-Z0-9]+.py$
      - (^|/)[_a-zA-Z0-9]+_tests?.py$
      - (^|/)tests?.py
    bandit:
      run: False

In a section, we will have the patterns and the tool's configuration.

Requires #709

@sbrunner sbrunner self-assigned this Dec 27, 2024
@sbrunner sbrunner changed the title [FEATURE REQUEST] Add section [FEATURE REQUEST] Add section (profile for a set of files) Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant