jazzband/django-silk

Package 'autopep8' shouldn't need to be required when installing django-silk

PabloAlexis611 opened this issue · 1 comments

Since autopep8 is purely for Python code formatting, the installation of autopep8 should be optional/maybe be provided via extras instead. Maybe something like pip install django-silk[dev]

django-silk supports generating a python snippet to refire a request -

return autopep8.fix_code(
t.render(Context(context)),
options=autopep8.parse_args(['--aggressive', '']),
)

This python snippet gets run through autopep8 so autopep8 is a runtime dependency of django-silk, not just a test dependency.