Replace flake8 with autoflake
`autoflake` automatically fixes the code while `flake8` just report it. - [x] Replace `flake8` with `autoflake` pre-commit hook - [x] CI: run `autoflake` instead of `flake8`.
issue