fix "make fix-code-style"

pull/10/head v0.2.0
JensDiemer 2020-10-24 19:43:54 +02:00
rodzic e4d89df388
commit aedf006556
2 zmienionych plików z 5 dodań i 3 usunięć

Wyświetl plik

@ -43,10 +43,11 @@ lint: ## Run code formatters and linter
poetry run flake8 .
fix-code-style: ## Fix code formatting
poetry run flynt --line_length=${MAX_LINE_LENGTH} .
poetry run pyupgrade --exit-zero-even-if-changed --py3-plus --py36-plus --py37-plus `find . -name "*.py" -type f -not -path "./.tox/*"`
poetry run flynt -e "volumes" --line_length=${MAX_LINE_LENGTH} .
poetry run pyupgrade --exit-zero-even-if-changed --py3-plus --py36-plus --py37-plus `find . -name "*.py" -type f ! -path "./.tox/*" ! -path "./volumes/*" 2>/dev/null`
poetry run isort .
poetry run autopep8 --aggressive --aggressive --in-place --recursive .
poetry run autopep8 --exclude="volumes,migrations" --aggressive --aggressive --in-place --recursive .
tox-listenvs: check-poetry ## List all tox test environments
poetry run tox --listenvs

Wyświetl plik

@ -7,6 +7,7 @@ class RequestDictMiddleware:
Access e.g.:
user = get_request_dict()['user']
"""
def __init__(self, get_response):
self.get_response = get_response