mirror of
https://github.com/craigerl/aprsd.git
synced 2024-09-28 16:16:51 -04:00
Cleaned up some pep8 failures
This commit is contained in:
parent
c941379a5c
commit
84ce60bc50
@ -124,10 +124,8 @@ class Aprsdis(aprslib.IS):
|
|||||||
)
|
)
|
||||||
if not readable:
|
if not readable:
|
||||||
if not blocking:
|
if not blocking:
|
||||||
#self.logger.warning("not fucking readable, not blocking, break!")
|
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
#self.logger.warning("not fucking readable, continue")
|
|
||||||
continue
|
continue
|
||||||
|
|
||||||
try:
|
try:
|
||||||
@ -275,9 +273,7 @@ class Aprsdis(aprslib.IS):
|
|||||||
raise
|
raise
|
||||||
|
|
||||||
if not blocking:
|
if not blocking:
|
||||||
#self.logger.error("Not blocking, bail bitch")
|
|
||||||
break
|
break
|
||||||
#self.logger.error("Consumer exiting")
|
|
||||||
|
|
||||||
|
|
||||||
def get_client():
|
def get_client():
|
||||||
|
@ -25,6 +25,7 @@ LOG = logging.getLogger("APRSD")
|
|||||||
auth = HTTPBasicAuth()
|
auth = HTTPBasicAuth()
|
||||||
users = None
|
users = None
|
||||||
|
|
||||||
|
|
||||||
class SentMessages:
|
class SentMessages:
|
||||||
_instance = None
|
_instance = None
|
||||||
lock = None
|
lock = None
|
||||||
@ -47,7 +48,6 @@ class SentMessages:
|
|||||||
self.msgs[msg.id]["message"] = msg.message.rstrip("\n")
|
self.msgs[msg.id]["message"] = msg.message.rstrip("\n")
|
||||||
self.msgs[msg.id]["raw"] = str(msg).rstrip("\n")
|
self.msgs[msg.id]["raw"] = str(msg).rstrip("\n")
|
||||||
|
|
||||||
|
|
||||||
def _create(self, id):
|
def _create(self, id):
|
||||||
return {
|
return {
|
||||||
"id": id,
|
"id": id,
|
||||||
@ -485,7 +485,6 @@ class SendMessageNamespace(Namespace):
|
|||||||
LOG.debug(f"WS json {data}")
|
LOG.debug(f"WS json {data}")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def setup_logging(config, flask_app, loglevel, quiet):
|
def setup_logging(config, flask_app, loglevel, quiet):
|
||||||
flask_log = logging.getLogger("werkzeug")
|
flask_log = logging.getLogger("werkzeug")
|
||||||
|
|
||||||
|
@ -516,8 +516,8 @@ def server(
|
|||||||
(socketio, app) = flask.init_flask(config, loglevel, quiet)
|
(socketio, app) = flask.init_flask(config, loglevel, quiet)
|
||||||
socketio.run(
|
socketio.run(
|
||||||
app,
|
app,
|
||||||
host=config["aprsd"]["web"]["host"],
|
host=config["aprsd"]["web"]["host"],
|
||||||
port=config["aprsd"]["web"]["port"],
|
port=config["aprsd"]["web"]["port"],
|
||||||
)
|
)
|
||||||
|
|
||||||
# If there are items in the msgTracker, then save them
|
# If there are items in the msgTracker, then save them
|
||||||
|
@ -499,7 +499,6 @@ class AckMessage(Message):
|
|||||||
thread = SendAckThread(self)
|
thread = SendAckThread(self)
|
||||||
thread.start()
|
thread.start()
|
||||||
|
|
||||||
|
|
||||||
def send_direct(self, aprsis_client=None):
|
def send_direct(self, aprsis_client=None):
|
||||||
"""Send an ack message without a separate thread."""
|
"""Send an ack message without a separate thread."""
|
||||||
cl = self.get_transport()
|
cl = self.get_transport()
|
||||||
|
@ -7,6 +7,6 @@ tox
|
|||||||
twine
|
twine
|
||||||
pre-commit
|
pre-commit
|
||||||
pip-tools
|
pip-tools
|
||||||
#pytest
|
pytest
|
||||||
#pytest-cov
|
pytest-cov
|
||||||
gray
|
gray
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# This file is autogenerated by pip-compile
|
# This file is autogenerated by pip-compile with python 3.8
|
||||||
# To update, run:
|
# To update, run:
|
||||||
#
|
#
|
||||||
# pip-compile dev-requirements.in
|
# pip-compile dev-requirements.in
|
||||||
@ -11,7 +11,9 @@ alabaster==0.7.12
|
|||||||
appdirs==1.4.4
|
appdirs==1.4.4
|
||||||
# via black
|
# via black
|
||||||
attrs==21.2.0
|
attrs==21.2.0
|
||||||
# via jsonschema
|
# via
|
||||||
|
# jsonschema
|
||||||
|
# pytest
|
||||||
autoflake==1.4
|
autoflake==1.4
|
||||||
# via gray
|
# via gray
|
||||||
babel==2.9.1
|
babel==2.9.1
|
||||||
@ -38,6 +40,8 @@ colorlog==6.4.1
|
|||||||
# via prettylog
|
# via prettylog
|
||||||
configargparse==1.5.2
|
configargparse==1.5.2
|
||||||
# via gray
|
# via gray
|
||||||
|
coverage==5.5
|
||||||
|
# via pytest-cov
|
||||||
distlib==0.3.2
|
distlib==0.3.2
|
||||||
# via virtualenv
|
# via virtualenv
|
||||||
docutils==0.17.1
|
docutils==0.17.1
|
||||||
@ -52,14 +56,14 @@ filelock==3.0.12
|
|||||||
# virtualenv
|
# virtualenv
|
||||||
fixit==0.1.4
|
fixit==0.1.4
|
||||||
# via gray
|
# via gray
|
||||||
flake8-polyfill==1.0.2
|
|
||||||
# via pep8-naming
|
|
||||||
flake8==3.9.2
|
flake8==3.9.2
|
||||||
# via
|
# via
|
||||||
# -r dev-requirements.in
|
# -r dev-requirements.in
|
||||||
# fixit
|
# fixit
|
||||||
# flake8-polyfill
|
# flake8-polyfill
|
||||||
# pep8-naming
|
# pep8-naming
|
||||||
|
flake8-polyfill==1.0.2
|
||||||
|
# via pep8-naming
|
||||||
gray==0.10.1
|
gray==0.10.1
|
||||||
# via -r dev-requirements.in
|
# via -r dev-requirements.in
|
||||||
identify==2.2.13
|
identify==2.2.13
|
||||||
@ -74,6 +78,8 @@ importlib-metadata==4.7.1
|
|||||||
# twine
|
# twine
|
||||||
importlib-resources==5.2.2
|
importlib-resources==5.2.2
|
||||||
# via fixit
|
# via fixit
|
||||||
|
iniconfig==1.1.1
|
||||||
|
# via pytest
|
||||||
isort==5.9.3
|
isort==5.9.3
|
||||||
# via
|
# via
|
||||||
# -r dev-requirements.in
|
# -r dev-requirements.in
|
||||||
@ -90,18 +96,19 @@ markupsafe==2.0.1
|
|||||||
# via jinja2
|
# via jinja2
|
||||||
mccabe==0.6.1
|
mccabe==0.6.1
|
||||||
# via flake8
|
# via flake8
|
||||||
|
mypy==0.910
|
||||||
|
# via -r dev-requirements.in
|
||||||
mypy-extensions==0.4.3
|
mypy-extensions==0.4.3
|
||||||
# via
|
# via
|
||||||
# black
|
# black
|
||||||
# mypy
|
# mypy
|
||||||
# typing-inspect
|
# typing-inspect
|
||||||
mypy==0.910
|
|
||||||
# via -r dev-requirements.in
|
|
||||||
nodeenv==1.6.0
|
nodeenv==1.6.0
|
||||||
# via pre-commit
|
# via pre-commit
|
||||||
packaging==21.0
|
packaging==21.0
|
||||||
# via
|
# via
|
||||||
# bleach
|
# bleach
|
||||||
|
# pytest
|
||||||
# sphinx
|
# sphinx
|
||||||
# tox
|
# tox
|
||||||
pathspec==0.9.0
|
pathspec==0.9.0
|
||||||
@ -116,14 +123,18 @@ pkginfo==1.7.1
|
|||||||
# via twine
|
# via twine
|
||||||
platformdirs==2.2.0
|
platformdirs==2.2.0
|
||||||
# via virtualenv
|
# via virtualenv
|
||||||
pluggy==1.0.0
|
pluggy==0.13.1
|
||||||
# via tox
|
# via
|
||||||
|
# pytest
|
||||||
|
# tox
|
||||||
pre-commit==2.14.0
|
pre-commit==2.14.0
|
||||||
# via -r dev-requirements.in
|
# via -r dev-requirements.in
|
||||||
prettylog==0.3.0
|
prettylog==0.3.0
|
||||||
# via gray
|
# via gray
|
||||||
py==1.10.0
|
py==1.10.0
|
||||||
# via tox
|
# via
|
||||||
|
# pytest
|
||||||
|
# tox
|
||||||
pycodestyle==2.7.0
|
pycodestyle==2.7.0
|
||||||
# via flake8
|
# via flake8
|
||||||
pyflakes==2.3.1
|
pyflakes==2.3.1
|
||||||
@ -138,6 +149,12 @@ pyparsing==2.4.7
|
|||||||
# via packaging
|
# via packaging
|
||||||
pyrsistent==0.18.0
|
pyrsistent==0.18.0
|
||||||
# via jsonschema
|
# via jsonschema
|
||||||
|
pytest==6.2.4
|
||||||
|
# via
|
||||||
|
# -r dev-requirements.in
|
||||||
|
# pytest-cov
|
||||||
|
pytest-cov==2.12.1
|
||||||
|
# via -r dev-requirements.in
|
||||||
pytz==2021.1
|
pytz==2021.1
|
||||||
# via babel
|
# via babel
|
||||||
pyupgrade==2.24.0
|
pyupgrade==2.24.0
|
||||||
@ -151,13 +168,13 @@ readme-renderer==29.0
|
|||||||
# via twine
|
# via twine
|
||||||
regex==2021.8.27
|
regex==2021.8.27
|
||||||
# via black
|
# via black
|
||||||
requests-toolbelt==0.9.1
|
|
||||||
# via twine
|
|
||||||
requests==2.26.0
|
requests==2.26.0
|
||||||
# via
|
# via
|
||||||
# requests-toolbelt
|
# requests-toolbelt
|
||||||
# sphinx
|
# sphinx
|
||||||
# twine
|
# twine
|
||||||
|
requests-toolbelt==0.9.1
|
||||||
|
# via twine
|
||||||
rfc3986==1.5.0
|
rfc3986==1.5.0
|
||||||
# via twine
|
# via twine
|
||||||
six==1.16.0
|
six==1.16.0
|
||||||
@ -191,6 +208,8 @@ toml==0.10.2
|
|||||||
# via
|
# via
|
||||||
# mypy
|
# mypy
|
||||||
# pre-commit
|
# pre-commit
|
||||||
|
# pytest
|
||||||
|
# pytest-cov
|
||||||
# tox
|
# tox
|
||||||
tomli==1.2.1
|
tomli==1.2.1
|
||||||
# via
|
# via
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# This file is autogenerated by pip-compile
|
# This file is autogenerated by pip-compile with python 3.8
|
||||||
# To update, run:
|
# To update, run:
|
||||||
#
|
#
|
||||||
# pip-compile requirements.in
|
# pip-compile requirements.in
|
||||||
@ -18,8 +18,6 @@ cffi==1.14.6
|
|||||||
# via cryptography
|
# via cryptography
|
||||||
charset-normalizer==2.0.4
|
charset-normalizer==2.0.4
|
||||||
# via requests
|
# via requests
|
||||||
click-completion==0.5.2
|
|
||||||
# via -r requirements.in
|
|
||||||
click==8.0.1
|
click==8.0.1
|
||||||
# via
|
# via
|
||||||
# -r requirements.in
|
# -r requirements.in
|
||||||
@ -33,18 +31,18 @@ dnspython==1.16.0
|
|||||||
# via eventlet
|
# via eventlet
|
||||||
eventlet==0.31.1
|
eventlet==0.31.1
|
||||||
# via -r requirements.in
|
# via -r requirements.in
|
||||||
flask-classful==0.14.2
|
|
||||||
# via -r requirements.in
|
|
||||||
flask-httpauth==4.4.0
|
|
||||||
# via -r requirements.in
|
|
||||||
flask-socketio==5.1.1
|
|
||||||
# via -r requirements.in
|
|
||||||
flask==2.0.1
|
flask==2.0.1
|
||||||
# via
|
# via
|
||||||
# -r requirements.in
|
# -r requirements.in
|
||||||
# flask-classful
|
# flask-classful
|
||||||
# flask-httpauth
|
# flask-httpauth
|
||||||
# flask-socketio
|
# flask-socketio
|
||||||
|
flask-classful==0.14.2
|
||||||
|
# via -r requirements.in
|
||||||
|
flask-httpauth==4.4.0
|
||||||
|
# via -r requirements.in
|
||||||
|
flask-socketio==5.1.1
|
||||||
|
# via -r requirements.in
|
||||||
greenlet==1.1.1
|
greenlet==1.1.1
|
||||||
# via eventlet
|
# via eventlet
|
||||||
idna==3.2
|
idna==3.2
|
||||||
|
Loading…
Reference in New Issue
Block a user