1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 03:07:43 +00:00

Meta: Resolve some pylint violations in Python lint scripts

Resolves:

* all: consider-using-sys-exit
* all: wrong-import-order
* all: TODO: Require that a few keys are set? (fixme)
* some: missing-function-docstring
* some: line-too-long
This commit is contained in:
Brendan Coles 2021-04-02 09:26:37 +00:00 committed by Andreas Kling
parent e875513ff7
commit 666aeecaa2
4 changed files with 140 additions and 54 deletions

View file

@ -1,8 +1,8 @@
#!/usr/bin/env python3
import json
import requests
import sys
import requests
# Must be exactly three lines each!
# No trailing newline! (I.e. keep it as backslash-newline-tripleapostrophe.)
@ -83,6 +83,12 @@ def compute_lines(wrapper):
def send_notification(line):
"""Send a message to IRC channel via HTTP bridge.
Ars:
line (str): message to send
"""
print('> ' + line)
try:
response = requests.post(SERENITY_BOT, data={'msg': line})