Skip to content

Commit d98bae6

Browse files
authored
Merge pull request #123 from kurtmckee/follow-flake8-to-github
Follow flake8 to GitHub
2 parents 0f4cf9a + 8ee817a commit d98bae6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ repos:
88
hooks:
99
- id: black
1010
args: [ '--safe' ]
11-
- repo: https://gitlab.com/pycqa/flake8
12-
rev: 4.0.1
11+
- repo: https://github.com/pycqa/flake8
12+
rev: 6.0.0
1313
hooks:
1414
- id: flake8
1515
args: [

stac_fastapi/elasticsearch/tests/resources/test_item.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ async def test_pagination_item_collection(app_client, ctx, txn_client):
521521
idx = 0
522522
for idx in range(100):
523523
page_data = page.json()
524-
next_link = list(filter(lambda l: l["rel"] == "next", page_data["links"]))
524+
next_link = list(filter(lambda link: link["rel"] == "next", page_data["links"]))
525525
if not next_link:
526526
assert not page_data["features"]
527527
break
@@ -556,7 +556,7 @@ async def test_pagination_post(app_client, ctx, txn_client):
556556
for _ in range(100):
557557
idx += 1
558558
page_data = page.json()
559-
next_link = list(filter(lambda l: l["rel"] == "next", page_data["links"]))
559+
next_link = list(filter(lambda link: link["rel"] == "next", page_data["links"]))
560560
if not next_link:
561561
break
562562

@@ -585,7 +585,7 @@ async def test_pagination_token_idempotent(app_client, ctx, txn_client):
585585

586586
page = await app_client.get("/search", params={"ids": ",".join(ids), "limit": 3})
587587
page_data = page.json()
588-
next_link = list(filter(lambda l: l["rel"] == "next", page_data["links"]))
588+
next_link = list(filter(lambda link: link["rel"] == "next", page_data["links"]))
589589

590590
# Confirm token is idempotent
591591
resp1 = await app_client.get(

0 commit comments

Comments
 (0)