From 14008b4f35cf934b3e8c82d65578e2fe09925191 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 6 Dec 2022 06:38:02 +0100 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#1069) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/asottile/pyupgrade: v3.2.0 → v3.3.0](https://github.com/asottile/pyupgrade/compare/v3.2.0...v3.3.0) - [github.com/PyCQA/flake8: 5.0.4 → 6.0.0](https://github.com/PyCQA/flake8/compare/5.0.4...6.0.0) - [github.com/pre-commit/pre-commit-hooks: v4.3.0 → v4.4.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.3.0...v4.4.0) * Pacify flake8 Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Hynek Schlawack --- .pre-commit-config.yaml | 6 +++--- tests/test_make.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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")) )