From d0b79131ab06c9b4f9f38606bbc97c386e98ea81 Mon Sep 17 00:00:00 2001 From: Shlomi Fish <shlomif@shlomifish.org> Date: Tue, 18 Apr 2017 22:20:01 +0300 Subject: [PATCH] flake8 - simplify glob --- tests/style/py-flake8.t | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/style/py-flake8.t b/tests/style/py-flake8.t index 6b104d68..89b75a97 100644 --- a/tests/style/py-flake8.t +++ b/tests/style/py-flake8.t @@ -27,7 +27,9 @@ my %skip = # my $cmd = shell_quote( 'flake8', '.' ); my $cmd = shell_quote( 'flake8', - grep { not exists $skip{$_} } glob('./*.py ./scripts/*.py ./tests/board_gen/*.py ./pysollib/*.py ./pysollib/[cmgpuw]*/{*/*.py,*.py} ./pysollib/tile/*.py ./pysollib/tk/{[a-sw],ta,ti,to,tkhtml,tkstats,tktree,tkwidg}*.py ./pysollib/ui/tktile/*.py') ); + sort { $a cmp $b } grep { not exists $skip{$_} } glob('./*.py ./scripts/*.py ./tests/board_gen/*.py ./pysollib/*.py ./pysollib/*/{*/*.py,*.py}') ); + +# diag("<$cmd>"); # TEST eq_or_diff( scalar(`$cmd`), '', "flake8 is happy with the code." );