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

Pre-commit: Fix copyright_headers.py to run on all relevant files #89421

Merged

Conversation

akien-mga
Copy link
Member

It was only running on the first file passed by pre-commit, instead of all. Fixes compatibility with Windows paths to get the basename.

CC @KoBeWi @EIREXE I believe this should fix both issues you raised today.

@akien-mga akien-mga added this to the 4.3 milestone Mar 12, 2024
@akien-mga akien-mga requested a review from a team as a code owner March 12, 2024 14:10
.pre-commit-config.yaml Outdated Show resolved Hide resolved
@akien-mga akien-mga force-pushed the pre-commit-fix-copyright_headers branch from 07634f7 to f833573 Compare March 12, 2024 15:11
@EIREXE
Copy link
Contributor

EIREXE commented Mar 15, 2024

Tried locally and it looks good to me

It was only running on the first file passed by pre-commit, instead of all.
Fixes compatibility with Windows paths to get the basename.
@akien-mga akien-mga force-pushed the pre-commit-fix-copyright_headers branch from f833573 to e520359 Compare March 15, 2024 14:32
@akien-mga akien-mga merged commit 691bd17 into godotengine:master Mar 15, 2024
16 checks passed
@akien-mga akien-mga deleted the pre-commit-fix-copyright_headers branch March 15, 2024 16:02
fire added a commit to V-Sekai/godot that referenced this pull request Mar 16, 2024
…yright_headers"

This reverts commit 691bd17, reversing
changes made to 89f70e9.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants