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

Add .pre-commit-hooks.yaml to allow be run as a pre-commit hook #160

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

XuehaiPan
Copy link
Contributor

As per the title, users can use addlicense as a pre-commit hook:

# .pre-commit-config.yaml

repos:
  - repo: https://github.com/XuehaiPan/addlicense
    rev: '0a8669'
    hooks:
      - id: addlicense
        args: [-check, -l, apache, -c, "Some Team. All Rights Reserved."]

@C-Loftus
Copy link

C-Loftus commented Feb 3, 2025

Think this can probably be merged right? Looks like everything is all set unless I am missing something

Copy link
Contributor

@mco-gh mco-gh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@mco-gh
Copy link
Contributor

mco-gh commented Feb 3, 2025

Looks like you need an approving reviewer.
@willnorris ?

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

Successfully merging this pull request may close these issues.

3 participants