CI: Fix executable perms for various files

This commit is contained in:
Thaddeus Crews 2025-12-15 11:07:07 -06:00
parent 8aa4a5207f
commit aeef4fff6d
No known key found for this signature in database
GPG Key ID: 8C6E5FEB5FC03CCC
18 changed files with 22 additions and 16 deletions

View File

@ -10,6 +10,13 @@ exclude: |
)$ )$
repos: repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
exclude: (SConstruct|SCsub)$ # SCons files use shebangs for syntax highlighting only.
- repo: https://github.com/pre-commit/mirrors-clang-format - repo: https://github.com/pre-commit/mirrors-clang-format
rev: v21.1.7 rev: v21.1.7
hooks: hooks:

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
from __future__ import annotations from __future__ import annotations
import fnmatch import fnmatch

0
doc/tools/make_rst.py Normal file → Executable file
View File

View File

View File

View File

@ -1,5 +1,3 @@
#!/usr/bin/env bash
# Bash completion for the Godot editor # Bash completion for the Godot editor
# To use it, install this file in `/etc/bash_completion.d` then restart your shell. # To use it, install this file in `/etc/bash_completion.d` then restart your shell.
# You can also `source` this file directly in your shell startup file. # You can also `source` this file directly in your shell startup file.

View File

@ -1,5 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys import sys

View File

@ -1,5 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os import os
import sys import sys

View File

@ -1,5 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import glob import glob
import os import os

View File

@ -1,5 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys import sys

View File

@ -1,3 +1,5 @@
#!/usr/bin/env sh
set -uo pipefail set -uo pipefail
shopt -s globstar shopt -s globstar

View File

@ -1,5 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys import sys

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
if __name__ != "__main__": if __name__ != "__main__":
raise SystemExit(f'Utility script "{__file__}" should not be used as a module!') raise SystemExit(f'Utility script "{__file__}" should not be used as a module!')

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
if [ ! -e "version.py" ]; then if [ ! -e "version.py" ]; then
echo "This script should be ran from the root folder of the Godot repository." echo "This script should be ran from the root folder of the Godot repository."

View File

@ -1,4 +1,5 @@
#!/bin/bash #!/usr/bin/env bash
set -o pipefail set -o pipefail
if [ ! -f "version.py" ]; then if [ ! -f "version.py" ]; then

0
misc/scripts/validate_xml.py Normal file → Executable file
View File

View File

@ -1,4 +1,5 @@
#!/usr/bin/python3 #!/usr/bin/env python3
from __future__ import annotations from __future__ import annotations
import os import os

1
tests/python_build/validate_builders.py Normal file → Executable file
View File

@ -1,4 +1,5 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
from __future__ import annotations from __future__ import annotations
if __name__ != "__main__": if __name__ != "__main__":