Merge pull request #19765 from github/redsun82/black

CI: fix python version
This commit is contained in:
Paolo Tranquilli
2025-06-16 08:27:04 +02:00
committed by GitHub
3 changed files with 7 additions and 4 deletions

View File

@@ -22,6 +22,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- uses: pre-commit/action@646c83fcd040023954eafda54b4db0192ce70507
name: Check that python code is properly formatted
with:

View File

@@ -1,5 +1,7 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
default_language_version:
python: python3.12
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0

View File

@@ -116,9 +116,7 @@ def clone_project(project: Project) -> str:
return target_dir
def run_in_parallel[
T, U
](
def run_in_parallel[T, U](
func: Callable[[T], U],
items: List[T],
*,
@@ -516,7 +514,7 @@ if __name__ == "__main__":
"--dca",
type=str,
help="Name of a DCA run that built all the projects. Can be repeated, with sources taken from all provided runs, "
"the last provided ones having priority",
"the last provided ones having priority",
action="append",
)
parser.add_argument(