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
For #9, pull request #11 added flake8 --black-config /path/to/black.toml support (also possible via your flake8 configuration file).
If this configuration is not set, the current behaviour is fine (follow black in looking for pyproject.toml and failing that, use black's defaults).
If this path is set, but the file does not exist, we should error explicitly and as early as possible:
We could introduce a validation code and raise this on every file checked instead of calling black (perhaps reuse BLK998) - but I think there ought to be a way to tell flake8 to abort gracefully:
For #9, pull request #11 added
flake8 --black-config /path/to/black.toml
support (also possible via your flake8 configuration file).If this configuration is not set, the current behaviour is fine (follow black in looking for
pyproject.toml
and failing that, use black's defaults).If this path is set, but the file does not exist, we should error explicitly and as early as possible:
We could introduce a validation code and raise this on every file checked instead of calling black (perhaps reuse
BLK998
) - but I think there ought to be a way to tell flake8 to abort gracefully:https://gitlab.com/pycqa/flake8/issues/559
The text was updated successfully, but these errors were encountered: