Skip to content

Commit

Permalink
chore: Update ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
rumpelsepp committed Aug 23, 2024
1 parent 697a1db commit 9fa5749
Show file tree
Hide file tree
Showing 13 changed files with 39 additions and 35 deletions.
52 changes: 26 additions & 26 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ sphinx-rtd-theme = ">=1,<3"
reuse = "^4.0"
construct-typing = ">=0.5.2,<0.7.0"
pytest-cov = ">=4,<6"
ruff = "^0.5.0"
ruff = "^0.6.0"

[tool.poetry.scripts]
"gallia" = "gallia.cli:main"
Expand Down
1 change: 1 addition & 0 deletions src/cursed_hr/cursed_hr.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

import platformdirs
import zstandard as zstd

from gallia.log import PenlogPriority, PenlogRecord
from gallia.services.uds.core.service import NegativeResponse, UDSRequest, UDSResponse

Expand Down
5 changes: 2 additions & 3 deletions src/gallia/powersupply.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,10 @@
from collections.abc import Awaitable, Callable
from functools import partial

from opennetzteil import netzteile
from opennetzteil.netzteil import BaseNetzteil

from gallia.log import get_logger
from gallia.transports import TargetURI
from opennetzteil import netzteile
from opennetzteil.netzteil import BaseNetzteil

logger = get_logger(__name__)

Expand Down
1 change: 1 addition & 0 deletions src/hr/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from typing import cast

import msgspec

from gallia.log import ColorMode, PenlogPriority, PenlogReader, resolve_color_mode


Expand Down
1 change: 0 additions & 1 deletion src/opennetzteil/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from gallia.config import load_config_file
from gallia.powersupply import PowerSupplyURI
from gallia.utils import strtobool

from opennetzteil import netzteile


Expand Down
2 changes: 1 addition & 1 deletion src/opennetzteil/devices/http/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
from urllib.parse import urljoin

import httpx
from gallia.transports import TargetURI

from gallia.transports import TargetURI
from opennetzteil.exceptions import OperationNotSupportedError
from opennetzteil.netzteil import BaseNetzteil

Expand Down
1 change: 0 additions & 1 deletion src/opennetzteil/devices/rs/hmc804.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
from typing import Any

from gallia.utils import strtobool

from opennetzteil.exceptions import OperationNotSupportedError
from opennetzteil.netzteil import BaseNetzteil

Expand Down
3 changes: 2 additions & 1 deletion tests/pytest/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@

import platformdirs
import pytest
from gallia.config import get_config_dirs, load_config_file
from pygit2 import init_repository

from gallia.config import get_config_dirs, load_config_file


def test_config_discovery_git(tmp_path: Path) -> None:
testrepo = tmp_path.joinpath("testrepo")
Expand Down
1 change: 1 addition & 0 deletions tests/pytest/test_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# SPDX-License-Identifier: Apache-2.0

import pytest

from gallia.log import setup_logging
from gallia.services.uds.core.utils import (
address_and_size_length,
Expand Down
1 change: 1 addition & 0 deletions tests/pytest/test_hsfz.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from collections.abc import AsyncIterator

import pytest

from gallia.services.uds.core.client import UDSClient
from gallia.services.uds.core.service import PositiveResponse
from gallia.transports.base import BaseTransport, TargetURI
Expand Down
3 changes: 2 additions & 1 deletion tests/pytest/test_target_uris.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@
assert sys.platform.startswith("linux"), "unsupported platform"

import pytest
from pydantic import ValidationError

from gallia.transports import TargetURI
from gallia.transports.doip import DoIPConfig
from gallia.transports.isotp import ISOTPConfig
from gallia.transports.schemes import TransportScheme
from pydantic import ValidationError

uris = [
"doip://127.0.0.1:13400?src_addr=1&target_addr=1",
Expand Down
1 change: 1 addition & 0 deletions tests/pytest/test_transports.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from collections.abc import AsyncIterator, Callable

import pytest

from gallia.log import setup_logging
from gallia.transports import BaseTransport, TargetURI, TCPLinesTransport, TCPTransport

Expand Down

0 comments on commit 9fa5749

Please sign in to comment.