From cdbd7dd36914dc459fd3c76f8f0e25acc9c90d36 Mon Sep 17 00:00:00 2001 From: "deepsource-io[bot]" <42547082+deepsource-io[bot]@users.noreply.github.com> Date: Sun, 6 Aug 2023 18:46:02 +0000 Subject: [PATCH 1/2] ci: Add .deepsource.toml --- .deepsource.toml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .deepsource.toml diff --git a/.deepsource.toml b/.deepsource.toml new file mode 100644 index 0000000..1ef920f --- /dev/null +++ b/.deepsource.toml @@ -0,0 +1,13 @@ +version = 1 + +[[analyzers]] +name = "python" + + [analyzers.meta] + runtime_version = "3.x.x" + +[[transformers]] +name = "black" + +[[transformers]] +name = "isort" \ No newline at end of file From 4bb9c47e6c813a16e6d75f66f2421ea10b3104c8 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Sun, 6 Aug 2023 18:46:14 +0000 Subject: [PATCH 2/2] style: format code with black and isort Format code with black and isort This commit fixes the style issues introduced in cdbd7dd according to the output from Black and isort. Details: https://app.deepsource.com/gh/slashtechno/cloudflare-gateway-adblocking/transform/f9f81019-cc0f-4300-8f90-5884a2afa39a/ --- zerotrust_adblock/adblock_zerotrust.py | 3 ++- zerotrust_adblock/utils.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/zerotrust_adblock/adblock_zerotrust.py b/zerotrust_adblock/adblock_zerotrust.py index a54dbe0..ed51eef 100644 --- a/zerotrust_adblock/adblock_zerotrust.py +++ b/zerotrust_adblock/adblock_zerotrust.py @@ -1,7 +1,8 @@ import os +import pathlib + import requests import utils -import pathlib # Load environment variables TOKEN = utils.load_env()["CLOUDFLARE_TOKEN"] diff --git a/zerotrust_adblock/utils.py b/zerotrust_adblock/utils.py index 6bb4343..3b1df50 100644 --- a/zerotrust_adblock/utils.py +++ b/zerotrust_adblock/utils.py @@ -1,5 +1,6 @@ -import pathlib import os +import pathlib + import requests from dotenv import load_dotenv