Minimal example of Black pre-commit hook failing to respect pyproject.toml exclude rule.
The main
branch uses black 20.8b2. The master-black
branch uses black's master
branch.
poetry install
poetry shell
pre-commit install
- Add a trailing newline to
ignored/ostensibly_ignored.py
. - Run
black check .
to verify that project files pass. - Stage the change and attempt to commit.