Skip to content
This repository has been archived by the owner on Aug 14, 2024. It is now read-only.

Commit

Permalink
Merge pull request #101 from soluna-studios/dependabot/pip/staging/py…
Browse files Browse the repository at this point in the history
…lint-approx-eq-3.2.3

chore(deps): update pylint requirement from ~=2.14.5 to ~=3.2.3
  • Loading branch information
jaredhendrickson13 authored Jun 11, 2024
2 parents 01bc2f6 + 3243022 commit 2c1f748
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 6 deletions.
3 changes: 2 additions & 1 deletion examples/scripts/listener_with_custom_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ def submit(self, parser):
resp = requests.post(
url=self.config["url"],
headers={'Content-Type': 'application/json'},
json={"msg": f"{subject}\n{content}\n{date}\n{some_specific_header}"}
json={"msg": f"{subject}\n{content}\n{date}\n{some_specific_header}"},
timeout=30
)
self.log.debug(f"connector 'my_custom_connector' responded with {resp.status_code} status {resp.text}")
except Exception as req_err:
Expand Down
3 changes: 2 additions & 1 deletion mail2beyond/connectors/discord.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ def submit(self, parser):
resp = requests.post(
url=self.config["webhook_url"],
headers={'Content-Type': 'application/json'},
json={"content": f"*{parser.subject}*\n\n{parser.content}"}
json={"content": f"*{parser.subject}*\n\n{parser.content}"},
timeout=30
)
self.log.debug(f"connector '{self}' responded with {resp.status_code} status {resp.text}")
except Exception as discord_req_err:
Expand Down
3 changes: 2 additions & 1 deletion mail2beyond/connectors/google_chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ def submit(self, parser):
resp = requests.post(
url=self.config["webhook_url"],
headers={'Content-Type': 'application/json; charset=UTF-8'},
json={"text": f"*{parser.subject}*\n\n{parser.content}"}
json={"text": f"*{parser.subject}*\n\n{parser.content}"},
timeout=30
)
self.log.debug(f"connector '{self}' responded with {resp.status_code} status {resp.text}")
except Exception as google_chat_req_err:
Expand Down
3 changes: 2 additions & 1 deletion mail2beyond/connectors/microsoft_teams.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ def submit(self, parser):
resp = requests.post(
url=self.config["webhook_url"],
headers={'Content-Type': 'application/json; charset=utf-8'},
json={"text": f"*{parser.subject}*\n\n{parser.content}"}
json={"text": f"*{parser.subject}*\n\n{parser.content}"},
timeout=30
)
self.log.debug(f"connector '{self}' responded with {resp.status_code} status {resp.text}")
except Exception as microsoft_teams_req_err:
Expand Down
3 changes: 2 additions & 1 deletion mail2beyond/connectors/slack.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ def submit(self, parser):
resp = requests.post(
url=self.config["webhook_url"],
headers={'Content-Type': 'application/json'},
json={"text": f"*{parser.subject}*\n\n{parser.content}"}
json={"text": f"*{parser.subject}*\n\n{parser.content}"},
timeout=30
)
self.log.debug(f"connector '{self}' responded with {resp.status_code} status {resp.text}")
except Exception as slack_req_err:
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ setuptools~=70.0.0
requests~=2.32.3
pyyaml~=6.0
pyOpenSSL~=24.1.0
pylint~=2.14.5
pylint~=3.2.3
html2text~=2024.2.26
pdoc3~=0.10.0

0 comments on commit 2c1f748

Please sign in to comment.