Skip to content

Commit

Permalink
lint: Fix E231 flake8 linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
drikusroor authored and Drikus Roor committed Apr 13, 2023
1 parent 8ff36bb commit 4afd0a3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion scripts/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def __init__(self):

# 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.
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_port = os.getenv("REDIS_PORT", "6379")
self.redis_password = os.getenv("REDIS_PASSWORD", "")
Expand Down
4 changes: 2 additions & 2 deletions tests/test_json_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def test_invalid_json_leading_sentence_with_gpt(self):
good_obj = {
"command": {
"name": "browse_website",
"args":{
"args": {
"url": "https://github.com/Torantulino/Auto-GPT"
}
},
Expand Down Expand Up @@ -89,7 +89,7 @@ def test_invalid_json_leading_sentence_with_gpt(self):
good_obj = {
"command": {
"name": "browse_website",
"args":{
"args": {
"url": "https://github.com/Torantulino/Auto-GPT"
}
},
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/json_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def test_invalid_json_leading_sentence_with_gpt(self):
good_obj = {
"command": {
"name": "browse_website",
"args":{
"args": {
"url": "https://github.com/Torantulino/Auto-GPT"
}
},
Expand Down Expand Up @@ -91,7 +91,7 @@ def test_invalid_json_leading_sentence_with_gpt(self):
good_obj = {
"command": {
"name": "browse_website",
"args":{
"args": {
"url": "https://github.com/Torantulino/Auto-GPT"
}
},
Expand Down

0 comments on commit 4afd0a3

Please sign in to comment.