Replies: 2 comments 3 replies
-
|
It sounds good to me, I'm all for these kinds of additions. Just to be transparent, I'm looking to leave some tasks to contributors, in particular, everything that has to do with customization and support for individual workflows. I'll stay active as a maintainer to get these kinds of contributions merged of course. But I maintain dozens of repositories on top of work so I have to draw a line regarding the workload I take on myself, as I'm sure you'll understand. |
Beta Was this translation helpful? Give feedback.
3 replies
-
|
I guess we can close this thread in favour of the issue you opened: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, our project uses godot-gdscript-toolkit via pre-commit. We have a block like the following in
.pre-commit-config.yamlin our repository:and
pre-committakes care of installing the necessary tools and running them whenever one commits.The way this works is that https://github.com/Scony/godot-gdscript-toolkit/ contains a
.pre-commit-hooks.yamlfile which defines the available tools and how to install them. pre-commit has specific support for python modules as hooks.It also has support for rust hooks but this works by installing them with cargo. I was curious how this is done for
ruff, which is a formatter for Python code written in Rust. To my slight surprise https://github.com/astral-sh/ruff-pre-commit defines a Python (not Rust!) module, which depends on theruffPython package – which is of course a Rust program in a Python's clothing. And because they publish binary wheels for all major platforms, this means you can installruffwithout having a Rust compiler...There's also a
systemhook type which just relies on the relevant command being installed on the system. That might be OK as a starting point.Beta Was this translation helpful? Give feedback.
All reactions