1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-03-28 21:16:20 +01:00

flake8: add page (#6275)

This commit is contained in:
Macklan Weinstein 2021-08-05 17:14:47 -07:00 committed by GitHub
parent e445bc5531
commit 3d7dd2169e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

20
pages/common/flake8.md Normal file
View file

@ -0,0 +1,20 @@
# flake8
> 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}}`