kopia lustrzana https://github.com/jedie/PyInventory
rodzic
e4d89df388
commit
aedf006556
7
Makefile
7
Makefile
|
@ -43,10 +43,11 @@ lint: ## Run code formatters and linter
|
||||||
poetry run flake8 .
|
poetry run flake8 .
|
||||||
|
|
||||||
fix-code-style: ## Fix code formatting
|
fix-code-style: ## Fix code formatting
|
||||||
poetry run flynt --line_length=${MAX_LINE_LENGTH} .
|
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 -not -path "./.tox/*"`
|
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 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
|
tox-listenvs: check-poetry ## List all tox test environments
|
||||||
poetry run tox --listenvs
|
poetry run tox --listenvs
|
||||||
|
|
|
@ -7,6 +7,7 @@ class RequestDictMiddleware:
|
||||||
Access e.g.:
|
Access e.g.:
|
||||||
user = get_request_dict()['user']
|
user = get_request_dict()['user']
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, get_response):
|
def __init__(self, get_response):
|
||||||
self.get_response = get_response
|
self.get_response = get_response
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue