A_D
3c66ab7246
removed unused imports
2020-08-07 13:20:22 +02:00
A_D
6772c84a5f
fixed names where possible
2020-08-07 13:20:22 +02:00
A_D
c0026cea61
replaced list comps with generators
2020-08-07 13:20:21 +02:00
A_D
c012ebc54e
Replaced modulo-formatting with fstrings
...
Specifically did not replace `somefile.write('%s\n' % some_data)` as
print may change the line endings on some OSes which may not be wanted
2020-08-07 13:20:21 +02:00
A_D
4105662fb5
Cleaned up logic and removed overlong lines
...
Generally for the logic cleanups it was replacing giant list
comprehensions with slightly smaller filter calls. filter() is just
plain cleaner when all you're doing in a list comp is
[x for x in y if somecondition].
2020-08-07 13:20:21 +02:00
A_D
4d0cf4e335
Added scope change newlines
2020-08-07 13:20:20 +02:00
A_D
b186e97747
autoformatted code
2020-08-07 13:20:19 +02:00
Athanasius
4d7b60507c
Merge pull request #664 from A-UNDERSCORE-D/linting/import-order
...
Add flake8-isort for import order
2020-08-07 11:42:49 +01:00
A_D
0be9bb7a6d
renamed pyproject.toml, added flake8-isort
2020-08-06 02:21:27 +02:00
Athanasius
cf25eacda9
Releasing.md: We're using Python 3.7.8 now
2020-08-05 12:33:52 +01:00
Athanasius
405edfacb6
Merge tag 'Release/4.0.4' into releases
...
Release 4.0.4
2020-08-02 20:20:04 +01:00
Athanasius
412dad86a7
Release 4.0.4: Correct translations and update appcast length
...
* Pulling in latest translations meant needing to change %H:%M:%S back
to {HH}:{MM}:{SS}.
* Built and tested, so has appcast length updated too.
Release/4.0.4
2020-08-02 20:14:55 +01:00
Athanasius
c8635b84d2
Translations: Minor changes
...
* Back to {HH}:{MM}:{SS} for this.
* A few extra "Use alternate URL method" translations.
2020-08-02 20:04:37 +01:00
Athanasius
451dcbff21
Release 4.0.4: Post-build appcast length update
2020-08-02 20:02:45 +01:00
Athanasius
c51a1459d1
Release 4.0.4: Mention Python 3.7.8 in changelogs.
2020-08-02 19:56:14 +01:00
Athanasius
e5ca8a6f26
Release 4.0.4: Changelog, version, appcast
...
* Version 4.0.4
* ChangeLog.md
* edmarketconnector.xml (except length)
2020-08-02 19:41:14 +01:00
Athanasius
513e21a06e
Inara timer fix.
...
I had to pull a diff out of the old branch, apply it, and reverse things
like the addition of logging. This needs to be the minimum change for
the fix.
Tested with a quick login, then spamming market buy/sell orders. They
were correctly queued and then sent after 30s since previous API calls.
2020-08-02 19:35:02 +01:00
Athanasius
ba09cfd8aa
PLUGINS.md: except not catch
2020-08-02 19:35:02 +01:00
Athanasius
0d55e4f6c9
PLUGINS.md: Fix typo ' -> `
2020-08-02 19:35:02 +01:00
Athanasius
ffd0079e16
PLUGINS.md: Logging is being added, how to prepare
...
* Currently you use `print(...)`
* `logging` support is coming, here's how to prepare.
2020-08-02 19:35:02 +01:00
Athanasius
cf6eec3289
Removed keyring dependency
...
This remove all dependencies on the keyring lib, updates the
requirements.txt to reflect that, and ensures that setup.py does not
attempt to package it.
Any use of the "old" keyring code will now return None and warn about
its deprecation.
2020-08-02 19:31:20 +01:00
A_D
68fb18310d
Dont crash when journal_dir is None
...
Ensures that journal_dir is always at least an empty string.
Fixes #639
2020-08-02 19:29:03 +01:00
Athanasius
b9075f1159
Change \xd7 character to a normal 'x' so that 3.46 EDMC.exe finds newer versions.
2020-08-02 19:29:03 +01:00
Athanasius
d18c53e82b
Translations: Add 'Use alternate URL method' to phrases
2020-08-02 19:29:03 +01:00
Athanasius
22932a33cc
Merge pull request #651 from A-UNDERSCORE-D/fix/request-hangs-threads
...
Fix request hangs threads on exit
2020-07-31 15:08:21 +01:00
A_D
faac29fe84
Made sure to return super().send()
2020-07-31 15:53:20 +02:00
A_D
81dfbdfb8e
Added timeout_session, made inara use it
...
timeout_session provides two things, TimeoutAdapter, a HTTP adapter
subclass that automatically adds timeouts to all requests, and
new_session, which automatically creates a request.Session with the
adapter in the correct place.
2020-07-31 15:53:20 +02:00
Athanasius
5c7744c595
Merge pull request #650 from EDCD/enhancement/logging-found-plugins
...
Ensure all plugins have correct logging from core code
2020-07-31 14:50:55 +01:00
Athanasius
5eb11d3612
Merge pull request #648 from A-UNDERSCORE-D/cleanup/inara
...
Cleanup inara.py
2020-07-31 14:50:11 +01:00
A_D
21a285e6e9
added some more type hints
2020-07-31 15:47:28 +02:00
A_D
f8d4731472
fixed incorrect indexing
2020-07-31 15:47:27 +02:00
A_D
eba318430a
Removed todos about unused args
2020-07-31 15:47:27 +02:00
A_D
446c812485
replaced oneline logic with multiline
2020-07-31 15:47:26 +02:00
A_D
67a260c07f
added type hints to literals
2020-07-31 15:47:26 +02:00
A_D
9005798862
fixed incorrect comment
2020-07-31 15:47:25 +02:00
A_D
bb1def48cd
replaced list comp with filter
2020-07-31 15:47:25 +02:00
A_D
a699ab062d
fixed station link logic
2020-07-31 15:47:24 +02:00
A_D
e74c5c8ceb
replaced list comp with filter
2020-07-31 15:47:23 +02:00
A_D
820b29f7dd
replace dict(list-comp) with dict comp
2020-07-31 15:47:23 +02:00
A_D
539580e38d
Consistently formatted multi-line add_event calls
2020-07-31 15:47:22 +02:00
A_D
96279cb0af
Replaced repeated entry['event'] with variable
2020-07-31 15:47:21 +02:00
A_D
71ad0f92ac
removed outdated comment
2020-07-31 15:47:21 +02:00
A_D
8e49066ca4
Replaced convoluted or-based logic with terneries
2020-07-31 15:47:20 +02:00
A_D
9db9ed4dfc
Cleaned up overlong lines
2020-07-31 15:47:19 +02:00
A_D
13c2679c38
Added spacing around scope changes
2020-07-31 15:47:19 +02:00
A_D
160013e3e5
Added type annotations and docstrings
2020-07-31 15:47:18 +02:00
A_D
eec4c2ebd6
autoformat with autopep8
2020-07-31 15:47:18 +02:00
Athanasius
3a31139cbd
Correct frame_info type
2020-07-31 14:46:38 +01:00
Athanasius
efe63ceac9
Refactor caller_attributes() code into separate methods
...
* find_caller_frame() to do the frame walk.
* munge_module_name() to fix up for plugins.
NB: caller_attributes() now has a noqa on CCR001 as I don't think it
can sensibly be made any less complex. Pulling out the 'if frame:'
section just results in *that* new method then being labelled as too
complex.:244
2020-07-31 14:46:38 +01:00
Athanasius
282e3ddbc5
Fix up and expand on docstrings.
2020-07-31 14:46:38 +01:00