re-format code
This commit is contained in:
parent
a524db1722
commit
da4f678ca6
5 changed files with 6 additions and 9 deletions
2
Makefile
2
Makefile
|
@ -1,6 +1,6 @@
|
||||||
# Formats the code
|
# Formats the code
|
||||||
format:
|
format:
|
||||||
black . && isort -r .
|
autoflake --exclude venv -ri . && black . && isort -r .
|
||||||
# Run tests
|
# Run tests
|
||||||
test:
|
test:
|
||||||
pytest .
|
pytest .
|
|
@ -1,7 +1,7 @@
|
||||||
import os
|
import os
|
||||||
|
|
||||||
import yaml
|
import yaml
|
||||||
from pydantic import BaseSettings, BaseModel
|
from pydantic import BaseModel, BaseSettings
|
||||||
|
|
||||||
|
|
||||||
def yaml_config_settings_source(settings: BaseSettings):
|
def yaml_config_settings_source(settings: BaseSettings):
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
from abc import abstractmethod, ABCMeta
|
from abc import ABCMeta, abstractmethod
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Callable
|
from typing import Callable
|
||||||
|
|
||||||
from app import utils
|
from app import utils
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,7 @@
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from app.utils import (
|
from app.utils import (guard_against_none, guard_against_none_or_empty_str,
|
||||||
key_error_silence,
|
key_error_silence)
|
||||||
guard_against_none_or_empty_str,
|
|
||||||
guard_against_none,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
def test_key_error_silence():
|
def test_key_error_silence():
|
||||||
|
|
1
main.py
1
main.py
|
@ -1,5 +1,4 @@
|
||||||
import logging
|
import logging
|
||||||
import sys
|
|
||||||
|
|
||||||
from app.config import Configurator
|
from app.config import Configurator
|
||||||
from app.converter import Converter
|
from app.converter import Converter
|
||||||
|
|
Loading…
Reference in a new issue