You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my pre-commit yml file, I use both black and reorder-python-import. Black keeps placing a space between the import and the last """ while reorder-python-import removes it which yields to both hooks failing. It does not matter in which order I place the hooks in the pre-commit config file.
Typical case file:
"""
WSGI config for main project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/4.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "main.settings")
application = get_wsgi_application()
In my pre-commit yml file, I use both black and reorder-python-import. Black keeps placing a space between the import and the last """ while reorder-python-import removes it which yields to both hooks failing. It does not matter in which order I place the hooks in the pre-commit config file.
Typical case file:
Pre-commit hooks:
The text was updated successfully, but these errors were encountered: