##// END OF EJS Templates
tests: use pyflakes as a tool, not a python module...
tests: use pyflakes as a tool, not a python module The usage of pyflakes as a Python module was introduced in e397c6d74652, to work around issue between Python 2 and Python 3. This issues are long behind us now and we can get beck to using pyflakes as a tool, giving us more flexibility about how we install it. The `hghave` requirements is modified to check that we have a tool available, instead of a python module.

File last commit:

r52630:48eb5149 default
r52956:43602c67 default
Show More
test-check-rust-format.t
11 lines | 333 B | text/troff | Tads3Lexer
/ tests / test-check-rust-format.t
Gregory Szorc
tests: add test for Rust formatting...
r44271 #require rustfmt test-repo
$ . "$TESTDIR/helpers-testrepo.sh"
$ cd "$TESTDIR"/..
Raphaël Gomès
hghave: update rustfmt criterion...
r49615
Warning: Keep this in sync with hghave.py
Raphaël Gomès
hghave: update expected rustfmt version...
r52629 $ RUSTFMT=$(rustup which --toolchain nightly-2024-07-16 rustfmt)
Gregory Szorc
tests: add test for Rust formatting...
r44271 $ for f in `testrepohg files 'glob:**/*.rs'` ; do
Raphaël Gomès
rustfmt: update expected Rust edition...
r52630 > $RUSTFMT --check --edition=2021 --unstable-features --color=never $f
Gregory Szorc
tests: add test for Rust formatting...
r44271 > done