Skip to content

Commit

Permalink
Update .pre-commit-config.yaml (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Jan 13, 2025
2 parents 4e7560c + e536cea commit c4434af
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ repos:
- id: check-toml
- id: detect-private-key
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.6
rev: v0.9.1
hooks:
- id: ruff
args: [--config, pyproject.toml]
Expand Down
2 changes: 1 addition & 1 deletion script/conversion/convert_mkdocs_to_yaml_measure
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def parse_markdown_to_yaml(input_file: str, destination: Path) -> None:
"suggested_roles": front_matter_data.get("rollen", []),
"lifecycle": front_matter_data.get("levenscyclus", []),
"links": [
f"urn:nl:ak:ver:{item if "-" not in item else item.split('-')[0] + "-" + item.split('-')[1]}"
f"urn:nl:ak:ver:{item if '-' not in item else item.split('-')[0] + '-' + item.split('-')[1]}"
for item in vereiste
]
if vereiste
Expand Down
3 changes: 1 addition & 2 deletions task_registry/api/routes/measures.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ async def get_measures() -> Index:
@router.get(
"/urn/{urn}",
summary="Get the contents of the specific measure by URN",
description="This endpoint returns a JSON with the contents of a specific measure identified by URN"
" and version.",
description="This endpoint returns a JSON with the contents of a specific measure identified by URN and version.",
responses={
200: {"description": "JSON with the specific contents of the measure."},
400: {"description": "The URN does not exist or is not valid."},
Expand Down
2 changes: 1 addition & 1 deletion task_registry/api/routes/urns.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
@router.get(
"/{urn}",
summary="Get the contents of the specific URN.",
description="This endpoint returns a JSON with the contents of a specific URN" " and version.",
description="This endpoint returns a JSON with the contents of a specific URN and version.",
responses={
200: {"description": "JSON with the specific contents of the URN."},
400: {"description": "The URN does not exist or is not valid."},
Expand Down
4 changes: 2 additions & 2 deletions tests/test_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ def test_generate_index() -> None:
name=filename,
path=f"{dir}/{filename}",
urn=MOCK_TASK["urn"],
download_url=f'{base_url}/instruments/urn/{MOCK_TASK["urn"]}',
links=data.Link(self=f'{base_url}/instruments/urn/{MOCK_TASK["urn"]}'),
download_url=f"{base_url}/instruments/urn/{MOCK_TASK['urn']}",
links=data.Link(self=f"{base_url}/instruments/urn/{MOCK_TASK['urn']}"),
)
],
)
Expand Down

0 comments on commit c4434af

Please sign in to comment.