flake8

Tool to check the style and quality of Python code. More information: <https://flake8.pycqa.org/>.

Install

All systems
curl cmd.cat/flake8.sh
Debian Debian
apt-get install flake8
Ubuntu
apt-get install flake8
Alpine
apk add flake8
Arch Arch Linux
pacman -S flake8
image/svg+xml Kali Linux
apt-get install flake8
Fedora
dnf install flake8
Windows (WSL2)
sudo apt-get update sudo apt-get install flake8
OS X
brew install flake8
Raspbian
apt-get install flake8
Docker
docker run cmd.cat/flake8 flake8 powered by Commando

Tool to check the style and quality of Python code. More information: <https://flake8.pycqa.org/>.

  • Lint a file or directory recursively:
    flake8 path/to/file_or_directory
  • Lint a file or directory recursively and show the line on which each error occurred:
    flake8 --show-source path/to/file_or_directory
  • Lint a file or directory recursively and ignore a list of rules. (All available rules can be found at flake8rules.com):
    flake8 --ignore rule1,rule2 path/to/file_or_directory
  • Lint a file or directory recursively but exclude files matching the given globs or substrings:
    flake8 --exclude substring1,glob2 path/to/file_or_directory

© tl;dr; authors and contributors