changeset 2038 | a4b09789117a |
parent 2037 | 23b9c71caa70 |
child 2108 | 206066375dcb |
2037:23b9c71caa70 | 2038:a4b09789117a |
---|---|
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 $ type flake8 >/dev/null 2>/dev/null && hg files -0 'glob:**.py' | xargs -0 flake8 |