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

Fix cookiecuttered CI builds #61

Merged
merged 7 commits into from
Mar 28, 2025
Merged

Fix cookiecuttered CI builds #61

merged 7 commits into from
Mar 28, 2025

Conversation

mfitz
Copy link
Contributor

@mfitz mfitz commented Mar 26, 2025

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.

Screenshot 2025-03-26 at 20 42 25

After

Passing CI build, albeit using a different workflow file:

Screenshot 2025-03-26 at 20 44 38

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.

  • CHANGELOG updated
  • Tests added to cover contribution
  • Documentation updated

@@ -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",
Copy link
Contributor Author

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

@mfitz
Copy link
Contributor Author

mfitz commented Mar 27, 2025

pre-commit.ci autofix

Copy link
Contributor Author

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.

@gac55 gac55 self-requested a review March 28, 2025 09:01
@gac55 gac55 merged commit d05eb8b into main Mar 28, 2025
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CI Builds are broken
2 participants