From 5fb090a124fbddd094b5802449c90c97a1192665 Mon Sep 17 00:00:00 2001 From: Louis Date: Fri, 6 May 2016 23:14:22 +0200 Subject: [PATCH] pylint --- patacrep/songs/chordpro/__init__.py | 4 ++++ patacrep/songs/chordpro/syntax.py | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/patacrep/songs/chordpro/__init__.py b/patacrep/songs/chordpro/__init__.py index 1766833b..856b361f 100644 --- a/patacrep/songs/chordpro/__init__.py +++ b/patacrep/songs/chordpro/__init__.py @@ -129,6 +129,10 @@ class Chordpro2HtmlSong(ChordproSong): ) return None + @staticmethod + def _render_size(size): + return "TODO" + class Chordpro2LatexSong(ChordproSong): """Render chordpro song to latex code""" diff --git a/patacrep/songs/chordpro/syntax.py b/patacrep/songs/chordpro/syntax.py index 074caacb..e6d9ca5e 100644 --- a/patacrep/songs/chordpro/syntax.py +++ b/patacrep/songs/chordpro/syntax.py @@ -180,6 +180,7 @@ class ChordproParser(Parser): """directive : LBRACE KEYWORD directive_next RBRACE | LBRACE SPACE KEYWORD directive_next RBRACE """ + # pylint: disable=too-many-branches if len(symbols) == 5: keyword = symbols[2] argument = symbols[3] @@ -235,7 +236,10 @@ class ChordproParser(Parser): if len(splitted) > 2: self.error( line=symbols.lexer.lineno, - message="Ignoring extra arguments for image directive: " + " ".join(['"{}"'.format(arg) for arg in splitted[2:]]), + message=( + "Ignoring extra arguments for image directive: " + + " ".join(['"{}"'.format(arg) for arg in splitted[2:]]) + ), ) if len(splitted) == 1: splitted.append(None)