Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
bachya committed Jan 19, 2024
1 parent 67014b7 commit b366b99
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 24 deletions.
1 change: 0 additions & 1 deletion ecowitt2mqtt/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@
ENV_PRECISION,
ENV_RAW_DATA,
ENV_VERBOSE,
LOGGER,
UnitSystem,
__version__,
)
Expand Down
1 change: 0 additions & 1 deletion ecowitt2mqtt/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from __future__ import annotations

import logging
import os
import sys
from typing import Any

Expand Down
24 changes: 2 additions & 22 deletions tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,10 @@
from __future__ import annotations

import os
from unittest.mock import Mock, patch

import pytest
from unittest.mock import patch

from ecowitt2mqtt.__main__ import get_cli_arguments, get_env_vars, main
from ecowitt2mqtt.const import (
CONF_MQTT_BROKER,
CONF_MQTT_TOPIC,
CONF_VERBOSE,
ENV_ENDPOINT,
ENV_HASS_DISCOVERY,
ENV_HASS_DISCOVERY_PREFIX,
ENV_HASS_ENTITY_ID_PREFIX,
ENV_INPUT_UNIT_SYSTEM,
ENV_MQTT_BROKER,
ENV_MQTT_PASSWORD,
ENV_MQTT_PORT,
ENV_MQTT_TOPIC,
ENV_MQTT_USERNAME,
ENV_OUTPUT_UNIT_SYSTEM,
ENV_PORT,
ENV_RAW_DATA,
ENV_VERBOSE,
)
from ecowitt2mqtt.const import CONF_MQTT_BROKER, CONF_MQTT_TOPIC, CONF_VERBOSE, ENV_VERBOSE


def test_get_cli_arguments() -> None:
Expand Down

0 comments on commit b366b99

Please sign in to comment.