##// 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
#require rustfmt test-repo
$ . "$TESTDIR/helpers-testrepo.sh"
$ cd "$TESTDIR"/..
Warning: Keep this in sync with hghave.py
$ RUSTFMT=$(rustup which --toolchain nightly-2024-07-16 rustfmt)
$ for f in `testrepohg files 'glob:**/*.rs'` ; do
> $RUSTFMT --check --edition=2021 --unstable-features --color=never $f
> done