Final code cleanup.

This commit is contained in:
Martin Mahner 2019-12-08 19:44:07 +01:00
parent 16b3f28e13
commit 9449d5d976
2 changed files with 1 additions and 2 deletions

View file

@ -17,7 +17,7 @@ test: ## Run Django tests
.PHONY: code-cleanup
code-cleanup: ## Black and isort the Python codebase
autoflake --remove-all-unused-imports --ignore-init-module-imports --remove-unused-variables \
--exclude "**/migrations/*,dpaste/settings/local.py" -r dpaste
--in-place --exclude "**/migrations/*,dpaste/settings/local.py" -r dpaste
isort -rc dpaste
black --line-length=80 --exclude='/(migrations)/' dpaste

View file

@ -165,7 +165,6 @@ class dpasteAppConfig(AppConfig):
...
"""
from dpaste.highlight import PlainCodeHighlighter
from jsx.lexer import JsxLexer
return [
(self.PLAIN_CODE_SYMBOL, "Plain Code", PlainCodeHighlighter),