1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-22 20:00:29 +03:00

2273 Commits

Author SHA1 Message Date
Athanasius
c45c6cda58 setup.py: Add EDMarketConnector - TRACE.bat to data files. 2020-09-28 13:12:58 +01:00
Athanasius
a27297e36c
Merge pull request #722 from EDCD/fix/721-fc-empty-market
Send empty market data over EDDN
2020-09-28 13:06:00 +01:00
Athanasius
abc1507aa0 Also allow sending empty commodities from Market.json 2020-09-28 13:02:10 +01:00
Athanasius
dea7b3660a Minor formatting cleanups 2020-09-28 12:48:53 +01:00
Athanasius
e908cce242 Change the multi-line conditional to using () not \\n 2020-09-28 12:41:44 +01:00
Athanasius
ca4214fff8 EDDN: Catch and log 'we tried to send empty market'.
Very tight check on this to be sure we don't ignore other errors.

	r.status_code == 400  # Not a different code
	$schemaRef == commodities
	The message had empty commodities list
	r.text == expected return from EDDN Gateway
2020-09-28 12:26:09 +01:00
Athanasius
9564d8ab4f EDDN: Allow sending of empty market data for updating FCs. 2020-09-28 12:00:28 +01:00
Athanasius
ae82f27925
Merge pull request #719 from EDCD/enhancement/trace-logging
Implement a TRACE level of logging
2020-09-28 11:19:24 +01:00
Athanasius
9789c6fe7d Logging: Explicitly mention that we add trace/TRACE at runtime. 2020-09-28 11:18:25 +01:00
Athanasius
f5fad1c23d Add .mypy.ini and .pre-commit-config.yaml files
* With mypy we need to set some options for sane output.
* With pre-commit this defines the checks it performs.
2020-09-28 11:16:25 +01:00
Athanasius
9e6e718e23 Logging: Document trace/TRACE workaround & expand other docs. 2020-09-28 11:02:13 +01:00
Athanasius
4fb81e6e9d Add a BAT file to run with --trace 2020-09-25 16:17:17 +01:00
Athanasius
baebb2e91b Update main EDMarketConnector manifest to be dpiAware+gdiScaling
This addresses the issue of radio buttons not resizing when using
Windows OS scaling of the whole UI.
2020-09-25 16:13:22 +01:00
Athanasius
1da24f2026 Add specific manifest files for different configurations. 2020-09-25 15:33:18 +01:00
Athanasius
1aba1a0596 Trace: Change several calls from debug to trace. 2020-09-23 22:07:18 +01:00
Athanasius
3c0ac76f90 Trace: Add support to EDMC.py & misc cleanups
* EDMC: Add --trace (to match EDMarketConnector.py) and TRACE as option to
  --loglevel.
* EDMC: docstrings added.
* EDMCLogging: Set logger name based on if GUI or CLI.
* EDMarketConnector:
  * Re-order imports.
  * Misc. formatting cleanups.
  * f-strings not .format().
  * Removed un-necessary "# noqa: N806" comments.
2020-09-23 17:38:38 +01:00
Athanasius
46e3b3aff8 Implement a TRACE level of logging.
For things that are too spammy for DEBUG, but we might need them
sometimes.
2020-09-23 15:58:19 +01:00
Athanasius
d8ea6a0a94 monitor.py: Fix typo of info() 2020-09-23 15:32:36 +01:00
Athanasius
99ee6e0a57 Pre-Release 4.1.0-beta7 Release/4.1.0-beta7 2020-09-23 12:44:30 +01:00
Athanasius
68297918d3
Merge pull request #717 from EDCD/enhancement/logging-monitor.py
Change monitor.py to use logging, not `__debug__` & print
2020-09-23 12:27:33 +01:00
Athanasius
85d45aadd7 Place detailed logging for "Location" events.
To try and track down what's happening with #713
2020-09-23 11:45:48 +01:00
Athanasius
3afcac0dea monitor.py: Use logging for Journal Folder/File announcements 2020-09-22 18:49:07 +01:00
Athanasius
4b008b157e Bug Report Issue: Ask for *both* log files. 2020-09-22 17:37:49 +01:00
Athanasius
477ea5be42
Merge pull request #716 from A-UNDERSCORE-D/cleanup/prefs
Cleanup/prefs
2020-09-22 17:03:26 +01:00
Athanasius
20464b80c7
Merge branch 'develop' into cleanup/prefs 2020-09-22 16:59:44 +01:00
Athanasius
4cec46b028 Pre-Release 4.1.0-beta6 pre-prefs-merge Release/4.1.0-beta6 2020-09-22 16:30:49 +01:00
Athanasius
a3b69fd94d Switch internal plugins to EDMCLogging.get_main_logger() 2020-09-22 16:20:05 +01:00
Athanasius
29d5bb7c35
Merge pull request #715 from EDCD/fix/711-utf8-locale
Use manifests for UTF-8, including in EDMC.py
2020-09-22 16:17:36 +01:00
Athanasius
7750bbdf4a Move GUI/CLI conditional into get_plugin_logger()
It's cleaner here than in the calling plug.py code.
2020-09-22 16:09:39 +01:00
Athanasius
fa326ad3d3 EDMC.py: Move DEBUG logging to after level is set. 2020-09-22 15:54:18 +01:00
Athanasius
14b8565aff Add 'import logging' (back in?) to prefs.py 2020-09-22 15:50:06 +01:00
Athanasius
3759f2f0f2 Use appropriate base logger name for plugins. 2020-09-22 15:48:09 +01:00
Athanasius
a883eb29b2 plug.py, prefs.py: Use get_main_logger() 2020-09-22 15:44:16 +01:00
Athanasius
22b3362c20 companion.py: Switch to using EDMCLogging.get_main_logger()
So that we use the correct one for GUI versus CLI.
2020-09-22 15:37:56 +01:00
Athanasius
edc6ed6596 Add locale DEBUG logging to EDMC.py 2020-09-22 15:37:45 +01:00
Athanasius
c0b01f88ac Add get_main_logger() method to EDMCLogging.py
This is so the decision on appname versus appcmdname is in one place.
2020-09-22 15:35:42 +01:00
Athanasius
0f3ebd6e23 Add a manifest for EDMC.exe so that it also runs UTF-8 2020-09-22 15:34:35 +01:00
Athanasius
9e1ffc14c8 setup.py: Reference EDMC.manifest ready for its creation
We'll want to do the same "use the UTF-8 codepage" thing here.
2020-09-22 14:54:39 +01:00
Athanasius
a308171bfc Remove plugintest/miggytest.db
I swear I already did this ....
2020-09-22 14:50:27 +01:00
Athanasius
a332aaedd9
Merge pull request #714 from EDCD/enhancement/miggytest-plugin
Now in docs/examples/plugintest
2020-09-22 14:48:01 +01:00
Athanasius
ec5b9fc561 Rename miggytest plugin to plugintest.
Also now has docstrings and types, and generally passes flake8 and also
mypy, with the exception of that 'this' hack not being liked.
2020-09-22 14:43:10 +01:00
Athanasius
803a6c31c9 miggytest plugin: Tests "for plugins" modules
This plugin is designed as a quick test that we are supplying the things
we say we will for plugins.

* Check that modules are available: sqlite3, shutil, zipfile.
* Check that logging works as expected.
2020-09-22 14:27:32 +01:00
Athanasius
6c63984aca
Merge pull request #708 from A-UNDERSCORE-D/enhancement/example-plugin
Add example plugin and clean up plugin docs
2020-09-22 14:25:15 +01:00
A_D
97d8631e11
Removed todo 2020-09-22 15:22:27 +02:00
A_D
9c3f273027
Added type hints and param descriptions 2020-09-22 15:20:46 +02:00
A_D
0577c08d54
Fixed module docstring 2020-09-22 15:20:46 +02:00
A_D
5ae269d7f6
Added type annotations to examples 2020-09-22 15:20:46 +02:00
A_D
161ca24bb6
updated plugin docs 2020-09-22 15:20:45 +02:00
A_D
470cbaa146
Added example plugin 2020-09-22 15:20:45 +02:00
A_D
4ecb378b83
cleaned up plugins.md 2020-09-22 15:20:44 +02:00