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

How do I specify the hook to be applied to all files in the repo that ends with .py? #82

Closed
mikel-brostrom opened this issue Aug 5, 2023 · 2 comments

Comments

@mikel-brostrom
Copy link

I am uncertain of this part here: files: ./*.py.

- repo: https://github.com/Lucas-C/pre-commit-hooks
  rev: v1.5.3
  hooks:
    - id: insert-license
      files: ./*.py  # ???
@mikel-brostrom
Copy link
Author

mikel-brostrom commented Aug 5, 2023

Trying with regex: R"(.*\.py$)"

@mikel-brostrom
Copy link
Author

This worked: .*\.py$ 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant