mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
flake8
This commit is contained in:
parent
37c9535792
commit
31cb034400
2 changed files with 7 additions and 3 deletions
|
@ -24,20 +24,23 @@
|
||||||
__all__ = ['SelectDialogTreeData']
|
__all__ = ['SelectDialogTreeData']
|
||||||
|
|
||||||
# imports
|
# imports
|
||||||
import tkFont
|
|
||||||
|
|
||||||
# Toolkit imports
|
# Toolkit imports
|
||||||
from tktree import MfxTreeLeaf, MfxTreeNode, MfxTreeInCanvas
|
from tktree import MfxTreeLeaf, MfxTreeNode, MfxTreeInCanvas
|
||||||
|
|
||||||
from pysollib.ui.tktile.selecttree import BaseSelectDialogTreeLeaf, BaseSelectDialogTreeNode, SelectDialogTreeData, BaseSelectDialogTreeCanvas
|
from pysollib.ui.tktile.selecttree import BaseSelectDialogTreeLeaf, \
|
||||||
|
BaseSelectDialogTreeNode, SelectDialogTreeData, \
|
||||||
|
BaseSelectDialogTreeCanvas
|
||||||
|
|
||||||
# ************************************************************************
|
# ************************************************************************
|
||||||
# * Nodes
|
# * Nodes
|
||||||
# ************************************************************************
|
# ************************************************************************
|
||||||
|
|
||||||
|
|
||||||
class SelectDialogTreeLeaf(MfxTreeLeaf, BaseSelectDialogTreeLeaf):
|
class SelectDialogTreeLeaf(MfxTreeLeaf, BaseSelectDialogTreeLeaf):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class SelectDialogTreeNode(MfxTreeNode, BaseSelectDialogTreeNode):
|
class SelectDialogTreeNode(MfxTreeNode, BaseSelectDialogTreeNode):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
@ -45,5 +48,6 @@ class SelectDialogTreeNode(MfxTreeNode, BaseSelectDialogTreeNode):
|
||||||
# * Canvas that shows the tree (left side)
|
# * Canvas that shows the tree (left side)
|
||||||
# ************************************************************************
|
# ************************************************************************
|
||||||
|
|
||||||
|
|
||||||
class SelectDialogTreeCanvas(MfxTreeInCanvas, BaseSelectDialogTreeCanvas):
|
class SelectDialogTreeCanvas(MfxTreeInCanvas, BaseSelectDialogTreeCanvas):
|
||||||
pass
|
pass
|
||||||
|
|
|
@ -27,7 +27,7 @@ my %skip =
|
||||||
|
|
||||||
# my $cmd = shell_quote( 'flake8', '.' );
|
# my $cmd = shell_quote( 'flake8', '.' );
|
||||||
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-p],selectcardset,selectgame,selecttile}*.py ./pysollib/ui/tktile/*.py') );
|
grep { not exists $skip{$_} } glob('./*.py ./scripts/*.py ./tests/board_gen/*.py ./pysollib/*.py ./pysollib/[cmgpuw]*/{*/*.py,*.py} ./pysollib/tile/*.py ./pysollib/tk/{[a-p],select}*.py ./pysollib/ui/tktile/*.py') );
|
||||||
|
|
||||||
# TEST
|
# TEST
|
||||||
eq_or_diff( scalar(`$cmd`), '', "flake8 is happy with the code." );
|
eq_or_diff( scalar(`$cmd`), '', "flake8 is happy with the code." );
|
||||||
|
|
Loading…
Add table
Reference in a new issue