From 4ee02038733f9f92c8db5f32837e22c780249ce1 Mon Sep 17 00:00:00 2001 From: Robert Svensson Date: Tue, 21 May 2024 20:07:45 +0200 Subject: [PATCH 1/2] bump ruff to 0.4.4 --- .pre-commit-config.yaml | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ca9f76cb..12060c79 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.3.0 + rev: v0.4.4 hooks: - id: ruff args: diff --git a/pyproject.toml b/pyproject.toml index f4cd13aa..17055ff8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -40,7 +40,7 @@ requirements_test = [ "pytest-asyncio==0.23.7", "pytest-cov==5.0.0", "respx==0.21.1", - "ruff==0.4.2", + "ruff==0.4.4", "types-orjson==3.6.2", "types-xmltodict==v0.13.0.3", ] From 9281bf18f687c5ae3a3729418dbc4cb3760c3f45 Mon Sep 17 00:00:00 2001 From: Robert Svensson Date: Tue, 21 May 2024 20:09:27 +0200 Subject: [PATCH 2/2] Fix failing lint --- axis/models/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/axis/models/api.py b/axis/models/api.py index 12729a6d..85490df4 100644 --- a/axis/models/api.py +++ b/axis/models/api.py @@ -58,7 +58,7 @@ class ApiResponse(ApiResponseSupportDecode, Generic[ApiDataT]): @dataclass -class ApiRequest(ABC): +class ApiRequest: """Create API request body.""" method: str = field(init=False)