1
0
Fork 0
Commit Graph

708 Commits (b852ed8372a09a34d6807aaf6dcbe0fc1309d1f6)

Author SHA1 Message Date
Corey Shields 6bc64e9217 linting for W0703
broad-except, I added explicit exceptions where I felt safe doing so - but we do have a lot of broad exceptions accepted.

Signed-off-by: Corey Shields <cshields@gmail.com>
2019-07-13 18:08:55 -04:00
Corey Shields fe1f989d7b linting for W0621
resolving name conflicts between variables and functions

Signed-off-by: Corey Shields <cshields@gmail.com>
2019-07-13 17:38:04 -04:00
Corey Shields 0d4701b100 linting W0612, W0613
Mostly disabling the alerts on django signals and filter attributes that go unused.

Signed-off-by: Corey Shields <cshields@gmail.com>
2019-07-13 16:24:43 -04:00
Corey Shields f7c4df84f1 Fix broken API filter view
Linting W0613 led to the discovery that we filter on status entries that do not exist. Changing "functional" to "active" will fix https://db.satnogs.org/api/transmitters/?alive=true

fixes satnogs-db#298

Signed-off-by: Corey Shields <cshields@gmail.com>
2019-07-13 16:14:40 -04:00
Corey Shields 0da7589c1d fix spacing (flake)
Signed-off-by: Corey Shields <cshields@gmail.com>
2019-07-13 16:02:48 -04:00
Corey Shields fca0c1d419 Linting W0223
We were missing a call to return the login page from a BaseAuth abstract function.

Once this is in dev (an auth0 environment) I suspect it might fix librespacefoundation/satnogs/satnogs-db#309

Signed-off-by: Corey Shields <cshields@gmail.com>
2019-07-13 15:40:28 -04:00
Corey Shields 678de105dd linting W0201 and W0221
we are going to ignore W0201 and W0221 around the TransmitterEntry save function. Reasons are in the code comments.

Signed-off-by: Corey Shields <cshields@gmail.com>
2019-07-13 15:32:04 -04:00
Corey Shields ec07c59263 linting for W0150
the check_celery function returns in a finally, which is unnecessary and is an antipattern. This works just the same dropping the finally statement and returning in the end.

Signed-off-by: Corey Shields <cshields@gmail.com>
2019-07-13 14:46:16 -04:00
Corey Shields a8a0dc4aa6 linting W0107
check_celery had an invalid pass, replaced that with a log entry.
 
Signed-off-by: Corey Shields <cshields@gmail.com>
2019-07-13 14:38:20 -04:00
Corey Shields 8b6410ba2c W0105 linting - remove display_decoded
display_decoded is an unused relic of the original decode method, and throws a W0105 warning.

removing this function completely

Signed-off-by: Corey Shields <cshields@gmail.com>
2019-07-13 14:28:04 -04:00
Corey Shields f90fe277d5 remove unused helpers
cleaning up C0111 exposed that we have some helpers initially added when django cache was implemented, but have since been abandoned.

Removing them as they are unused and unneeded

Signed-off-by: Corey Shields <cshields@gmail.com>
2019-07-12 22:53:23 -04:00
Corey Shields 2ec2fd2a4d pylint C0111 docstrings
phew, fixed all of the missing-docstring and found some other things along the way (for future changes)
2019-07-12 22:36:18 -04:00
Corey Shields dcccb1770e Remove old decode_data.py manage command
Found while documenting for C0111, this was old code for the initial "decode" functionality that was replaced by decode_data in utils.py

Signed-off-by: Corey Shields <cshields@gmail.com>
2019-07-12 19:12:43 -04:00
Corey Shields a697548a56 pylint C0122
Linting for misplaced-comparison-constant

Signed-off-by: Corey Shields <cshields@gmail.com>
2019-07-12 17:47:28 -04:00
Corey Shields 8a3ebb3caf add IDE artifacts to gitignore
Signed-off-by: Corey Shields <cshields@gmail.com>
2019-07-12 17:00:25 -04:00
Pierros Papadeas 8a51d27f65 Fix C0325 pylint error
Signed-off-by: Pierros Papadeas <pierros@papadeas.gr>
2019-07-12 19:57:27 +00:00
Corey Shields b7ec119853 pylint C0103
Linting for Pylint C0103

Signed-off-by: Corey Shields <cshields@gmail.com>
2019-07-12 12:41:21 +00:00
Pierros Papadeas 853381a5dc
Fix pylint C1801 errors
Signed-off-by: Pierros Papadeas <pierros@papadeas.gr>
2019-07-12 09:48:33 +03:00
Pierros Papadeas d1fb393c79
Update transmitters fixture
Signed-off-by: Pierros Papadeas <pierros@papadeas.gr>
2019-07-11 14:10:47 +03:00
Pierros Papadeas 52c91d46a7
Update README
Signed-off-by: Pierros Papadeas <pierros@papadeas.gr>
2019-07-11 14:10:47 +03:00
Pierros Papadeas 48ea435093
Add transmitter service field
Fix issue 310

Signed-off-by: Pierros Papadeas <pierros@papadeas.gr>
2019-07-11 14:10:47 +03:00
Fabian P. Schmidt 203f9a7258 docs: Add documentation on local docs generation
Signed-off-by: Fabian P. Schmidt <kerel@mailbox.org>
2019-07-11 10:26:51 +00:00
Fabian P. Schmidt 1dfdbc8cc3 gitlab-ci: Use python3 base image for docs
Signed-off-by: Fabian P. Schmidt <kerel@mailbox.org>
2019-07-11 10:26:51 +00:00
Poonam Mishra 9a0ef30e03 model: Replace __unicode__ by __str__
The special method __unicode__ is python2-only,
in python3 it's merged with __str__. In order to be py23-compatible
the python_2_unicode_decorator is used, see
https://docs.djangoproject.com/en/1.11/topics/python3/#str-and-unicode-methods

initial patch: Updated docstrings to show names
[kerel@mailbox.org: - reworded commit message,
                    - added similar change in demoddata
                    - added @python_2_unicode_compatible decorator]
Signed-off-by: Fabian P. Schmidt <kerel@mailbox.org>
2019-07-10 19:55:48 +02:00
Corey Shields 248390a760 flake / tox fixes
Signed-off-by: Corey Shields <cshields@gmail.com>
2019-07-10 19:55:48 +02:00
Corey Shields 8734748e50 2to3 changes for python3
Mostly list changes, from 2to3

Also missing __future__ needed for _version.py

Signed-off-by: Corey Shields <cshields@gmail.com>
2019-07-10 19:55:48 +02:00
Corey Shields dc06369f9a Update celery and dependencies
celery needed updating to avoid a 3.7 bug (see https://github.com/celery/celery/issues/4500 )

Signed-off-by: Corey Shields <cshields@gmail.com>
2019-07-10 19:55:48 +02:00
Corey Shields f734919b61 Change the mysql_exceptions import of OperationalException to django.db
The import itself would have needed fixing, but its bad to pin it to mysql.

Signed-off-by: Corey Shields <cshields@gmail.com>
2019-07-10 19:55:48 +02:00
Corey Shields f0c0c9bc8b remove bytestrings from migrations
Remove all bytestring references from existing migrations

Future migrations should avoid bytestrings with the future import we set.

Signed-off-by: Corey Shields <cshields@gmail.com>
2019-07-10 19:55:48 +02:00
Corey Shields ff56cb6431 gitignore: Ignore 'build' and 'dist' directories
Signed-off-by: Fabian P. Schmidt <kerel@mailbox.org>
2019-07-10 19:55:44 +02:00
Fabian P. Schmidt 723fa19ebb Update 'satellitetle'
In the 0.6.0 release the main CelesTrak source was changed from
'Satellites (active)' to the new 'SatNOGS' list. This list is
composed by CelesTrak by fetching the list of satellites
from satnogs-db.

This doesn't introduce a circular dependency:
As before, if a TLE is not available from the main collections
(which beside the previously discussed CelesTrak list includes
another from AMSAT and CalPoly), the CelesTrak SATCAT API is
questioned for each missing satellite separately.

Signed-off-by: Fabian P. Schmidt <kerel-fs@gmx.de>
2019-07-05 01:58:34 +02:00
Vasilis Tsiligiannis 3872105dac Introduce 'pylint' for static code analysis (fixes #289)
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-07-02 16:38:18 +03:00
Corey Shields d4fb5189d1 future imports and remove unicode strings
adds from __future__ import unicode_literals, absolute_import, division, print_function to all files, removes unicode strings from RTD conf.py (none other were found in our codebase)

See also https://docs.djangoproject.com/en/1.11/topics/python3/#unicode-literals

fixes #290

tested locally in docker
2019-06-30 19:23:55 -04:00
Pierros Papadeas 5433a7a67b
Beautify citation on satellite.html template 2019-06-30 11:25:36 +03:00
Vasilis Tsiligiannis 1d85a64e6e Remove task which resets all decoded data
With the introduction of 'satnogs-decoders' version saved within the
decoded data structure, there is no need to reset any data prior to
triggering a 'decode all' task. The newly decoded data can happily live
alongside old data until the administator of the data warehouse decides
to remove them, part of data janitor tasks. An additional advantage is
that if the decoder structure changes drastically, existing dashboards
can still be used to visualize the old data as long as they are
filtered by version and until new dashboards are prepared.

Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-05-11 14:18:04 +03:00
Vasilis Tsiligiannis a7e80bb4e5 Save 'satnogs-decoders' version in decoded data structure
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-05-11 14:11:53 +03:00
Vasilis Tsiligiannis f59efae039 gitlab-ci: Use specific version of 'satnogsdecoders' if requested so via a trigger variable
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-05-10 16:52:01 +03:00
Vasilis Tsiligiannis 6da2fadf94 tox: Do not use editable install when running 'pytest'
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-05-09 20:58:26 +03:00
Vasilis Tsiligiannis 4bb87e2e6a isort: Do not skip install in order to correctly detect third-party imports
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-05-09 20:49:10 +03:00
Vasilis Tsiligiannis 084694b02c tox: Do not run 'pytest' in Python3 until they are fixed
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-05-09 20:41:52 +03:00
Vasilis Tsiligiannis c88a139f89 tox: Fix environments to work on both Python versions
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-05-09 20:18:21 +03:00
Vasilis Tsiligiannis 6ba9a0428a tox: Add enviroment to apply 'yapf' and 'isort' suggested changes
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-05-09 18:38:47 +03:00
Vasilis Tsiligiannis 811b3a8a8f tox: Consolidate 'isort' and 'yapf' environments for Python2 and Python3
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-05-09 18:34:24 +03:00
Vasilis Tsiligiannis 826f7bbe9f tox: Introduce 'build' environment
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-05-09 18:26:01 +03:00
Vasilis Tsiligiannis be4e2fd1fc tox: Move 'yapf' ignore list to '.yapfignore'
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-05-09 18:25:55 +03:00
Vasilis Tsiligiannis 45abdcd33a tox: Move 'isort' skip lists to 'setup.cfg'
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-05-09 18:25:40 +03:00
Vasilis Tsiligiannis cb2c4899a9 tox: Move 'flake8' ignore list to 'setup.cfg'
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-05-09 18:03:25 +03:00
Vasilis Tsiligiannis eee14e66e8 tox: Pin static analyzer tools versions to ensure reproducible CI results
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-05-09 14:39:19 +03:00
Fabian P. Schmidt f141ce2580 docs/installation-*: Add frontend dependencies installation step
Signed-off-by: Fabian P. Schmidt <kerel-fs@gmx.de>
2019-04-28 22:41:08 +02:00
Alfredos-Panagiotis Damkalis d3501fd8f3 Update to gulp v4.0.0
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2019-04-27 17:39:37 +03:00