From 1eefc84043edd50cf65ad1027b1cb86be92aac00 Mon Sep 17 00:00:00 2001 From: Jonathan Ehwald Date: Fri, 9 Jan 2026 20:18:42 +0100 Subject: [PATCH] Let ruff sort imports --- gamedig.pyi | 2 +- pyproject.toml | 3 +++ tests/test_gamedig.py | 3 ++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gamedig.pyi b/gamedig.pyi index 9f4090b..7e36b83 100644 --- a/gamedig.pyi +++ b/gamedig.pyi @@ -1,4 +1,4 @@ -from typing import Any, Dict, Optional, TypedDict, NotRequired, TypeAlias, Literal +from typing import Any, Dict, Literal, NotRequired, Optional, TypeAlias, TypedDict class TimeoutSettings(TypedDict): retries: int diff --git a/pyproject.toml b/pyproject.toml index 5f6d7f6..f16e3e9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -40,3 +40,6 @@ dev = ["maturin>=1.9.6", "pytest>=8.3.3", "ruff>=0.6.9"] [tool.maturin] features = ["pyo3/extension-module"] + +[tool.ruff.lint] +extend-select = ["I"] diff --git a/tests/test_gamedig.py b/tests/test_gamedig.py index 22aaf10..bbe0601 100644 --- a/tests/test_gamedig.py +++ b/tests/test_gamedig.py @@ -1,6 +1,7 @@ -import gamedig import pytest +import gamedig + @pytest.mark.parametrize("invalid_game_id", ["", "not-a-game-id"]) def test_query_raises_for_invalid_game_ids(invalid_game_id):