Skip to content

Commit

Permalink
MAINT: autoupdate pre-commit hooks (#258)
Browse files Browse the repository at this point in the history
* MAINT: apply new black formatting
* MAINT: update GitHub Actions workflows (#257)

---------

Signed-off-by: dependabot[bot] <support@github.com>
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>
  • Loading branch information
3 people authored Jan 8, 2024
1 parent 1eba8f1 commit a9d577c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/sync-labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand All @@ -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]
Expand Down
6 changes: 3 additions & 3 deletions src/repoma/utilities/vscode.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit a9d577c

Please sign in to comment.