1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/flake8.md
Vitor Henrique c8f956319f
pages*: simplify page description (#12149)
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2024-02-14 21:25:13 +01:00

20 lines
685 B
Markdown

# flake8
> 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}}`