Mercurial > evolve
comparison tests/test-check-flake8.t @ 6866:cfad86381358 stable
tests: use testrepohg in test-check-flake8.t
testrepohg is required if you want it to read ~/.hgrc. Important if the CI user
is not root, but needs to trust root hgrc files.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Fri, 02 Aug 2024 16:29:10 +0400 |
parents | 39bc93749027 |
children |
comparison
equal
deleted
inserted
replaced
6865:8cb7c24fb564 | 6866:cfad86381358 |
---|---|
1 #require test-repo flake8 | 1 #require test-repo flake8 |
2 | |
3 $ . "$RUNTESTDIR/helpers-testrepo.sh" | |
2 | 4 |
3 Copied from Mercurial core (60ee2593a270) | 5 Copied from Mercurial core (60ee2593a270) |
4 | 6 |
5 $ cd "`dirname "$TESTDIR"`" | 7 $ cd "`dirname "$TESTDIR"`" |
6 | 8 |
7 run flake8 on all tracked files ending in .py or with a python shebang | 9 run flake8 on all tracked files ending in .py or with a python shebang |
8 | 10 |
9 $ hg files -0 'set:(**.py or grep("^#!.*python")) - removed()' \ | 11 $ testrepohg files -0 'set:(**.py or grep("^#!.*python")) - removed()' \ |
10 > -X hgext3rd/evolve/thirdparty \ | 12 > -X hgext3rd/evolve/thirdparty \ |
11 > 2>/dev/null \ | 13 > 2>/dev/null \ |
12 > | xargs -0 "$PYTHON" -m flake8 | 14 > | xargs -0 "$PYTHON" -m flake8 |