-
Notifications
You must be signed in to change notification settings - Fork 6
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
Fix cookiecuttered CI builds #61
Conversation
@@ -13,13 +13,16 @@ | |||
"package_name": "osmox", | |||
"module_name": "osmox", | |||
"project_short_description": "A tool for extracting locations and features from OpenStreetMap (OSM) data.", | |||
"upload_pypi_package": "y", | |||
"project_visibility": "public", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we don't tell cruft that the repo is public, cruft update
fails with:
ERROR: 'internal' projects must set the `conda_channel` to: https://packages.arup.com/conda.
Stopping generation because pre_gen_project hook script didn't exit successfully
pre-commit.ci autofix |
for more information, see https://pre-commit.ci
src/osmox/build.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From here on down, these are linting changes made automatically by pre-commit.ci
.
…osmox into fix-cookiecuttered-ci-builds
Changelog not updated; this is not a user-facing change.
I used
cruft update
to pull in the latest versions of the cookie-cutter managed workflows.Some of the changes are not related to the cookie-cutter template. When we updated this repo to the latest version of the template (that's essentially what this PR is about), an additional
pre-commit.ci
check was introduced that does a bunch of linting on the code. It blew up with a bunch of complaints about missing dosctrings, unused imports, etc. You can instruct the tool to autofix all of the lining errors, which I did with this comment. The tool then made this commit to fix all of the lining errors it identified.Before
Broken (daily) CI build caused by an invalid workflow file.
After
Passing CI build, albeit using a different workflow file:
Checklist
Any checks which are not relevant to the PR can be pre-checked by the PR creator.
All others should be checked by the reviewer(s).
You can add extra checklist items here if required by the PR.