From 7cad46cf8aeb3a0b3c6eb5f4fc6a20d32b589cda Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Sun, 6 Aug 2023 21:55:19 +0000 Subject: [PATCH] style: Format code with black and isort --- src/__main__.py | 11 ++++++----- src/utils/delete.py | 1 + src/utils/upload.py | 6 ++++-- src/utils/utils.py | 1 + 4 files changed, 12 insertions(+), 7 deletions(-) diff --git a/src/__main__.py b/src/__main__.py index a236be8..aaa789f 100644 --- a/src/__main__.py +++ b/src/__main__.py @@ -1,13 +1,14 @@ # To run from the root project directory, run the following command: # python -m src.__main__ -from loguru import logger -from .utils import upload, delete, utils - import argparse import os -import dotenv -from sys import exit, stderr from pathlib import Path +from sys import exit, stderr + +import dotenv +from loguru import logger + +from .utils import delete, upload, utils TOKEN = None ACCOUNT_ID = None diff --git a/src/utils/delete.py b/src/utils/delete.py index 1662bc5..159c8be 100644 --- a/src/utils/delete.py +++ b/src/utils/delete.py @@ -1,6 +1,7 @@ # This is a scriprt to undo the changes made by adblock-zerotrust.py import requests + from . import utils diff --git a/src/utils/upload.py b/src/utils/upload.py index d97192b..2c73458 100644 --- a/src/utils/upload.py +++ b/src/utils/upload.py @@ -1,7 +1,9 @@ -import requests -from . import utils import pathlib +import requests + +from . import utils + def get_blocklists(hosts_path: str = None): blocklists = [] diff --git a/src/utils/utils.py b/src/utils/utils.py index 745c24a..c38071f 100644 --- a/src/utils/utils.py +++ b/src/utils/utils.py @@ -1,5 +1,6 @@ import pathlib import re + import requests