napari / cookiecutter-napari-plugin

Cookiecutter for napari plugins
BSD 3-Clause "New" or "Revised" License
67 stars 39 forks source link

Move flake8 checks after all hooks that could modify code #117

Closed Czaki closed 2 years ago

Czaki commented 2 years ago

Currently, flake8 hook is executed before all commits that could modify files (especially autoflake). So it may happen that there will be reported errors that are already fixed. But also errors could be reported in the wrong line (as file fixes, for example, black could change line numbers).