Skip to content

fix fmt version default - #285

Merged
maxistheacrl merged 1 commit into
mainfrom
max/fmt-version
Nov 18, 2026
Merged

maxistheacrl merged 1 commit into
mainfrom
max/fmt-version

Conversation

@maxistheacrl

Copy link
Copy Markdown
Contributor

Description and Rationale

currently precommit fails with an uninformative error if you dont have RUST_NIGHTLY_VERSION set, because scripts/fmt needs it. I added a default here so it will tell you to install it, I also added direnv to gitignore because im using that to inject env variables for my neovim formatter,

How

use bash default :- to add variable, the other option here is to edit the command so that when the variable is empty it adds +nightly instead of +nightly- as it does now, that would default to the users nightly for formatting which feels a bit worse then keeping a standard, idk

Test Steps

I used it

Other Notes

Added .direnv
and set precommit yaml to default to the system node version, I was having some issues with it complaining with an unset version. but im happy to remove that if need be

  • [ x] I certify that this PR does not contain any code that has been generated with GitHub Copilot or any other AI-based code generation tool, in accordance with this project's policies.

@codecov

codecov Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.60%. Comparing base (2f99902) to head (ebe1329).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #285      +/-   ##
==========================================
- Coverage   79.65%   79.60%   -0.05%     
==========================================
  Files          65       65              
  Lines        4192     4192              
==========================================
- Hits         3339     3337       -2     
- Misses        853      855       +2     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@drmorr0 drmorr0 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm - can you make sure the commit message is in conventional commit format? this is probably chore:

currently precommit fails with an uninformative error if you dont have
RUST_NIGHTLY_VERSION set, because scripts/fmt needs it. I added a
default here so it will tell you to install it, I also added direnv to
gitignore because im using that to inject env variables for my neovim
formatter,
@maxistheacrl

Copy link
Copy Markdown
Contributor Author

lgtm - can you make sure the commit message is in conventional commit format? this is probably chore:

chore not CI?

@drmorr0

drmorr0 commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

lgtm - can you make sure the commit message is in conventional commit format? this is probably chore:

chore not CI?

I mean I feel like this is more about "fixing your local system so it matches what happens in CI" which feels more "chore-ish" to me, but either one works.

Copy link
Copy Markdown
Contributor Author

yes agreed, I do change the default for the fmt script which could technecally affect ci but I agree, especially because if it was going to affect it it would already be failing

@maxistheacrl
maxistheacrl merged commit 052c509 into main Nov 18, 2026
7 checks passed
@maxistheacrl
maxistheacrl deleted the max/fmt-version branch November 18, 2026 22:48
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.

2 participants