lint: Fix E231 flake8 linting errors

This commit is contained in:
Drikus Roor
2023-04-12 22:55:42 +02:00
committed by Drikus Roor
parent 8ff36bb8ba
commit 4afd0a3714
3 changed files with 5 additions and 5 deletions

View File

@@ -73,7 +73,7 @@ class Config(metaclass=Singleton):
# User agent headers to use when browsing web # User agent headers to use when browsing web
# Some websites might just completely deny request with an error code if no user agent was found. # Some websites might just completely deny request with an error code if no user agent was found.
self.user_agent_header = {"User-Agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36"} self.user_agent_header = {"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36"}
self.redis_host = os.getenv("REDIS_HOST", "localhost") self.redis_host = os.getenv("REDIS_HOST", "localhost")
self.redis_port = os.getenv("REDIS_PORT", "6379") self.redis_port = os.getenv("REDIS_PORT", "6379")
self.redis_password = os.getenv("REDIS_PASSWORD", "") self.redis_password = os.getenv("REDIS_PASSWORD", "")

View File

@@ -50,7 +50,7 @@ class TestParseJson(unittest.TestCase):
good_obj = { good_obj = {
"command": { "command": {
"name": "browse_website", "name": "browse_website",
"args":{ "args": {
"url": "https://github.com/Torantulino/Auto-GPT" "url": "https://github.com/Torantulino/Auto-GPT"
} }
}, },
@@ -89,7 +89,7 @@ class TestParseJson(unittest.TestCase):
good_obj = { good_obj = {
"command": { "command": {
"name": "browse_website", "name": "browse_website",
"args":{ "args": {
"url": "https://github.com/Torantulino/Auto-GPT" "url": "https://github.com/Torantulino/Auto-GPT"
} }
}, },

View File

@@ -52,7 +52,7 @@ class TestParseJson(unittest.TestCase):
good_obj = { good_obj = {
"command": { "command": {
"name": "browse_website", "name": "browse_website",
"args":{ "args": {
"url": "https://github.com/Torantulino/Auto-GPT" "url": "https://github.com/Torantulino/Auto-GPT"
} }
}, },
@@ -91,7 +91,7 @@ class TestParseJson(unittest.TestCase):
good_obj = { good_obj = {
"command": { "command": {
"name": "browse_website", "name": "browse_website",
"args":{ "args": {
"url": "https://github.com/Torantulino/Auto-GPT" "url": "https://github.com/Torantulino/Auto-GPT"
} }
}, },