diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 35d893f9..2cf9a8b4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,8 +8,8 @@ repos: hooks: - id: black args: [ '--safe' ] - - repo: https://gitlab.com/pycqa/flake8 - rev: 4.0.1 + - repo: https://github.com/pycqa/flake8 + rev: 6.0.0 hooks: - id: flake8 args: [ diff --git a/stac_fastapi/elasticsearch/tests/resources/test_item.py b/stac_fastapi/elasticsearch/tests/resources/test_item.py index fbac987b..cc0111f7 100644 --- a/stac_fastapi/elasticsearch/tests/resources/test_item.py +++ b/stac_fastapi/elasticsearch/tests/resources/test_item.py @@ -521,7 +521,7 @@ async def test_pagination_item_collection(app_client, ctx, txn_client): idx = 0 for idx in range(100): 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"])) if not next_link: assert not page_data["features"] break @@ -556,7 +556,7 @@ async def test_pagination_post(app_client, ctx, txn_client): for _ in range(100): idx += 1 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"])) if not next_link: break @@ -585,7 +585,7 @@ async def test_pagination_token_idempotent(app_client, ctx, txn_client): page = await app_client.get("/search", params={"ids": ",".join(ids), "limit": 3}) 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(