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
No known key found for this signature in database
GPG Key ID: C3336907360768E1
20 changed files with 29 additions and 21 deletions

View File

@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v16.0.6
rev: v17.0.6
hooks:
- id: clang-format
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
rev: 23.3.0
rev: 24.2.0
hooks:
- id: black
files: (\.py$|SConstruct|SCsub)

View File

@ -2,6 +2,7 @@
All such functions are invoked in a subprocess on Windows to prevent build flakiness.
"""
import zlib
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.
"""
import os.path
from typing import Optional

View File

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

View File

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