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

CI: Make local python hooks multi-platform #92697

Merged
merged 1 commit into from
Jun 3, 2024

Conversation

Repiteo
Copy link
Contributor

@Repiteo Repiteo commented Jun 2, 2024

Supersedes #90634, #90662, #92556

After more digging on trying to get to the bottom of this issue, it turns out I was just dumb. pre-commit already converts the python argument to the relevant, isolated python version! This information never cropped up for us because we just so happened to try every possible combination OTHER than: python path/to/script.py. Whoops! 🫠

By changing every python3 to python, the hooks now work as expected on every single platform. This also includes defining the default python version like #90662, the doc-status.py fix from #92556, and a few formatting tweaks to existing hooks.

@akien-mga
Copy link
Member

CC @chrisl8, could you test this one too?

@chrisl8
Copy link
Contributor

chrisl8 commented Jun 3, 2024

It works!

Tried it on Windows 11 and it works great now!

I also tried it on macOS and a couple of Linux's just for good measure. They all appear to work fine as well.

Copy link
Member

@akien-mga akien-mga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works well on Linux too.

@akien-mga akien-mga merged commit 762c1fd into godotengine:master Jun 3, 2024
16 checks passed
@akien-mga
Copy link
Member

Thanks!

@Repiteo Repiteo deleted the ci/multiplat-python-hooks branch June 3, 2024 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants