From c3af677cf72100d5628dd2babb02358cbb003e93 Mon Sep 17 00:00:00 2001 From: Shlomi Fish Date: Tue, 18 Apr 2017 15:20:45 +0300 Subject: [PATCH] flake8 --- pysol.py | 13 ++++++------- tests/style/py-flake8.t | 2 +- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/pysol.py b/pysol.py index 4e72096b..3006b6c6 100755 --- a/pysol.py +++ b/pysol.py @@ -20,14 +20,13 @@ # # ---------------------------------------------------------------------------## -#import pychecker.checker - -from pysollib.init import init -init() +# import pychecker.checker import sys +from pysollib.init import init from pysollib.main import main -#import profile -#profile.run("main(sys.argv)") -sys.exit(main(sys.argv)) +init() +# import profile +# profile.run("main(sys.argv)") +sys.exit(main(sys.argv)) diff --git a/tests/style/py-flake8.t b/tests/style/py-flake8.t index 32180176..83318598 100644 --- a/tests/style/py-flake8.t +++ b/tests/style/py-flake8.t @@ -26,7 +26,7 @@ my %skip = # my $cmd = shell_quote( 'flake8', '.' ); my $cmd = shell_quote( 'flake8', - grep { not exists $skip{$_} } glob('./pysollib/*.py ./pysollib/[cmpuw]*/*.py ./pysollib/tile/*.py ./pysollib/ui/tktile/*.py ./pysollib/games/*.py ./pysollib/games/*/*.py') ); + grep { not exists $skip{$_} } glob('pysol.py ./pysollib/*.py ./pysollib/[cmgpuw]*/{*/*.py,*.py} ./pysollib/tile/*.py ./pysollib/ui/tktile/*.py') ); # TEST eq_or_diff( scalar(`$cmd`), '', "flake8 is happy with the code." );