Louis
723cf9e805
Language errors are now added to song errors
9 years ago
Louis
53fe796421
[examples] Fix and improve test examples
9 years ago
Louis
e596013ed3
Fix bug: line number appeard twice in error message
9 years ago
Louis
c6e04372c1
"Illegal character in directive" now added to song errors
9 years ago
Louis
0af000e49d
More verbose exception
9 years ago
Louis
86833febf1
[chordpro] Lexer errors are added to the songbook errors
9 years ago
Louis
e1ab8daa7f
Turn an error into a warning
9 years ago
Louis
98c284975a
pylint
9 years ago
Louis
ab5aa859d3
Merge branch 'master' into errors
9 years ago
Louis
1d2a285536
Errors are correctly gathered from content items
9 years ago
Louis
b1b38cc77d
[test] Skip `errors` tests if there is not any
9 years ago
Louis
ad1c9f7157
[content/include] Include files must be in the `songs` directory
9 years ago
Louis
d5e330ee18
Correct bug: `cwd` did not work as expected
9 years ago
Louis
8b7d99af72
[test] Create test for content plugins
9 years ago
Louis
d184f037fc
[WIP] Content errors are now gathered
* Rename `patacrep.content.Content` to `patacrep.content.ContentItem`
* Create pseudo-list `patacrep.content.ContentList`, which has an
`errors` attribute.
* Songs that cannot be parsed at all no longer produce an empty song.
This is highly work in progress: most of the `patacrep.content.*`
packages are broken.
9 years ago
Louis
c1a871b549
Merge pull request #183 from patacrep/yaml_for_songbook
Yaml for songbook (WIP)
9 years ago
Oliverpool
720d7a7f08
Convert test songbooks to YAML
Using http://www.json2yaml.com/
9 years ago
Oliverpool
2e70273d93
[pylint] Rewrite 'not xxx in' into 'xxx not in'
9 years ago
Oliverpool
0176cf8720
Fix other import orders
9 years ago
Oliverpool
2d6298c301
[pylint] Correct import order
9 years ago
Oliverpool
7556c99703
Replace json parser by yaml
9 years ago
Oliverpool
77c491dcc4
Add pyyaml dependency
9 years ago
Louis
d40fd9bb15
[song.chordpro] Catch fatal syntax error when a block is not closed
9 years ago
Louis
61a3df1f11
Replace LOGGER.error by LOGGER.warning for catchable errors
9 years ago
Louis
362c6b87ce
Song errors contain a reference to the song they occur in
9 years ago
Louis
5d68bd338f
pylint
9 years ago
Louis
0ae923be3b
Gather songbook errors
9 years ago
Louis
8c86f904cd
Errors that can be ignored are logged as warnings
9 years ago
Louis
efc87a7c8c
Remove `object` superclass (necessary in python2, useless in python3)
9 years ago
Louis
d654dbf2b2
[test] Simplify `logging_reduced` function
9 years ago
Louis
e9004f5ce8
Merge pull request #179 from patacrep/content_improve
Content tests and improvements
9 years ago
Oliverpool
1a54b29233
Merge disable_logging and logging_reduced
9 years ago
Oliverpool
903bad9ff2
(pylint) missing docstring
9 years ago
Oliverpool
3790bc979b
Correct typo and improve flexibility
9 years ago
Oliverpool
a1c41f4333
Reduce logging for test_content
9 years ago
Oliverpool
03afd62d4a
Support starting with python 3.4
9 years ago
Oliverpool
93c0c8844c
Prepare for recursivity on filename content
9 years ago
oliverpool
72e3c202b9
Merge pull request #169 from patacrep/lilypond_compiler
Test for lilypond compiler before starting compilation
9 years ago
Louis
0ebf52a9c9
More precise exception handling
9 years ago
Louis
bb707a866b
`super()` arguments are useless with Python3
9 years ago
Oliverpool
36df563835
Check that cwd is reversed after use
9 years ago
Oliverpool
8d6661f9dc
Correct path verification for windows
9 years ago
Oliverpool
2b06236076
Add LaTeX content test
9 years ago
Oliverpool
6c46368d31
Add SongSection tests
9 years ago
Oliverpool
1c47a23e57
Correct starred sections and add test
9 years ago
Oliverpool
3314525d9b
Improve section content test
9 years ago
Oliverpool
ca9f542e0a
Add include test
9 years ago
Oliverpool
6135ea8c3e
Add test and correct cwd
9 years ago
Oliverpool
e562282cbc
Path must be posix for comparaison
9 years ago
Oliverpool
c7a55b5bc6
Normalize path for windows
9 years ago