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)