test: add flake8 on test and documentation