X Tutup
Skip to content

CI: Fix executable perms for various files#114047

Merged
Repiteo merged 1 commit intogodotengine:masterfrom
Repiteo:ci/enforce-shebang
Dec 15, 2025
Merged

CI: Fix executable perms for various files#114047
Repiteo merged 1 commit intogodotengine:masterfrom
Repiteo:ci/enforce-shebang

Conversation

@Repiteo
Copy link
Contributor

@Repiteo Repiteo commented Dec 15, 2025

Implements two new pre-commit hooks to ensure executable perms are enforced when a shebang is present. This also caught a few files erroneously labeled as executable, and removed/added shebangs where relevant

NOTE: SCons files are a special case, as their shebangs were to support syntax highlighting. This was integrated in #6850, which was nearly a decade ago, so it might not be relevant anymore. However, I consider that decision outside the scope of this PR, so they're excluded from the new hooks for the time being

@Repiteo Repiteo added this to the 4.6 milestone Dec 15, 2025
@Repiteo Repiteo requested a review from a team as a code owner December 15, 2025 17:34
Copy link
Member

@Calinou Calinou left a comment

Choose a reason for hiding this comment

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

Looks good to me.

I agree we can safely remove # -*- coding: utf-8 -*- from files (it's a Python 2 holdover).

@Repiteo Repiteo merged commit 4b6c88d into godotengine:master Dec 15, 2025
20 checks passed
@Repiteo Repiteo deleted the ci/enforce-shebang branch December 15, 2025 19:06
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

X Tutup