Command-line tool
flake8
brew/flake8
Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev
Lint your Python code for style and logical errors
At a glance
- Type
- Command-line tool
- Install on
- Windows, macOS, Linux
- Last checked
- 25 Oct 2026, 21:09 UTC
Install it
Windows
pipx install flake8
macOS
brew install flake8 pipx install flake8
Linux
pipx install flake8
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 <https://www.flake8rules.com/>)
flake8 --ignore rule1,rule2,... path/to/file_or_directory
Related command-line tools
- pycodestyle
Simple Python style checker in one Python file - pylint
It's not just a linter that annoys you! - gitlint
Linting for your git commit messages - standard
JavaScript Style Guide, with linter & automatic code fixer - xo
JavaScript/TypeScript linter (ESLint wrapper) with great defaults cli-app cli xoxo happy happiness code quality style… - pint
Prometheus rule linter/validator - libxo
Allows an application to generate text, XML, JSON, and HTML output - quick-lint-js
Find bugs in your JavaScript code javascript static-analysis js linter syntax lint code-quality linting 语法 errors…
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents