From b366b99a42611e2f0d637c781c2ef66088ea3d5d Mon Sep 17 00:00:00 2001 From: Aaron Bach Date: Fri, 19 Jan 2024 09:25:07 -0700 Subject: [PATCH] Linting --- ecowitt2mqtt/__main__.py | 1 - ecowitt2mqtt/core.py | 1 - tests/test_main.py | 24 ++---------------------- 3 files changed, 2 insertions(+), 24 deletions(-) diff --git a/ecowitt2mqtt/__main__.py b/ecowitt2mqtt/__main__.py index d808a672..32c6219b 100644 --- a/ecowitt2mqtt/__main__.py +++ b/ecowitt2mqtt/__main__.py @@ -75,7 +75,6 @@ ENV_PRECISION, ENV_RAW_DATA, ENV_VERBOSE, - LOGGER, UnitSystem, __version__, ) diff --git a/ecowitt2mqtt/core.py b/ecowitt2mqtt/core.py index ce4d0dde..2c586183 100644 --- a/ecowitt2mqtt/core.py +++ b/ecowitt2mqtt/core.py @@ -2,7 +2,6 @@ from __future__ import annotations import logging -import os import sys from typing import Any diff --git a/tests/test_main.py b/tests/test_main.py index dc5b1d1c..0dfbfe25 100644 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -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: