-
Notifications
You must be signed in to change notification settings - Fork 755
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
Run cargo fmt in CI #1111
Run cargo fmt in CI #1111
Conversation
81313b8
to
b00e275
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK b00e275de0bbe2ebb12ab59e4fb99ac3ce5b1fe4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 7d603fac2df9d8699168db8164e8fcfebc31693a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks buggy.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 7d603fac2df9d8699168db8164e8fcfebc31693a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 7d603fa
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 83cd37c61d11c6dc91f6ba3deaad71b7cbb10c39
I ran |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK ac62fa7cc6fd32d4b417fda9159cad06431e735d
You know it might actually be better to hold off on merging this until we have stopped ignoring submodules, that way when we are moving things around we can move them in a separate commit to formatting them and still have every commit pass CI. |
I think, no matter what we'll have to adjust the ignore rules while moving stuff. Enforcing it in CI, vs on people's local machines (where I believe some contributors have configured their editors to auto-mangle code according to rustfmt) doesn't seem to make a lot of difference. |
I had to laugh at this one :) |
ac62fa7
to
570b1c9
Compare
Changes in force push:
|
Draft till #1533 goes in |
Needs rebase, then let's gooooo. |
The `fn_args_layout` rustfmt option was recently changed to `fn_params_layout`, use the new name.
Various formatting issues have crept into the codebase because we do not run the formatter in CI. In preparation for enabling formatting checks in CI run `cargo +nightly fmt` to fix current formatting issues. No changes other than those create by the formatter.
Benchmarking requires a non-stable toolchain not a nightly toolchain i.e., includes beta. Improve the error output to indicate as such.
cc687d4
to
65eee20
Compare
Rebased and re-did |
This only enables the formatter in CI for bitcoin, not the other crates. Is that intentional? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 65eee20c53593763b2b8953a49a7ae752c571322
Enable formatting in CI by doing: - Add a section to the `test.sh` scripts to run the formatter (guarded by the env variable `DO_FMT`) for all crates (bitcoin, hashes, internals). - Add `DO_FMT` to the nightly `Tests` CI job.
Now that we use `cargo fmt`, update the section in the contributing documentation.
To save devs getting frustrated by CI; add a call to `cargo +nightly fmt` to our git pre-commit hook.
65eee20
to
2d6467f
Compare
Not intentional, my mistake. Fixed and force pushed. FTR we still ignore Thanks |
Looks good -- though we're still not covering |
Is this the only 0.30.0 blockcing PR? |
Please see #1699 for release blocking PRs |
Sure we are, its in
I'm not comfortable doing that for this PR because currently the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 2d6467f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 2d6467f
We have an old ACK from Kix and we've merged everything we wanted to merge before this. I'm gonna do it. |
bfd401c bitcoin_hashes: add CHANgELOG (Andrew Poelstra) d1b7b54 bump bitcoin-hashes version to 0.12 (Andrew Poelstra) Pull request description: It was a little tricky to bump the version number because of #1553. There are a couple other things I considered trying, which maybe we'll do for future releases, but I believe this works for now. Maybe should wait for #1111. ACKs for top commit: tcharding: ACK bfd401c sanket1729: utACK bfd401c. ChangeLog looks good to me, did not review whether all noteworthy changes were included. Tree-SHA512: d2104fc93e364415ae955e8123e6087c1eaa4c955aeaf4647ead051a223563326f66c0e278d68f64335e22c9d0af9b296dc3b744cd9d82d206844461fe7bf9c9
ffee8ad Bump version to v0.30.0 (Tobin C. Harding) Pull request description: Add changelog notes and bump the version number to v0.30.0. ## TODO - pre-merge - [x] Release `bitcoin_hashes` 0.12: #1694 - [x] Release secp 0.27: rust-bitcoin/rust-secp256k1#588 - rust-bitcoin/rust-secp256k1#590 - [x] Update `secp256k1` dependency to use newly released v0.27: #1714 - [x] Merge - ~#1696 - #1695 - #1111 - [x] If time permits merge these: - #1710 - #1705 - #1713 - [x] Set the release date in changelog header - [x] And merge these: - #1721 - #1720 - #1719 - #1717 ## TODO - post release - [ ] Release the blogpost: rust-bitcoin/www.rust-bitcoin.org#2 - ~Set the date in the blog post to match the date 0.30 is released~ ACKs for top commit: sanket1729: reACK ffee8ad Kixunil: ACK ffee8ad apoelstra: ACK ffee8ad Tree-SHA512: b0ea113ee1726fd9b263d0e01fe14bd544c007c05a9ac43b6c2d4edbeef3bb3ad456b061ef086626e1e1b27a0cda49cb6bc28aac3ad1691d72ffe00400ed5b45
Run the formatter in CI so we stop continually introducing formatting problems in the code that is currently supposed to be formatted.