diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 43dc004e..fc6b89b5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,7 +12,7 @@ repos: - id: black - repo: https://github.com/asottile/pyupgrade - rev: v3.2.0 + rev: v3.3.0 hooks: - id: pyupgrade args: [--py36-plus, --keep-percent-format] @@ -31,7 +31,7 @@ repos: - id: yesqa - repo: https://github.com/PyCQA/flake8 - rev: 5.0.4 + rev: 6.0.0 hooks: - id: flake8 @@ -42,7 +42,7 @@ repos: args: [tests] - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.3.0 + rev: v4.4.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer diff --git a/tests/test_make.py b/tests/test_make.py index 0fae62d7..cbde3ce4 100644 --- a/tests/test_make.py +++ b/tests/test_make.py @@ -1376,7 +1376,7 @@ class TestValidate: # Hypothesis seems to cache values, so the lists of attributes come out # unsorted. sorted_lists_of_attrs = list_of_attrs.map( - lambda l: sorted(l, key=attrgetter("counter")) + lambda ln: sorted(ln, key=attrgetter("counter")) )