This changes the used rounding strategy.
See "Whats new in python3"[1] for more details:
> Exact halfway cases are now rounded to the nearest even result
> instead of away from zero.
> (For example, round(2.5) now returns 2 rather than 3.)
Fixes round-builtin (W1633) pylint error.
[1]: https://docs.python.org/3/whatsnew/3.0.html#builtins
Signed-off-by: Fabian P. Schmidt <kerel@mailbox.org>
This reverts commit 581fc7620c. pylint didn't
check the enabled checks as was run with --py3k parameter.
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
Previously for unicode decode-able frames in observations where the transmitter
type was not CW, the hex dump was malformed and contained the unicode decoded
text instead.
Fixes the unicode-builtin (W1612) pylint errors as well.
Signed-off-by: Fabian P. Schmidt <kerel@mailbox.org>
Fixes no-absolute-import (W1618) pylint error.
Similar commit in db: librespacefoundation/satnogs/satnogs-db@d4fb5189d19aa7fc12e1adcfbc7b3ca07452fed6
Signed-off-by: Fabian P. Schmidt <kerel@mailbox.org>
Fixes the cyclical dependency between celery.py and tasks.py when
the task is called outside of celery by switching to autodiscovered tasks.
Use @shared_task decorator and wrapper tasks to workaround celery bug.
Fixes cyclic-import pylint error (R0401).
Commit based on: librespacefoundation/satnogs/satnogs-db@61f9137a
Signed-off-by: Fabian P. Schmidt <kerel@mailbox.org>
Pylint throws a false positive for E1101 under Python2
(but runs cleanly in Python3, TODO: To be checked!).
Similar commit in db: librespacefoundation/satnogs/satnogs-db@9359532d
Signed-off-by: Fabian P. Schmidt <kerel@mailbox.org>
Ignoring too-few-public-methods (R0903) pylint error for tests.py
where we do not need to care about public methods,
and for django managers in models.py.
Similar commit in db: librespacefoundation/satnogs/satnogs-db@91d8ba20
Signed-off-by: Fabian P. Schmidt <kerel@mailbox.org>
There are clashes between the positioning and ordering of our imports
between pylint and isort, just ignoring them on the pylint side for now.
Based on: librespacefoundation/satnogs/satnogs-db@fc8f9a8c
Signed-off-by: Fabian P. Schmidt <kerel@mailbox.org>
Ignoring cases of too many ancestors in API views.py as these
are upstream, not much we can do about it.
Similar commit in db: librespacefoundation/satnogs/satnogs-db@82713517
Signed-off-by: Fabian P. Schmidt <kerel@mailbox.org>
Fixes no-self-use (R0201) pylint error.
Similar commit in db: librespacefoundation/satnogs/satnogs-db@9989efb4
Signed-off-by: Fabian P. Schmidt <kerel@mailbox.org>
This commit refactors the HTTP GET parameter parsing into a new
funciton get_filter_params, reducing the complexity of get_queryset
and thus fixes a too-many-statements (R0915) pylint error.
Signed-off-by: Fabian P. Schmidt <kerel@mailbox.org>