8000 Exclude specific files that would otherwise match a broader pattern · Issue #8 · codingjoe/relint · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Exclude specific files that would otherwise match a broader pattern #8
Closed
@msladecek

Description

@msladecek

I work on a python repository and I'd like to use relint in pre-commit and CI pipeline to make sure nobody ever commits a print call, so I use this pattern specification:

- name: Leftover print
  pattern: "print\\("
  filename:
    - "*.py"

However, there is one file in the root of the repo - run.py which contains a few startup scripts and it uses prints to give some runtime info to the users.

Is there any way I can define the filename pattern in a way to include all .py files except run.py?

Metadata

Metadata

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0