1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-01 16:38:31 +00:00

Pre-commit: Update to clang-format 17.0.6 and black 24.2.0

This commit is contained in:
Rémi Verschelde
2024-02-28 14:25:35 +01:00
parent df78c0636d
commit 3a08c646ee
20 changed files with 29 additions and 21 deletions

View File

@@ -1,6 +1,6 @@
repos: repos:
- repo: https://github.com/pre-commit/mirrors-clang-format - repo: https://github.com/pre-commit/mirrors-clang-format
rev: v16.0.6 rev: v17.0.6
hooks: hooks:
- id: clang-format - id: clang-format
files: \.(c|h|cpp|hpp|cc|cxx|m|mm|inc|java|glsl)$ files: \.(c|h|cpp|hpp|cc|cxx|m|mm|inc|java|glsl)$
@@ -14,7 +14,7 @@ repos:
) )
- repo: https://github.com/psf/black-pre-commit-mirror - repo: https://github.com/psf/black-pre-commit-mirror
rev: 23.3.0 rev: 24.2.0
hooks: hooks:
- id: black - id: black
files: (\.py$|SConstruct|SCsub) files: (\.py$|SConstruct|SCsub)

View File

@@ -2,6 +2,7 @@
All such functions are invoked in a subprocess on Windows to prevent build flakiness. All such functions are invoked in a subprocess on Windows to prevent build flakiness.
""" """
import zlib import zlib
from platform_methods import subprocess_main from platform_methods import subprocess_main

View File

@@ -3,6 +3,7 @@
All such functions are invoked in a subprocess on Windows to prevent build flakiness. All such functions are invoked in a subprocess on Windows to prevent build flakiness.
""" """
import os.path import os.path
from typing import Optional from typing import Optional

View File

@@ -3,6 +3,7 @@
All such functions are invoked in a subprocess on Windows to prevent build flakiness. All such functions are invoked in a subprocess on Windows to prevent build flakiness.
""" """
import os.path import os.path
from typing import Optional, Iterable from typing import Optional, Iterable

View File

@@ -3,6 +3,7 @@
All such functions are invoked in a subprocess on Windows to prevent build flakiness. All such functions are invoked in a subprocess on Windows to prevent build flakiness.
""" """
from platform_methods import subprocess_main from platform_methods import subprocess_main

View File

@@ -3,6 +3,7 @@
All such functions are invoked in a subprocess on Windows to prevent build flakiness. All such functions are invoked in a subprocess on Windows to prevent build flakiness.
""" """
import os import os
from platform_methods import subprocess_main from platform_methods import subprocess_main

View File

@@ -3,6 +3,7 @@
All such functions are invoked in a subprocess on Windows to prevent build flakiness. All such functions are invoked in a subprocess on Windows to prevent build flakiness.
""" """
import os import os
from platform_methods import subprocess_main from platform_methods import subprocess_main

View File

@@ -3,6 +3,7 @@
All such functions are invoked in a subprocess on Windows to prevent build flakiness. All such functions are invoked in a subprocess on Windows to prevent build flakiness.
""" """
import os import os
from detect import get_mingw_bin_prefix from detect import get_mingw_bin_prefix
from detect import try_cmd from detect import try_cmd

View File

@@ -1,5 +1,6 @@
"""Functions used to generate scu build source files during build time """Functions used to generate scu build source files during build time
""" """
import glob, os import glob, os
import math import math
from pathlib import Path from pathlib import Path