Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Python pre-commit checks; add more structure to synctiles #74

Merged
merged 19 commits into from
Dec 28, 2023

Conversation

bgilbert
Copy link
Member

Read the target S3 bucket name from the _synctiles.py command line, and in turn from the DEMO_TILER_BUCKET variable of the demo-site environment in GitHub Actions. This allows forks to test code changes on a non-production bucket.

Signed-off-by: Benjamin Gilbert <[email protected]>
Only support Python 3.12, since we only need to run on current Fedora.

Signed-off-by: Benjamin Gilbert <[email protected]>
Enable yesqa to clean up stale lint overrides.

Signed-off-by: Benjamin Gilbert <[email protected]>
Also switch from mkdtemp with manual cleanup to TemporaryDirectory.

Signed-off-by: Benjamin Gilbert <[email protected]>
Preparatory for next commit.

Signed-off-by: Benjamin Gilbert <[email protected]>
In GitHub Actions, retrieve it from the DEMO_TILER_BUCKET variable in the
demo-site environment.  This allows forks to test code changes on a
non-production bucket.

Signed-off-by: Benjamin Gilbert <[email protected]>
They have different subsets of fields.

Signed-off-by: Benjamin Gilbert <[email protected]>
If one URL is repointed to a different bucket for testing, but the other
isn't, it causes a refresh loop.  Avoid this possibility by eliminating
the redundant URL.

Signed-off-by: Benjamin Gilbert <[email protected]>
@openslide-bot
Copy link
Member

DCO signed off ✔️

All commits have been signed off. You have certified to the terms of the Developer Certificate of Origin, version 1.1. In particular, you certify that this contribution has not been developed using information obtained under a non-disclosure agreement or other license terms that forbid you from contributing it under the GNU Lesser General Public License, version 2.1.

@bgilbert bgilbert merged commit 15a4305 into openslide:main Dec 28, 2023
2 checks passed
@bgilbert bgilbert deleted the pre-commit branch December 28, 2023 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants