appressoas/pythonkss

Go to definition links

Opened this issue · 0 comments

Styleguides should be able to provide source links. I propose that we should be able to provide URL patterns for each directory parsed by a styleguide. Something like:

parser = pythonkss.Parser(
    pythonkss.StyleDirectory(
        '/path/to/my/styles/',
        definition_url_pattern='https://github.com/appressoas/myproject/blob/master/my/styles/{relative_path}#L{line_number}')
)