Mercurial > evolve
annotate tests/test-check-flake8.t @ 3870:e0bf44befd6e
evolve: exclude "identical" precursors from the precursors set
I'm not sure it is the right thing to do, but it simply thing a lot for now.
Otherwise, using 'precursors' to find rewind direction become too complex.
This is going to give problematic result in case of prune. Since there are no
other precursors to follow.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Sun, 17 Jun 2018 03:29:34 +0200 |
parents | b3dbba6e34c9 |
children | f354de498737 |
rev | line source |
---|---|
2038
a4b09789117a
tests: split pyflake and flake8 tests
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
2037
diff
changeset
|
1 #require test-repo |
a4b09789117a
tests: split pyflake and flake8 tests
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
2037
diff
changeset
|
2 |
a4b09789117a
tests: split pyflake and flake8 tests
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
2037
diff
changeset
|
3 $ checkflake8() { |
a4b09789117a
tests: split pyflake and flake8 tests
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
2037
diff
changeset
|
4 > if ! (which flake8 > /dev/null); then |
a4b09789117a
tests: split pyflake and flake8 tests
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
2037
diff
changeset
|
5 > echo skipped: missing tool: flake8; |
a4b09789117a
tests: split pyflake and flake8 tests
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
2037
diff
changeset
|
6 > exit 80; |
a4b09789117a
tests: split pyflake and flake8 tests
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
2037
diff
changeset
|
7 > fi; |
a4b09789117a
tests: split pyflake and flake8 tests
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
2037
diff
changeset
|
8 > }; |
a4b09789117a
tests: split pyflake and flake8 tests
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
2037
diff
changeset
|
9 $ checkflake8 |
1930 | 10 |
11 Copied from Mercurial core (60ee2593a270) | |
12 | |
13 $ cd "`dirname "$TESTDIR"`" | |
14 | |
2002 | 15 run flake8 if it exists; if it doesn't, then just skip |
16 | |
3390
b3dbba6e34c9
evolve: start vendoring third party package cbor
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2121
diff
changeset
|
17 $ hg files -0 'set:(**.py or grep("^#!.*python")) - removed()' \ |
b3dbba6e34c9
evolve: start vendoring third party package cbor
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2121
diff
changeset
|
18 > -X hgext3rd/evolve/thirdparty \ |
b3dbba6e34c9
evolve: start vendoring third party package cbor
Pulkit Goyal <7895pulkit@gmail.com>
parents:
2121
diff
changeset
|
19 > 2>/dev/null \ |
2108
206066375dcb
checks: update pyflakes matching too
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
2038
diff
changeset
|
20 > | xargs -0 flake8 |