Skip to content

Commit

Permalink
Renovate CI tools a bit (#972)
Browse files Browse the repository at this point in the history
* Update GitHub Actions versions

* Update pre-commit tools
  • Loading branch information
akx authored Feb 20, 2023
1 parent c76f1d4 commit 373a52f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
BABEL_CLDR_QUIET: "1"
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v2
- uses: actions/cache@v3
with:
path: cldr
key: cldr-${{ hashFiles('scripts/*cldr*') }}
Expand Down
3 changes: 1 addition & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
repos:
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.224
rev: v0.0.247
hooks:
- id: ruff
args:
- --fix
- --force-exclude
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
Expand Down
8 changes: 4 additions & 4 deletions babel/messages/catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ def get_close_matches(word, possibilities, n=3, cutoff=0.6):
It just passes ``autojunk=False`` to the ``SequenceMatcher``, to work
around https://github.com/python/cpython/issues/90825.
"""
if not n > 0:
raise ValueError("n must be > 0: %r" % (n,))
if not 0.0 <= cutoff <= 1.0:
raise ValueError("cutoff must be in [0.0, 1.0]: %r" % (cutoff,))
if not n > 0: # pragma: no cover
raise ValueError(f"n must be > 0: {n!r}")
if not 0.0 <= cutoff <= 1.0: # pragma: no cover
raise ValueError(f"cutoff must be in [0.0, 1.0]: {cutoff!r}")
result = []
s = SequenceMatcher(autojunk=False) # only line changed from difflib.py
s.set_seq2(word)
Expand Down

0 comments on commit 373a52f

Please sign in to comment.