chrisbouchard / easyrepr

Python decorator to automatically generate repr strings

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Get linkcode URL from environment variable

chrisbouchard opened this issue · comments

Rather than hard-coding the GitHub URL, we should get that from an environment variable. We can store it as a format string with git_hash, filename, start_line, and end_line.

LINKCODE_URL_FORMAT=https://github.com/chrisbouchard/easyrepr/blob/{git_hash}/{filename}#L{start_line}-L{end_line}

On Read the Docs, we can configure environment variables for the project.

I forgot to mention this on #6 before I merged it, but this is fixed.