1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-09-05 19:13:58 +02:00
tldr/pages/common/flake8.md
Managor 326bd08c31
*: use a more specific more info link, com domain (#17694)
Updated more information links with more specific URL
2025-08-16 11:21:31 -07:00

731 B

flake8

Check the style and quality of Python code. More information: https://flake8.pycqa.org/en/latest/user/options.html.

  • 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}}

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}}