-
Notifications
You must be signed in to change notification settings - Fork 26
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
Implementing license header checking in CI #184
Implementing license header checking in CI #184
Conversation
Hi, Thank you! I don't think this is mentioned in the readmes, we use pre-commit for code formatting. Please run the following: pre-commit run -a |
Thank you for this contribution! |
f1cc435
to
e045463
Compare
Oh, sorry about that. Okay, I ran |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Checker suggestions
Thanks to @adamdbrw for the correction; I was only looking at the Python code. Co-authored-by: Adam Dąbrowski <adam.dabrowski@robotec.ai>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please run the pre-commit 🙇🏼♂️, otherwise LGTM
Okay, linter came back clean. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks!
Co-authored-by: Adam Dąbrowski <adam.dabrowski@robotec.ai>
Purpose
Proposed Changes
What does this PR add, remove or fix?
I have added one GitHub Action CI (to check that every Python file has a Copyright header at the top). And I had to add one metadata file to the root of the repo, to make this CI action run properly.
Issues
Testing
This is it's own CI, so it is self-testing. After running it the first time, I found three
__init__.py
files that were lacking the header. Kind of an oddity, but looking around at some other open-source projects that have this license header rule (e.g. armi, this appears to be the standard, so I went with it.