1
0
Fork 0
mirror of https://github.com/shlomif/PySolFC.git synced 2025-04-05 00:02:29 -04:00
This commit is contained in:
Shlomi Fish 2017-04-19 19:41:09 +03:00
parent 149496c90c
commit 891d4baeb5

View file

@ -9,39 +9,39 @@ use Test::Differences qw( eq_or_diff );
use File::Find::Object (); use File::Find::Object ();
use String::ShellQuote qw/ shell_quote /; use String::ShellQuote qw/ shell_quote /;
my %skip = my %skip = (
(
map { $_ => 1 } map { $_ => 1 }
qw( qw(
pysollib/games/__init__.py pysollib/games/__init__.py
pysollib/games/mahjongg/__init__.py pysollib/games/mahjongg/__init__.py
pysollib/games/mahjongg/mahjongg1.py pysollib/games/mahjongg/mahjongg1.py
pysollib/games/mahjongg/mahjongg2.py pysollib/games/mahjongg/mahjongg2.py
pysollib/games/mahjongg/mahjongg3.py pysollib/games/mahjongg/mahjongg3.py
pysollib/games/special/__init__.py pysollib/games/special/__init__.py
pysollib/games/ultra/__init__.py pysollib/games/ultra/__init__.py
pysollib/pysoltk.py pysollib/pysoltk.py
scripts/all_games.py scripts/all_games.py
pysollib/tile/ttk.py pysollib/tile/ttk.py
) )
); );
my $tree = File::Find::Object->new({}, '.'); my $tree = File::Find::Object->new( {}, '.' );
my @filenames; my @filenames;
while (my $r = $tree->next_obj) while ( my $r = $tree->next_obj )
{ {
my $fn = $r->path; my $fn = $r->path;
if ($fn eq '.git' or $fn eq 'tests/individually-importing') if ( $fn eq '.git' or $fn eq 'tests/individually-importing' )
{ {
$tree->prune; $tree->prune;
} }
elsif ($fn =~ /\.py\z/ and !exists($skip{$fn})) elsif ( $fn =~ /\.py\z/ and !exists( $skip{$fn} ) )
{ {
push @filenames, $fn; push @filenames, $fn;
} }
} }
my $cmd = shell_quote( 'flake8', @filenames); my $cmd = shell_quote( 'flake8', @filenames );
# diag("<$cmd>"); # diag("<$cmd>");
# TEST # TEST