-
-
Notifications
You must be signed in to change notification settings - Fork 21.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into convert-3.x-escn
- Loading branch information
Showing
3,803 changed files
with
394,082 additions
and
200,126 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,7 @@ jobs: | |
|
||
- name: Install Python dependencies and general setup | ||
run: | | ||
pip3 install black==23.3.0 pytest==7.1.2 mypy==0.971 | ||
pip3 install pytest==7.1.2 mypy==0.971 | ||
git config diff.wsErrorHighlight all | ||
- name: Get changed files | ||
|
@@ -32,7 +32,7 @@ jobs: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
if [ "${{ github.event_name }}" == "pull_request" ]; then | ||
files=$(gh pr diff ${{ github.event.pull_request.number }} --name-only) | ||
files=$(git diff-tree --no-commit-id --name-only -r HEAD^1..HEAD 2> /dev/null || true) | ||
elif [ "${{ github.event_name }}" == "push" -a "${{ github.event.forced }}" == "false" -a "${{ github.event.created }}" == "false" ]; then | ||
files=$(git diff-tree --no-commit-id --name-only -r ${{ github.event.before }}..${{ github.event.after }} 2> /dev/null || true) | ||
fi | ||
|
@@ -46,6 +46,9 @@ jobs: | |
run: | | ||
bash ./misc/scripts/gitignore_check.sh | ||
- name: Style checks via pre-commit | ||
uses: pre-commit/[email protected] | ||
|
||
- name: File formatting checks (file_format.sh) | ||
run: | | ||
bash ./misc/scripts/file_format.sh changed.txt | ||
|
@@ -54,14 +57,6 @@ jobs: | |
run: | | ||
bash ./misc/scripts/header_guards.sh changed.txt | ||
- name: Python style checks via black (black_format.sh) | ||
run: | | ||
if grep -qE '\.py$|SConstruct|SCsub' changed.txt || [ -z "$(cat changed.txt)" ]; then | ||
bash ./misc/scripts/black_format.sh | ||
else | ||
echo "Skipping Python formatting as no Python files were changed." | ||
fi | ||
- name: Python scripts static analysis (mypy_check.sh) | ||
run: | | ||
if grep -qE '\.py$|SConstruct|SCsub' changed.txt || [ -z "$(cat changed.txt)" ]; then | ||
|
@@ -76,7 +71,7 @@ jobs: | |
- name: JavaScript style and documentation checks via ESLint and JSDoc | ||
run: | | ||
if grep -q "platform/web" changed.txt || [ -z "$(cat changed.txt)" ]; then | ||
if grep -q "\.js" changed.txt || [ -z "$(cat changed.txt)" ]; then | ||
cd platform/web | ||
npm ci | ||
npm run lint | ||
|
@@ -92,20 +87,6 @@ jobs: | |
- name: Documentation checks | ||
run: | | ||
doc/tools/doc_status.py doc/classes modules/*/doc_classes platform/*/doc_classes | ||
doc/tools/make_rst.py --dry-run --color doc/classes modules platform | ||
- name: Style checks via clang-format (clang_format.sh) | ||
run: | | ||
clang-format --version | ||
bash ./misc/scripts/clang_format.sh changed.txt | ||
- name: Style checks via dotnet format (dotnet_format.sh) | ||
run: | | ||
if grep -q "modules/mono" changed.txt || [ -z "$(cat changed.txt)" ]; then | ||
bash ./misc/scripts/dotnet_format.sh | ||
else | ||
echo "Skipping dotnet format as no C# files were changed." | ||
fi | ||
- name: Spell checks via codespell | ||
if: github.event_name == 'pull_request' && env.CHANGED_FILES != '' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,6 +70,8 @@ J08nY <[email protected]> <[email protected]> | |
J08nY <[email protected]> <[email protected]> | ||
Jake Young <[email protected]> | ||
Jakub Grzesik <[email protected]> | ||
Jakub Marcowski <[email protected]> <[email protected]> | ||
Jakub Marcowski <[email protected]> <[email protected]> | ||
janglee <[email protected]> | ||
Jason Knight <[email protected]> <[email protected]> | ||
Jean-Michel Bernard <[email protected]> | ||
|
@@ -118,6 +120,7 @@ Nathan Warden <[email protected]> <[email protected]> | |
Nicholas Huelin <[email protected]> | ||
Nils ANDRÉ-CHANG <[email protected]> | ||
Nils ANDRÉ-CHANG <[email protected]> <[email protected]> | ||
Nông Văn Tình <[email protected]> | ||
Nuno Donato <[email protected]> <[email protected]> | ||
ocean (they/them) <[email protected]> | ||
Pawel Kowal <[email protected]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/mirrors-clang-format | ||
rev: v17.0.6 | ||
hooks: | ||
- id: clang-format | ||
files: \.(c|h|cpp|hpp|cc|cxx|m|mm|inc|java|glsl)$ | ||
types_or: [text] | ||
exclude: | | ||
(?x)^( | ||
tests/python_build.*| | ||
.*thirdparty.*| | ||
.*platform/android/java/lib/src/com.*| | ||
.*-so_wrap.* | ||
) | ||
- repo: https://github.com/psf/black-pre-commit-mirror | ||
rev: 24.2.0 | ||
hooks: | ||
- id: black | ||
files: (\.py$|SConstruct|SCsub) | ||
types_or: [text] | ||
exclude: .*thirdparty.* | ||
args: | ||
- --line-length=120 | ||
|
||
- repo: local | ||
hooks: | ||
- id: make-rst | ||
name: make-rst | ||
entry: python3 doc/tools/make_rst.py doc/classes modules platform --dry-run --color | ||
pass_filenames: false | ||
language: python | ||
files: ^(doc|modules|platform).*xml$ | ||
|
||
- id: copyright-headers | ||
name: copyright-headers | ||
language: python | ||
files: \.(c|h|cpp|hpp|cc|cxx|m|mm|inc|java)$ | ||
entry: python3 misc/scripts/copyright_headers.py | ||
exclude: | | ||
(?x)^( | ||
.*thirdparty.*| | ||
.*-so_wrap.*| | ||
core/math/bvh_.*\.inc$| | ||
platform/android/java/lib/src/com.*| | ||
platform/android/java/lib/src/org/godotengine/godot/gl/GLSurfaceView.*| | ||
platform/android/java/lib/src/org/godotengine/godot/gl/EGLLogWrapper.*| | ||
platform/android/java/lib/src/org/godotengine/godot/utils/ProcessPhoenix.* | ||
) | ||
- id: dotnet-format | ||
name: dotnet-format | ||
language: python | ||
entry: python3 misc/scripts/dotnet_format.py | ||
types_or: [c#] |
Oops, something went wrong.