962 Commits

Author SHA1 Message Date
Athanasius
bd5784034a
Validator: Full flake8 and mypy pass 2022-08-18 15:18:28 +01:00
Athanasius
b5df9439ad
requirements: strict_rfc3339 was unused 2022-08-18 15:18:28 +01:00
Athanasius
e6529060e2
StatsCollector: Full flake8 and mypy pass
A function name refactor touches other files.
2022-08-18 15:18:27 +01:00
Athanasius
e6b81a2a3f
DuplicateMessages: Full flake8 and mypy pass 2022-08-18 15:18:27 +01:00
Athanasius
ee7ac90996
DuplicateMessages: Refactor isDuplicated() name to snake_case 2022-08-18 15:18:27 +01:00
Athanasius
01b5ccf7ac
DuplicateMessages: Very initial flake8 pass 2022-08-18 15:18:27 +01:00
Athanasius
e9b4afcdf6
Use that bottle Plugin.apply() signature throughout
# Conflicts:
#	src/eddn/Gateway.py
2022-08-18 15:18:24 +01:00
Athanasius
a05e1d3d2c
.flake8: Comment out min-coverage-percents
I figured out the bottle Plugin.apply() thing.

Leaving as a comment for reference.
2022-08-18 15:18:01 +01:00
Athanasius
485055357b
Bouncer: Trying out 'Callable' for bottle plugin.apply() type annotation 2022-08-18 15:18:01 +01:00
Athanasius
1f420a8f3e
Bouncer: Full flake8 and mypy pass 2022-08-18 15:18:00 +01:00
Athanasius
a44b6286b2
.flake8: Drop the type annotations minimum to 50%
Mostly I'm having trouble finding what else I *could* add types to in
Bouncer.py.  I think it's the bottle plugin classes' (EnableCors and
CustomLogging) functions.
2022-08-18 15:18:00 +01:00
Athanasius
fcfe9e01b2
Settings.loadConfig() got renamed to load_config() 2022-08-18 15:18:00 +01:00
Athanasius
8fb722f6c5
Settings: flake8 and mypy passes
Yes, we want to keep the extra-spaces formatting, but that means
noqa'ing E221.
2022-08-18 15:18:00 +01:00
Athanasius
dd7e12fa28
Version: Bump to 2.0-alph0 for this python3 work 2022-08-18 15:18:00 +01:00
Athanasius
3b5d16c674
Relay: Full flake8/mypy pass 2022-08-18 15:17:59 +01:00
Athanasius
06e9442bea
Monitor: Make EnableCors.apply() static 2022-08-18 15:17:59 +01:00
Athanasius
07e332ff61
Monitor: types pass 2022-08-18 15:17:59 +01:00
Athanasius
33a09ef8b5
Monitor: docstring'd 2022-08-18 15:17:59 +01:00
Athanasius
b37307e6a2
Monitor: Initial flake8 pass 2022-08-18 15:17:58 +01:00
Athanasius
3b3e1a91c5
Gateway: Make the CORS apply() static
Quietens a PyCharm warning
2022-08-18 15:17:58 +01:00
Athanasius
99679d9d5b
Gateway: Minor renames to make PyCharm not gripe
These are related to local variables shadowing globals.
2022-08-18 15:17:58 +01:00
Athanasius
c11fa91162
Gateway: typing: main() 2022-08-18 15:17:58 +01:00
Athanasius
179dd8aebf
Gateway: typing: stats() 2022-08-18 15:17:58 +01:00
Athanasius
8825526a1c
Gateway: typing: health_check() 2022-08-18 15:17:57 +01:00
Athanasius
5939e7c889
Gateway: typing: upload() 2022-08-18 15:17:57 +01:00
Athanasius
9be3cd82d8
Gateway: typing: parse_and_error_handle() 2022-08-18 15:17:57 +01:00
Athanasius
35b90de06d
Gateway: typing: get_decompressed_message()
# Conflicts:
#	src/eddn/Gateway.py
2022-08-18 15:17:54 +01:00
Athanasius
74de8a07ee
Gateway: Start adding types/checking
# Conflicts:
#	src/eddn/Gateway.py
2022-08-18 15:17:29 +01:00
Athanasius
dbb3e7ce7d
requirements-dev: types-pkg_resources 2022-08-18 15:16:58 +01:00
Athanasius
a062d07799
requirements-dev: types-simplejson 2022-08-18 15:16:58 +01:00
Athanasius
24c80c3132
Gateway: misc formatting pass 2022-08-18 14:45:00 +01:00
Athanasius
785378a9bc
Gateway: % -> f-string pass 2022-08-18 14:45:00 +01:00
Athanasius
048e908e09
Gateway: docstring pass 2022-08-18 14:45:00 +01:00
Athanasius
3b4fde42db
Gateway: snake_case variables 2022-08-18 14:44:59 +01:00
Athanasius
123769f8d4
Gateway: More import fixup 2022-08-18 14:44:59 +01:00
Athanasius
bf432a9708
Gateway: Remove un-used bottle imports 2022-08-18 14:44:59 +01:00
Athanasius
13765c70d5
monitor/eddn.js: PyCharm code cleanup 2022-08-18 14:44:59 +01:00
Athanasius
b127c63887
Gateway: Proper import order 2022-08-18 14:44:49 +01:00
Athanasius
ca3417c9c0
Gateway: Better top-level docstring 2022-08-18 14:43:16 +01:00
Athanasius
fea561920a
.pre-commit: No need for LANG section 2022-08-18 14:43:15 +01:00
Athanasius
b93ee82c5f
requirements: Updated for python 3.9.7 2022-08-18 14:43:15 +01:00
Athanasius
15e385287a
Initial setup for proper development with linting etc 2022-08-18 14:43:01 +01:00
Athanasius
930632b0e9
README: Change Discord URL to channel-specific one. 2022-07-26 12:43:40 +01:00
Athanasius
a7b96c3228
scripts/eddn errors: Use 'in' form for EVA variants 2022-06-24 14:52:43 +01:00
Athanasius
4da53bcc40
Merge branch 'develop' of github.com:EDCD/EDDN into develop 2022-06-24 14:48:48 +01:00
Athanasius
723e966b37
docs/README schemas: Be explicit about sub-second timestamp resolution 2022-06-24 14:48:11 +01:00
Athanasius
3fa5012139 scripts/eddn-errors: EDMC - Put back in trap for mystery disallowed 2022-06-20 09:56:40 +00:00
Athanasius
83a7d451ef scripts/eddn-errors: EDMC - two fsssignaldiscovered issues 2022-06-19 10:37:20 +00:00
Athanasius
159c02caf1 scripts/eddn-errors: Also ignore "EVA [Android]" 2022-06-19 10:31:19 +00:00
Athanasius
353c5a2381 scripts/eddn-errors: EDSM - Console version now 1.0.2 2022-06-19 10:26:31 +00:00