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):