Hello,
On our repo, pre-commit-ci created a PR to update some of its hooks.
However, reorder-python-importsand black seem to be in conflict. One hook changes some files, and the changes are immediately reverted by the next, causing the CI to fail.
❯ pre-commit run --all-files
trim trailing whitespace.................................................Passed
fix end of files.........................................................Passed
autoflake................................................................Passed
Reorder python imports...................................................Failed
- hook id: reorder-python-imports
- exit code: 1
- files were modified by this hook
Reordering imports in app/app/urls.py
Reordering imports in app/app/wsgi.py
Reordering imports in app/app/asgi.py
Reordering imports in app/app/settings.py
black....................................................................Failed
- hook id: black
- files were modified by this hook
reformatted app/app/asgi.py
reformatted app/app/wsgi.py
reformatted app/app/urls.py
reformatted app/app/settings.py
All done! ✨ 🍰 ✨
4 files reformatted, 216 files left unchanged.
reorder-python-imports seem to be removing an empty line between the leading comment and the first imports.
Hello, On our repo, pre-commit-ci created a PR to update some of its hooks. However,
reorder-python-imports
andblack
seem to be in conflict. One hook changes some files, and the changes are immediately reverted by the next, causing the CI to fail.reorder-python-imports
seem to be removing an empty line between the leading comment and the first imports.