Lint a file or directory recursively but exclude files matching the given globs or substrings

flake8

flake8 --exclude {{substring1,glob2}} {{path/to/file_or_directory}}

click the source code to copy install flake8 on any operating system with command-not-found.com