-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Added cargo dev setup git-hook
and updated cargo dev setup intellij
including a remove
command
#7361
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
Conversation
r? @giraffate (rust-highfive has picked a reviewer for you, use r? to override) |
How much work would it be to add a |
Well, not much I believe, but I haven't looked into it, as I don't use IntelliJ. I also plan to add |
That would be great! If you find that it would be too much work for this PR, let me know and I'll review it in the current state. |
cargo dev setup git-hook
and changed cargo dev ide_setup
to cargo dev setup intellij
cargo dev setup git-hook
and changed cargo dev ide_setup
to cargo dev setup intellij
Converted to draft until I've reviewed the work required to undo the IntelliJ setup command. The current version should still be fully working. |
I've looked into adding the
I want to fix them as well, I guess that this will be about 150 additional changes. |
0fd01ba
to
bbf7bed
Compare
I'm not done yet, this commit only cleans up some message and makes the setup more expandable. The rest of the work should still be reasonably straight forward. 🙃 |
4d10e4d
to
4ce37d9
Compare
Okay, I've updated the dev tool to also include a remove command for intellij and give some nicer error messages when calling the setup command. # Inject dependencies
cargo dev setup intellij
# Remove dependencies again
cargo dev remove intellij I was debating if it should be renamed to something like |
cargo dev setup git-hook
and changed cargo dev ide_setup
to cargo dev setup intellij
cargo dev setup git-hook
and updated cargo dev setup intellij
including a remove
command
Code LGTM now. I'll give those commands a try locally and then this should be good to merge. |
Co-authored-by: Philipp Krones <[email protected]>
21e2f71
to
8e969cd
Compare
Rebased and good to merge. Thanks, great work! @bors r+ |
📌 Commit 8e969cd has been approved by |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
You're welcome! I plan to also add a setup to add vs-code tasks to compile and test Clippy. Could you check the git-hook suggestion in the linked ticket as that has been implemented in this PR #5394. Was there a reason for the rebase? 😅 (just interested :)) |
I had to rebase locally anyway (since this branch still used the old nightly), so I figured, why not push it. I don't think this was necessary though. I checked it off in #5394 |
Ahh makes sense. Thank you :) |
This PR enables our dev tool to install a git hook that formats the code before each commit and also runs
update_lints
to make sure that everything is registered correctly. The script is located atutil/etc/pre-commit.sh
. I found it reasonable to locate it in theutil
folder and decided to add aetc
in correlation to the main rust repo and to bring a bit of structure into it.cargo dev setup git-hook
cargo dev remove git-hook
cc: #5394
The refactoring of
src/ide_setup.rs
tosrc/setup/intellij.rs
is an extra commit to simplify the review.Changes:
cargo dev setup git-hook
for formatting before every commitcargo dev remove git-hook
to remove the hook againcargo dev remove intellij
to remove rustc source path dependenciescargo dev ide_setup
tocargo dev setup intellij
changelog: none
This is only an internal change and therefore not worth an entry in the general change log.
Tested on: