From da4f678ca61ef17367f22e7ab5a3dea7f47d3388 Mon Sep 17 00:00:00 2001 From: Denis Nutiu Date: Wed, 31 May 2023 18:32:42 +0300 Subject: [PATCH] re-format code --- Makefile | 2 +- app/config.py | 2 +- app/io/writer.py | 3 ++- app/tests/utils_test.py | 7 ++----- main.py | 1 - 5 files changed, 6 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 8158c13..c7fa2e8 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ # Formats the code format: - black . && isort -r . + autoflake --exclude venv -ri . && black . && isort -r . # Run tests test: pytest . \ No newline at end of file diff --git a/app/config.py b/app/config.py index 14f1c16..1ca1586 100644 --- a/app/config.py +++ b/app/config.py @@ -1,7 +1,7 @@ import os import yaml -from pydantic import BaseSettings, BaseModel +from pydantic import BaseModel, BaseSettings def yaml_config_settings_source(settings: BaseSettings): diff --git a/app/io/writer.py b/app/io/writer.py index eb7a9e8..9f935a3 100644 --- a/app/io/writer.py +++ b/app/io/writer.py @@ -1,6 +1,7 @@ -from abc import abstractmethod, ABCMeta +from abc import ABCMeta, abstractmethod from pathlib import Path from typing import Callable + from app import utils diff --git a/app/tests/utils_test.py b/app/tests/utils_test.py index a43894a..420360c 100644 --- a/app/tests/utils_test.py +++ b/app/tests/utils_test.py @@ -1,10 +1,7 @@ import pytest -from app.utils import ( - key_error_silence, - guard_against_none_or_empty_str, - guard_against_none, -) +from app.utils import (guard_against_none, guard_against_none_or_empty_str, + key_error_silence) def test_key_error_silence(): diff --git a/main.py b/main.py index a05ee38..d8c9127 100644 --- a/main.py +++ b/main.py @@ -1,5 +1,4 @@ import logging -import sys from app.config import Configurator from app.converter import Converter