keewis / blackdoc

run black on documentation code snippets
https://blackdoc.readthedocs.io
MIT License
47 stars 4 forks source link

Refactor test data #58

Closed keewis closed 3 years ago

keewis commented 3 years ago

The test data has been quite tedious to work with, requiring the one changing it to manually check it. This adds a CLI utility which checks that the line ranges don't overlap and print a visual summary of the data. Additionally, ranges and labels were joined into a dict, which makes it much easier to edit.