flake8-leading-blank-lines A flake8 plugin to detect blank lines at the start of a file Installation Install the plugin with pip: pip install flake8-leading-blank-lines Then use the LBL001 error code in your flake8 configuration: select=LBL001 Enjoy, I guess!