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

3566 Commits

Author SHA1 Message Date
Athanasius
83358f87e1 requirements.txt: mypy 0.900+ needs separate types-requests 2021-06-09 08:26:40 +01:00
Athanasius
3e3fbbd653
Merge pull request #1157 from EDCD/dependabot/pip/develop/mypy-0.901
build(deps-dev): bump mypy from 0.812 to 0.901
2021-06-09 08:21:18 +01:00
dependabot[bot]
fb5d5a736c
build(deps-dev): bump mypy from 0.812 to 0.901
Bumps [mypy](https://github.com/python/mypy) from 0.812 to 0.901.
- [Release notes](https://github.com/python/mypy/releases)
- [Commits](https://github.com/python/mypy/compare/v0.812...v0.901)

---
updated-dependencies:
- dependency-name: mypy
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-09 05:28:32 +00:00
Athanasius
2d6a78a865
Merge pull request #1090 from A-UNDERSCORE-D/fix/1082-dont-spam-on-error
Don't spam a stacktrace on requests.ConnectionError
2021-06-07 18:09:31 +01:00
A_D
09a0b70891
Switched logs to warning 2021-06-07 19:07:24 +02:00
A_D
a79cde641e
Removed unused import 2021-06-07 19:06:30 +02:00
A_D
c4e9767974
Don't spam a stacktrace on requests.ConnectionError
ConnectionErrors are expected and not something we can fix. The
exception handler that was catching these previously is a catchall
intended to stop EDMC as a whole from crashing from something
unexpected.

Closes #1082
2021-06-07 19:06:27 +02:00
Athanasius
93e19ba33c
Merge pull request #1142 from A-UNDERSCORE-D/fix/503-eddn-more-verbose-error
Made EDDN logs more verbose
2021-06-07 17:14:19 +01:00
A_D
17980ac6ad
Added localisation 2021-06-07 18:10:25 +02:00
A_D
e6c8183bfc
made EDDN errors more verbose 2021-06-07 18:09:18 +02:00
Athanasius
13ba5fede9
Merge pull request #1153 from EDCD/fix/1074/translations-full-phrases
Translations: General cleanup pass
2021-06-07 17:01:32 +01:00
Athanasius
efbc51c714 EDMarketConnector: Improve legacy LANG comments 2021-06-07 16:56:53 +01:00
Athanasius
eb8b357e27 l10n script: 'No comment for' on stderr 2021-06-07 16:51:08 +01:00
Athanasius
2de39f60ab l10n script: Complain if there's no current/prev LANG comment 2021-06-07 16:50:28 +01:00
Athanasius
3f3e007305 pre-commit: *Ensure* the LANG_comments always runs 2021-06-07 16:39:19 +01:00
Athanasius
9e8bd1926b pre-commit: Run scripts/find_localised_strings.py
This will report on any missing LANG comments at commit time. NB: set to
run on all files in case of L10n/en.template changes.
2021-06-07 16:37:53 +01:00
Athanasius
631446f619 Translations: Final LANG comments
The script now outputs nothing about Unknown comments
2021-06-07 16:02:39 +01:00
Athanasius
f4af278a80 prefs.py: Contiuning LANG comment pass 2021-06-07 16:00:28 +01:00
Athanasius
1495ba9206 prefs.py: Properly .grid() the 'Plugins folder' label 2021-06-07 15:56:50 +01:00
Athanasius
fc96c6362f prefs.py: Initial LANG comment pass
Pausing for a possible bug fix
2021-06-07 15:54:20 +01:00
Athanasius
4fa0521438 other core plugins: LANG comment pass 2021-06-07 15:43:32 +01:00
Athanasius
a412ec1382 plugins/coriolis.py: LANG comment pass 2021-06-07 15:35:24 +01:00
Athanasius
cc0e39b7c2 l10n.py: LANG comment pass 2021-06-07 15:34:14 +01:00
Athanasius
2351ee0f02 EDMarketConnector: LANG comment pass 2021-06-07 15:32:52 +01:00
Athanasius
1b58e91fa2 l10n script: Only report 'Unknown comment' if we didn't find a LANG one
So if we have a before LANG comment, then don't report the actual line
for a bad comment.

And if we have a current_line valid LANG comment, then don't report the
above_line as unknown.
2021-06-07 15:27:09 +01:00
Athanasius
06725467f9 l10n script: --lang takes a filename argument now
This allows for forcing unix-style line endings to the file, rather than
needing to mess with dos2unix after on a Windows system.
2021-06-07 15:05:26 +01:00
Athanasius
32101bdba5 Translations: auto-generated file now has !Language header 2021-06-07 15:03:46 +01:00
Athanasius
be46c47c1c l10n script: Adjust !Language header 2021-06-07 14:50:18 +01:00
Athanasius
82fd3cd577 l10n script: With --lang output the !Language header 2021-06-07 14:34:12 +01:00
Athanasius
6d0f5259d0 Translations: Use script-provided version
This loads in to EDMarketConnector.py without errors, and a quick check
of German in Settings appeared to show all of the correct translations.
2021-06-07 14:22:33 +01:00
Athanasius
87ff0b08a1 Translations: Full phrase "Error: Check E:D journal file location" 2021-06-07 14:17:28 +01:00
Athanasius
1b3046a4f9 l10n script: Fix comparison for picking up 'before' LANG comments 2021-06-07 14:07:44 +01:00
Athanasius
a1abb46ff5 l10n script: Fix/add some args help 2021-06-07 13:37:27 +01:00
Athanasius
4dc610339d
Merge pull request #1152 from EDCD/enhancement/contributing-review-and-reformat
General Contributing.md and Language.md cleanup/reformat
2021-06-07 13:07:49 +01:00
Athanasius
9d46b6a7b0 Contributing: .format() still acceptable wrt translations 2021-06-07 12:58:45 +01:00
Athanasius
d304c32602 Translations: LANG comment in here, not Contributing
Also changed to `# header` style formatting, with `---` separators
between major sections.
2021-06-07 12:47:48 +01:00
Athanasius
5c8b5b9914 Translations: Correct example of a non-translated {WORD}
The code needs to perform the replacement *after* translation phrase
look up.
2021-06-07 12:39:18 +01:00
Athanasius
da790826e9 Contributing: missing/incorrect docstrings will fail flake8 2021-06-07 12:33:12 +01:00
Athanasius
f7272ee445 Contributing: fstrings are mandatory, not only preferred
Legacy code aside....
2021-06-07 12:32:12 +01:00
Athanasius
e548dce4d8 Contributing: Reference Plugin logging documentation 2021-06-07 12:31:05 +01:00
Athanasius
522f15b0c6 Contributing: 'Coding Conventions' content shouldn't be headers 2021-06-07 12:27:45 +01:00
Athanasius
93dbaee5ae Contributing: "Git commit conventions" after "General workflow"
Also linkified to the GitHub docs about 'Closes #XXX' and the like.
2021-06-07 12:26:01 +01:00
Athanasius
81652a54c2 Contributing: --- separators between each ## 2021-06-07 12:21:00 +01:00
Athanasius
3c13e84910 Contributing: Re-arrange sections more logically
1. General workflow first.
2. Then branches, including 'work in progress'.
3. Followed by tags.
4. *Then* 'Version conventions'.
2021-06-07 12:18:56 +01:00
Athanasius
9dcb79a5db Contributing: Minor grammar/punctuation 2021-06-07 12:11:58 +01:00
Athanasius
54b57db329 Contributing: <type>/<issue number>/<title> now mandated 2021-06-07 12:10:43 +01:00
Athanasius
3edf4ed069 Contributing: re-format 'Work on Issues' 2021-06-07 12:04:14 +01:00
Athanasius
f80130a1de
Merge pull request #1150 from A-UNDERSCORE-D/enhancement/ast-lang-update
Added AST based LANG translation string detection
2021-06-07 12:01:55 +01:00
A_D
6b7cb2a366
Fixed overindented titles 2021-06-07 12:54:01 +02:00
A_D
2fb47377a3
Added comments 2021-06-07 12:43:22 +02:00