From 61465e56149c550e96cb67a278b49abe58c60886 Mon Sep 17 00:00:00 2001 From: Shunichiro Nomura Date: Sun, 7 Jul 2024 06:15:18 +0900 Subject: [PATCH] Update ruff to v0.5.1 --- .pre-commit-config.yaml | 7 ++++++- pyproject.toml | 2 +- tests/context/test_file.py | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 40abc3ce..9d7ee8d0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,7 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.5.0 + rev: v0.5.1 hooks: # Run the linter. - id: ruff @@ -29,3 +29,8 @@ repos: - id: fix-byte-order-marker - id: forbid-submodules - id: no-commit-to-branch + + - repo: https://github.com/python-poetry/poetry + rev: "1.8.3" + hooks: + - id: poetry-check diff --git a/pyproject.toml b/pyproject.toml index 393a8b97..0e7b0030 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -27,7 +27,7 @@ orjson = ">=3.9.10" typer = ">=0.9.0" [tool.poetry.group.dev.dependencies] -ruff = "0.5.0" +ruff = "0.5.1" mypy = "1.10.1" pytest = "8.2.2" coverage = "7.5.4" diff --git a/tests/context/test_file.py b/tests/context/test_file.py index eff66f18..a79e924b 100644 --- a/tests/context/test_file.py +++ b/tests/context/test_file.py @@ -5,7 +5,7 @@ import capsula -@pytest.fixture() +@pytest.fixture def source_file(tmp_path: Path) -> Path: source_file = tmp_path / "source.txt" # Write some data to the file