Athanasius
1e3922aeff
Merge pull request #1772 from EDCD/dependabot/pip/develop/types-requests-2.28.11.6
...
build(deps-dev): bump types-requests from 2.28.11.5 to 2.28.11.6
2022-12-21 17:32:14 +00:00
dependabot[bot]
4f488e237d
build(deps-dev): bump types-requests from 2.28.11.5 to 2.28.11.6
...
Bumps [types-requests](https://github.com/python/typeshed ) from 2.28.11.5 to 2.28.11.6.
- [Release notes](https://github.com/python/typeshed/releases )
- [Commits](https://github.com/python/typeshed/commits )
---
updated-dependencies:
- dependency-name: types-requests
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-12-21 17:01:17 +00:00
Athanasius
d6c74c269d
companion: Cite endpoint in capi_single_query() logging
2022-12-21 13:41:07 +00:00
Athanasius
df384c73a1
companion: Refactor Session.close() to Session.reinit_session()
...
This way it's *never* `None`, and the type can be tightend up as well.
2022-12-21 13:36:39 +00:00
Athanasius
e65a1e6afa
companion: Have Session.close()
actually open a new one by default
...
Both current callers to this are in code paths where it is expected that
Session.requests_session will be valid later. Rather than assign a new
session at the call sites just make this by default open a new session.
2022-12-21 13:27:53 +00:00
Athanasius
2b79b89803
Contributing/Python-env: Note VSCode issue with pre-commit.
2022-12-21 13:10:01 +00:00
Athanasius
254988fd80
Contributing.md: Add 'Python Environment' section.
2022-12-21 13:05:36 +00:00
Athanasius
87b48031a0
development: Also exclude .venv/
as that's VSCode default
2022-12-21 12:30:53 +00:00
Athanasius
579c95024b
'develop only for devs': d'oh, re-allow Athan on Windows
2022-12-21 10:45:55 +00:00
Athanasius
8386487dc1
Tweak non-developer-running-develop check
...
This allows for someone running a custom branch, with working `git branch`,
even if it's an `-alpha0` version.
2022-12-20 17:58:38 +00:00
Athanasius
18dae6513d
Merge pull request #1769 from EDCD/dependabot/pip/develop/pep8-naming-0.13.3
...
build(deps-dev): bump pep8-naming from 0.13.2 to 0.13.3
2022-12-20 17:01:53 +00:00
dependabot[bot]
0abd4665ff
build(deps-dev): bump pep8-naming from 0.13.2 to 0.13.3
...
Bumps [pep8-naming](https://github.com/PyCQA/pep8-naming ) from 0.13.2 to 0.13.3.
- [Release notes](https://github.com/PyCQA/pep8-naming/releases )
- [Changelog](https://github.com/PyCQA/pep8-naming/blob/main/CHANGELOG.rst )
- [Commits](https://github.com/PyCQA/pep8-naming/compare/0.13.2...0.13.3 )
---
updated-dependencies:
- dependency-name: pep8-naming
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-12-20 17:00:54 +00:00
Athanasius
8db61dc76c
requirements-dev: Add pre-commit==2.20.0
2022-12-20 16:55:57 +00:00
Athanasius
868c1d8e57
docs: Fix up references to setup.py to be to Build-exe-and-msi.py
2022-12-20 16:51:58 +00:00
Athanasius
8591dfee8a
Merge pull request #1767 from EDCD/dependabot/pip/develop/isort-5.11.3
...
build(deps-dev): bump isort from 5.11.2 to 5.11.3
2022-12-20 11:58:08 +00:00
dependabot[bot]
46083054a0
build(deps-dev): bump isort from 5.11.2 to 5.11.3
...
Bumps [isort](https://github.com/pycqa/isort ) from 5.11.2 to 5.11.3.
- [Release notes](https://github.com/pycqa/isort/releases )
- [Changelog](https://github.com/PyCQA/isort/blob/main/CHANGELOG.md )
- [Commits](https://github.com/pycqa/isort/compare/5.11.2...5.11.3 )
---
updated-dependencies:
- dependency-name: isort
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-12-19 17:01:32 +00:00
Athanasius
a729d4d500
docs/Releasing: Always run ./coriolis.py for a build
2022-12-19 12:32:04 +00:00
Athanasius
ea808bb020
Merge pull request #1766 from EDCD/submodule-change/3731276373
...
[Auto-generated] Submodule Updates 3731276373
2022-12-19 12:26:33 +00:00
github-actions
18b54ee559
updating submodules
2022-12-19 12:12:10 +00:00
Athanasius
a9695aa1ee
github/submodule-update: Direct actions/checkout to use develop
2022-12-18 13:10:45 +00:00
Athanasius
ceed5886a8
github/submodule-update: Disable push/develop trigger
2022-12-17 13:02:48 +00:00
Athanasius
6ec68c5034
github/submodule-update: Reference env
as a context thing.
2022-12-17 12:59:20 +00:00
Athanasius
f27d0bf74d
github/submodule-update: Tweak reference to PR_AGAINST_BRANCH
2022-12-17 12:56:11 +00:00
Athanasius
7bffb1fa3b
FDevIDs: reset back to before recent commits for workflow testing
2022-12-17 12:53:38 +00:00
Athanasius
c3100b1fd5
github/submodule-update: Also run on develop
pushes
2022-12-17 12:50:48 +00:00
Athanasius
273962e679
github/submodule-update: Move back to using our defined env
...
We need to run against `develop`, even when on `main` using a cron, so
actually use the environment vars we define.
2022-12-17 12:50:13 +00:00
Athanasius
414f9d8dae
github/submodule-update: Use single 0
in cron spec
...
Just in case that `00` was the issue. It ran fine with `10 * * * *`.
2022-12-17 12:50:12 +00:00
Athanasius
06d83399c0
Revert "github/submodule-update: Run *every* hour for test purposes"
...
This reverts commit ee1c739ee15208980ea0554e9b172b614ec18869.
2022-12-17 12:50:11 +00:00
Athanasius
de16284b25
github/submodule-update: Run *every* hour for test purposes
2022-12-17 12:50:11 +00:00
Athanasius
70a9c7d8ab
github/submodule-update: Run every day at mid-day.
2022-12-17 11:30:56 +00:00
Athanasius
640223472b
github/submodule-update: Remove unused 'Add labels' step
...
1. This was commented out.
2. It's not necessarily up to date with what *works*, so just delete it.
2022-12-17 11:26:51 +00:00
Athanasius
8fab1fa811
github/submodule-update: Make better branch names
2022-12-17 11:25:16 +00:00
Athanasius
130bda0cc9
github/submodule-update: Try to use git status
output in PR body
2022-12-17 11:21:03 +00:00
Athanasius
424e9754b1
github/submodule-update: Let's try github
contexts
2022-12-17 11:14:18 +00:00
Athanasius
a68c23e525
github/submodule-update: Fix process.env syntax ?
2022-12-17 09:59:17 +00:00
Athanasius
8831d15220
github/submodule-update: Switch to process.env
for owner, repo, base
2022-12-17 09:56:40 +00:00
Athanasius
e0f6f35311
github/submodule-update: Change to secrets.GITHUB_TOKEN
...
That works in the windows-build.yml workflow.
2022-12-17 09:48:21 +00:00
Athanasius
acbb8b2294
github/submodule-update: Switch to 'environment' style
...
As per <https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#setting-an-output-parameter >
2022-12-17 09:42:22 +00:00
Athanasius
ede69a9012
github/submodule-update: steps.check_for_changes condition not working
...
* Now I'm guessing at what the syntax needs to be, but the bare
`steps.check_for_changes.outputs.changes` results in it being considerd
`null` for the check.
2022-12-17 09:34:33 +00:00
Athanasius
859fe81d71
github/submodule-update: Ensure exit 0
on the update check
...
I *think* the `exit 0` is to ensure the 'Check for changes' isn't considered
failed due to `git` exit code.
2022-12-16 17:27:13 +00:00
Athanasius
3e0da4b537
github/submodule-update: Needs an 'else' to actually work
...
* Somehow this had been left in a state where it would always signal
"no changes".
2022-12-16 17:24:11 +00:00
Athanasius
cfbce496c5
Merge pull request #1759 from EDCD/enhancement/1714/capi-killswitches
...
companion: A start on adding CAPI killswitches
2022-12-16 16:01:10 +00:00
Athanasius
5070c3686f
companion.Session: Don't double-initaliase requests_session
...
I forgot to remove the `requests.Session()` call in `start_frontier_auth()`.
And upon removing that we need a `None` trap to make mypy happy.
2022-12-16 15:40:48 +00:00
Athanasius
729016cf38
companion.py: Fix exception type & initialise a requests_session
...
* Use `Exception` not `BaseException` for `EDMCCAPIFailedRequest.exception`.
* Initialise Auth.request_session in its `__init__()`. This *should* fix
#1727 - as there'll then be no way for a `Session` to have methods invoked
without this set up.
2022-12-16 15:35:59 +00:00
Athanasius
ba68397b3f
CAPI killswitches: endpoint killswitches & eddn export ones too
...
* Added `capi.request.<endpoint>` killswitches at appropriate call points.
* Added `eddn.capi_export.<type>` killswitches. This allows for killing
just the EDDN export of such CAPI-derived data, without stopping the actual
queries, as other plugins/functionality might still have harmless use of
the data.
* PLUGINS.md: Actually describe the contents of `data` passed to plugins, and
point out it might not always contain market or shipyard data. This is
not only because of the new killswitches, but could already have happened
if the station/port docked at didn't have the services.
* Some misc typing cleanups.
2022-12-16 15:06:01 +00:00
Athanasius
1cc4a9d0af
CAPI killswitches: 'capi.auth' now preventing all CAPI actions.
2022-12-16 14:17:00 +00:00
Athanasius
12ee3deb59
killswitches: Implement --killswitches-file
CL arg
...
* New CL arge `--killswitches-file`. This needs to reference a file either
with an absolute path, or relative to the CWD of the process.
* Internally if the argument is provided it is prefixed with `"file:"` in
order to actually be loaded. This is because `requests` doesn't have an
adapter for `file:` URLs.
* Also fixes a visual bug with reporting of active killswitches. The entire
SingleKill object was used instead of just its `reason` property. mypy
type checks caught this.
2022-12-16 14:02:59 +00:00
Athanasius
f1b2022aa2
.mypy.ini: s/-/_/g on check-untyped-defs
2022-12-16 13:27:21 +00:00
Athanasius
98527e7aa0
pre-commit: Bump mypy to current latest version
...
* The older version didn't like `check_untyped_defs = True` in .mypy.ini.
* Trying `-repo: local` lead to an error about config options.
* We really need a way to have this track the non-pre-commit version of mypy.
2022-12-16 13:24:50 +00:00
Athanasius
f789ad6e24
companion: A start on adding CAPI killswitches
2022-12-16 13:22:30 +00:00