From 3d7dd2169eab7ae94313485554334e4d8849bc66 Mon Sep 17 00:00:00 2001 From: Macklan Weinstein Date: Thu, 5 Aug 2021 17:14:47 -0700 Subject: [PATCH] flake8: add page (#6275) --- pages/common/flake8.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pages/common/flake8.md diff --git a/pages/common/flake8.md b/pages/common/flake8.md new file mode 100644 index 000000000..3cdcf5dde --- /dev/null +++ b/pages/common/flake8.md @@ -0,0 +1,20 @@ +# flake8 + +> Tool to check the style and quality of Python code. +> More information: . + +- 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}}`