From 3ce33272ba1e4b94020d4efd7e0e08a6173bfc70 Mon Sep 17 00:00:00 2001 From: Shlomi Fish Date: Thu, 12 Nov 2020 12:52:53 +0200 Subject: [PATCH] reformat and fix trailing-space test --- pysollib/ui/tktile/svg.py | 8 +++++++- tests/style/style-trailing-space.t | 6 +++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/pysollib/ui/tktile/svg.py b/pysollib/ui/tktile/svg.py index 2d2b4e01..08f095ee 100644 --- a/pysollib/ui/tktile/svg.py +++ b/pysollib/ui/tktile/svg.py @@ -29,7 +29,13 @@ class SVGManager: self.filename = filename # self.svg = Rsvg.Handle().new_from_file(filename) self.d = MyKCardDeck( - os.path.basename(os.getenv("PYSOL_SVG_THEME", "svg-jolly-royal"))) + os.path.basename( + os.getenv( + "PYSOL_SVG_THEME", + "svg-jolly-royal" + ) + ) + ) # Taken from https://stackoverflow.com/questions/44471795 # Under MIT License - thanks. diff --git a/tests/style/style-trailing-space.t b/tests/style/style-trailing-space.t index 63deb7bb..1c79ffac 100644 --- a/tests/style/style-trailing-space.t +++ b/tests/style/style-trailing-space.t @@ -17,12 +17,12 @@ else my $finder = Test::TrailingSpace->new( { - root => '.', - filename_regex => + abs_path_prune_re => qr# kcardgame[/\\](?:b|build-kpat)(?:\z|/|\\) #msx, + root => '.', + filename_regex => qr/(?:(?:\.(?:bash|sh|t|pm|pl|PL|yml|json|arc|vim|html|py|tcl|xhtml))|README(?:[\.\w]*)|Changes|LICENSE|MANIFEST(?:\.in)?|AUTHORS|COPYING)\z/, }, ); # TEST $finder->no_trailing_space("No trailing space was found."); -