From 5b4b4fcb546f7233fddc4e8d10cbe7c911a8c2d0 Mon Sep 17 00:00:00 2001 From: Casper Welzel Andersen <43357585+CasperWA@users.noreply.github.com> Date: Fri, 23 Aug 2024 15:38:45 +0200 Subject: [PATCH] Update `pre-commit` hooks (#219) --- .pre-commit-config.yaml | 2 +- tests/conftest.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0c42e4b..5560985 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -31,7 +31,7 @@ repos: - id: docs-landing-page - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.5.7 + rev: v0.6.1 hooks: - id: ruff args: diff --git a/tests/conftest.py b/tests/conftest.py index 16f9739..f782de9 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -17,7 +17,7 @@ def top_dir() -> Path: return Path(__file__).resolve().parent.parent -@pytest.fixture() +@pytest.fixture def simple_turtle_file(top_dir: Path) -> Path: """Load and return `Path` object to a simple Turtle file.""" import os @@ -39,7 +39,7 @@ def simple_turtle_file(top_dir: Path) -> Path: ) -@pytest.fixture() +@pytest.fixture def single_turtle_permutations(top_dir: Path) -> list[Path]: """Yield list of a single turtle file and permutations of it. @@ -66,7 +66,7 @@ def single_turtle_permutations(top_dir: Path) -> list[Path]: ) -@pytest.fixture() +@pytest.fixture def tmp_dir() -> Path: """Open and yield a temporary directory.""" import os @@ -83,7 +83,7 @@ def tmp_dir() -> Path: ) -@pytest.fixture() +@pytest.fixture def different_sources_ontologies(top_dir: Path) -> list[Path]: """Yield list of Turtle files generated using different tools, i.e., coming from different sources."""