branch | mercurial-4.0 |
changeset 3110 | 50be10c63825 |
parent 3109 | 3024ae293732 |
parent 3003 | ddf28837f5af |
child 3111 | 7518ff7f26da |
child 3119 | 088ea9b74e47 |
3109:3024ae293732 | 3110:50be10c63825 |
---|---|
1 #require test-repo |
|
2 |
|
3 $ checkflake8() { |
|
4 > if ! (which flake8 > /dev/null); then |
|
5 > echo skipped: missing tool: flake8; |
|
6 > exit 80; |
|
7 > fi; |
|
8 > }; |
|
9 $ checkflake8 |
|
10 |
|
11 Copied from Mercurial core (60ee2593a270) |
|
12 |
|
13 $ cd "`dirname "$TESTDIR"`" |
|
14 |
|
15 run flake8 if it exists; if it doesn't, then just skip |
|
16 |
|
17 $ hg files -0 'set:(**.py or grep("^#!.*python")) - removed()' 2>/dev/null \ |
|
18 > | xargs -0 flake8 |