From dfca1a631251842c6d8a31e9bd2e967b98e075a8 Mon Sep 17 00:00:00 2001 From: insolor <2442833+insolor@users.noreply.github.com> Date: Sun, 1 Sep 2024 09:15:00 +0000 Subject: [PATCH] Fix ruff warnings Add package-mode = false to pyproject.toml --- pyproject.toml | 1 + tests/test_home_app.py | 2 +- tests/test_parse_downloads.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index c82e744..6a53e74 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,6 +5,7 @@ description = "" authors = ["insolor "] license = "MIT" readme = "README.md" +package-mode = false [tool.poetry.dependencies] python = "^3.10" diff --git a/tests/test_home_app.py b/tests/test_home_app.py index 2b08ea1..88262dc 100644 --- a/tests/test_home_app.py +++ b/tests/test_home_app.py @@ -13,7 +13,7 @@ from pathlib import Path -@pytest.fixture() +@pytest.fixture @patch("download_source.download_file") @patch("download_source.get_latest_release") def apptest(get_latest_release: Callable[[], ReleaseInfo], download_file: Callable[[Path | str, str], None]): diff --git a/tests/test_parse_downloads.py b/tests/test_parse_downloads.py index 3e13e55..22d9dc6 100644 --- a/tests/test_parse_downloads.py +++ b/tests/test_parse_downloads.py @@ -7,7 +7,7 @@ tests_dir = Path(__file__).parent -@pytest.fixture() +@pytest.fixture def downloads_page(): return Path.open(tests_dir / "assets" / "downloads.html").read()