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).
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).