Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update .pre-commit-config.yaml #94

Merged
merged 2 commits into from
Jan 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading