From a9d577c584d1678455b73e9e44576a86046f8e66 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 8 Jan 2024 15:27:55 +0000 Subject: [PATCH] MAINT: autoupdate pre-commit hooks (#258) * MAINT: apply new black formatting * MAINT: update GitHub Actions workflows (#257) --------- Signed-off-by: dependabot[bot] Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Remco de Boer <29308176+redeboer@users.noreply.github.com> --- .github/workflows/sync-labels.yml | 2 +- .pre-commit-config.yaml | 10 +++++----- src/repoma/utilities/vscode.py | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/sync-labels.yml b/.github/workflows/sync-labels.yml index ce8929c6..cda71285 100644 --- a/.github/workflows/sync-labels.yml +++ b/.github/workflows/sync-labels.yml @@ -13,7 +13,7 @@ jobs: LABELS_TOKEN: "${{ secrets.LABELS_TOKEN }}" steps: - uses: actions/checkout@v4 - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: "3.7" - name: Install dependencies diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3e2509d6..57387f32 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -57,7 +57,7 @@ repos: files: ^\.pre\-commit\-(config|hooks)\.yaml$ - repo: https://github.com/psf/black-pre-commit-mirror - rev: 23.11.0 + rev: 23.12.1 hooks: - id: black @@ -67,7 +67,7 @@ repos: - id: blacken-docs - repo: https://github.com/streetsidesoftware/cspell-cli - rev: v8.1.1 + rev: v8.3.0 hooks: - id: cspell @@ -93,17 +93,17 @@ repos: - python - repo: https://github.com/pre-commit/mirrors-prettier - rev: v4.0.0-alpha.3-1 + rev: v4.0.0-alpha.8 hooks: - id: prettier - repo: https://github.com/ComPWA/mirrors-pyright - rev: v1.1.339 + rev: v1.1.344 hooks: - id: pyright - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.1.7 + rev: v0.1.11 hooks: - id: ruff args: [--fix] diff --git a/src/repoma/utilities/vscode.py b/src/repoma/utilities/vscode.py index aec6979b..2490035e 100644 --- a/src/repoma/utilities/vscode.py +++ b/src/repoma/utilities/vscode.py @@ -185,9 +185,9 @@ def sort_case_insensitive(dct): # type: ignore[no-untyped-def] OrderedDict([('coverage-gutters', ['coverage.xml', 'test']), ('cSpell.enabled', True)]) """ if isinstance(dct, abc.Mapping): - return collections.OrderedDict({ - k: sort_case_insensitive(dct[k]) for k in sorted(dct, key=str.lower) - }) + return collections.OrderedDict( + {k: sort_case_insensitive(dct[k]) for k in sorted(dct, key=str.lower)} + ) if isinstance(dct, str): return dct if isinstance(dct, abc.Iterable):