|
6 | 6 | Usage: pep257 [options] [<file|dir>...] |
7 | 7 |
|
8 | 8 | Options: |
9 | | - --version show program's version number and exit |
10 | | - -h, --help show this help message and exit |
11 | | - -e, --explain show explanation of each error |
12 | | - -s, --source show source for each error |
13 | | - --ignore=<codes> ignore a list comma-separated error codes, for |
14 | | - example: --ignore=D101,D202 |
15 | | - --match=<pattern> check only files that exactly match <pattern> regular |
| 9 | + --version show program's version number and exit |
| 10 | + -h, --help show this help message and exit |
| 11 | + -e, --explain show explanation of each error |
| 12 | + -s, --source show source for each error |
| 13 | + --select=<codes> choose the basic list of checked errors by specifying |
| 14 | + which errors to check for (with a list of comma- |
| 15 | + separated error codes). for example: |
| 16 | + --select=D101,D202 |
| 17 | + --ignore=<codes> choose the basic list of checked errors by specifying |
| 18 | + which errors to ignore (with a list of comma-separated |
| 19 | + error codes). for example: --ignore=D101,D202 |
| 20 | + --convention=<name> choose the basic list of checked errors by specifying |
| 21 | + an existing convention. for example: |
| 22 | + --convention=pep257 |
| 23 | + --add-select=<codes> amend the list of errors to check for by specifying |
| 24 | + more error codes to check. |
| 25 | + --add-ignore=<codes> amend the list of errors to check for by specifying |
| 26 | + more error codes to ignore. |
| 27 | + --match=<pattern> check only files that exactly match <pattern> regular |
16 | 28 | expression; default is --match='(?!test_).*\.py' which |
17 | 29 | matches files that don't start with 'test_' but end |
18 | 30 | with '.py' |
19 | | - --match-dir=<pattern> |
| 31 | + --match-dir=<pattern> |
20 | 32 | search only dirs that exactly match <pattern> regular |
21 | 33 | expression; default is --match-dir='[^\.].*', which |
22 | 34 | matches all dirs that don't start with a dot |
23 | | - -d, --debug print debug information |
24 | | - -v, --verbose print status information |
25 | | - --count print total number of errors to stdout |
| 35 | + -d, --debug print debug information |
| 36 | + -v, --verbose print status information |
| 37 | + --count print total number of errors to stdout |
| 38 | +
|
| 39 | +Return Code |
| 40 | +^^^^^^^^^^^ |
| 41 | + |
| 42 | ++--------------+--------------------------------------------------------------+ |
| 43 | +| 0 | Success - no violations | |
| 44 | ++--------------+--------------------------------------------------------------+ |
| 45 | +| 1 | Some code violations were found | |
| 46 | ++--------------+--------------------------------------------------------------+ |
| 47 | +| 2 | Illegal usage - see error message | |
| 48 | ++--------------+--------------------------------------------------------------+ |
26 | 49 |
|
0 commit comments