You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-31 18:41:20 +00:00
Merge pull request #114047 from Repiteo/ci/enforce-shebang
CI: Fix executable perms for various files
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
@@ -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
0
doc/tools/make_rst.py
Normal file → Executable file
0
misc/dist/apple_embedded_xcode/libgodot.visionos.debug.xcframework/Info.plist
vendored
Executable file → Normal file
0
misc/dist/apple_embedded_xcode/libgodot.visionos.debug.xcframework/Info.plist
vendored
Executable file → Normal file
0
misc/dist/apple_embedded_xcode/libgodot.visionos.release.xcframework/Info.plist
vendored
Executable file → Normal file
0
misc/dist/apple_embedded_xcode/libgodot.visionos.release.xcframework/Info.plist
vendored
Executable file → Normal file
2
misc/dist/shell/godot.bash-completion
vendored
2
misc/dist/shell/godot.bash-completion
vendored
@@ -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.
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python3
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python3
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python3
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
|
|
||||||
import glob
|
import glob
|
||||||
import os
|
import os
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python3
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
set -uo pipefail
|
set -uo pipefail
|
||||||
shopt -s globstar
|
shopt -s globstar
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python3
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
|||||||
@@ -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!')
|
||||||
|
|||||||
@@ -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."
|
||||||
|
|||||||
@@ -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
0
misc/scripts/validate_xml.py
Normal file → Executable 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
1
tests/python_build/validate_builders.py
Normal file → Executable 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__":
|
||||||
|
|||||||
Reference in New Issue
Block a user