Skip to content

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

@sbrunner

Description

@sbrunner

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions