From 9e567d3424403497277b50bedc03d198afd33534 Mon Sep 17 00:00:00 2001 From: Pete Gadomski Date: Tue, 31 Jan 2023 10:31:12 -0700 Subject: [PATCH] Bump pre-commit dep versions (#518) * deps: bump pre-commit dep versions Needed to pick up https://github.com/PyCQA/isort/pull/2078 * lint: rename some ambiguous variables --- .pre-commit-config.yaml | 8 ++++---- tests/resources/test_item.py | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d99bb0f..cba32d7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,19 +1,19 @@ repos: - repo: https://github.com/PyCQA/isort - rev: 5.8.0 + rev: 5.12.0 hooks: - id: isort language_version: python3.8 - repo: https://github.com/psf/black - rev: 22.3.0 + rev: 22.12.0 hooks: - id: black args: ['--safe'] language_version: python3.8 - repo: https://github.com/pycqa/flake8 - rev: 3.9.0 + rev: 6.0.0 hooks: - id: flake8 language_version: python3.8 @@ -46,7 +46,7 @@ repos: # args: [--no-strict-optional, --ignore-missing-imports] - repo: https://github.com/PyCQA/pydocstyle - rev: 6.0.0 + rev: 6.3.0 hooks: - id: pydocstyle language_version: python3.8 diff --git a/tests/resources/test_item.py b/tests/resources/test_item.py index f15f475..43e1f22 100644 --- a/tests/resources/test_item.py +++ b/tests/resources/test_item.py @@ -978,7 +978,7 @@ async def test_pagination_post(app_client, load_test_data, load_test_collection) idx += 1 page_data = page.json() item_ids.append(page_data["features"][0]["id"]) - next_link = list(filter(lambda l: l["rel"] == "next", page_data["links"])) + next_link = list(filter(lambda link: link["rel"] == "next", page_data["links"])) if not next_link: break # Merge request bodies @@ -1021,7 +1021,7 @@ async def test_pagination_token_idempotent( }, ) page_data = page.json() - next_link = list(filter(lambda l: l["rel"] == "next", page_data["links"])) + next_link = list(filter(lambda link: link["rel"] == "next", page_data["links"])) # Confirm token is idempotent resp1 = await app_client.get(