mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-11-23 11:56:36 +11:00
Final code cleanup.
This commit is contained in:
parent
16b3f28e13
commit
9449d5d976
2 changed files with 1 additions and 2 deletions
2
Makefile
2
Makefile
|
@ -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
|
||||
|
||||
|
|
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue