Skip to content

Commit 90ad52c

Browse files
authored
Merge branch 'master' into add-nginx-container
2 parents 063af69 + 759ef17 commit 90ad52c

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
repos:
22
- repo: https://github.com/PyCQA/isort
3-
rev: 5.8.0
3+
rev: 5.12.0
44
hooks:
55
- id: isort
66
language_version: python3.8
77
-
88
repo: https://github.com/psf/black
9-
rev: 22.3.0
9+
rev: 22.12.0
1010
hooks:
1111
- id: black
1212
args: ['--safe']
1313
language_version: python3.8
1414
-
1515
repo: https://github.com/pycqa/flake8
16-
rev: 3.9.0
16+
rev: 6.0.0
1717
hooks:
1818
- id: flake8
1919
language_version: python3.8
@@ -46,7 +46,7 @@ repos:
4646
# args: [--no-strict-optional, --ignore-missing-imports]
4747
-
4848
repo: https://github.com/PyCQA/pydocstyle
49-
rev: 6.0.0
49+
rev: 6.3.0
5050
hooks:
5151
- id: pydocstyle
5252
language_version: python3.8

stac_fastapi/pgstac/tests/resources/test_item.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -978,7 +978,7 @@ async def test_pagination_post(app_client, load_test_data, load_test_collection)
978978
idx += 1
979979
page_data = page.json()
980980
item_ids.append(page_data["features"][0]["id"])
981-
next_link = list(filter(lambda l: l["rel"] == "next", page_data["links"]))
981+
next_link = list(filter(lambda link: link["rel"] == "next", page_data["links"]))
982982
if not next_link:
983983
break
984984
# Merge request bodies
@@ -1021,7 +1021,7 @@ async def test_pagination_token_idempotent(
10211021
},
10221022
)
10231023
page_data = page.json()
1024-
next_link = list(filter(lambda l: l["rel"] == "next", page_data["links"]))
1024+
next_link = list(filter(lambda link: link["rel"] == "next", page_data["links"]))
10251025

10261026
# Confirm token is idempotent
10271027
resp1 = await app_client.get(

stac_fastapi/sqlalchemy/tests/resources/test_item.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ def test_pagination_item_collection(app_client, load_test_data):
716716
idx += 1
717717
page_data = page.json()
718718
item_ids.append(page_data["features"][0]["id"])
719-
next_link = list(filter(lambda l: l["rel"] == "next", page_data["links"]))
719+
next_link = list(filter(lambda link: link["rel"] == "next", page_data["links"]))
720720
if not next_link:
721721
break
722722
query_params = parse_qs(urlparse(next_link[0]["href"]).query)
@@ -756,7 +756,7 @@ def test_pagination_post(app_client, load_test_data):
756756
idx += 1
757757
page_data = page.json()
758758
item_ids.append(page_data["features"][0]["id"])
759-
next_link = list(filter(lambda l: l["rel"] == "next", page_data["links"]))
759+
next_link = list(filter(lambda link: link["rel"] == "next", page_data["links"]))
760760
if not next_link:
761761
break
762762
# Merge request bodies
@@ -787,7 +787,7 @@ def test_pagination_token_idempotent(app_client, load_test_data):
787787

788788
page = app_client.get("/search", params={"ids": ",".join(ids), "limit": 3})
789789
page_data = page.json()
790-
next_link = list(filter(lambda l: l["rel"] == "next", page_data["links"]))
790+
next_link = list(filter(lambda link: link["rel"] == "next", page_data["links"]))
791791

792792
# Confirm token is idempotent
793793
resp1 = app_client.get(

0 commit comments

Comments
 (0)