Tue, 17 Apr 2018 19:11:51 +0200
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
5147
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1 | <!DOCTYPE html> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
2 | <html><head> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
3 | <title>eric6.Plugins.CheckerPlugins.CodeStyleChecker.pycodestyle</title> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
4 | <meta charset="UTF-8"> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
5 | <style> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
6 | body { |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
7 | background: #EDECE6; |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
8 | margin: 0em 1em 10em 1em; |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
9 | color: black; |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
10 | } |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
11 | |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
12 | h1 { color: white; background: #85774A; } |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
13 | h2 { color: white; background: #85774A; } |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
14 | h3 { color: white; background: #9D936E; } |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
15 | h4 { color: white; background: #9D936E; } |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
16 | |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
17 | a { color: #BA6D36; } |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
18 | |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
19 | </style> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
20 | </head> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
21 | <body><a NAME="top" ID="top"></a> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
22 | <h1>eric6.Plugins.CheckerPlugins.CodeStyleChecker.pycodestyle</h1> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
23 | |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
24 | <h3>Global Attributes</h3> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
25 | <table> |
6253
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
26 | <tr><td>ARITHMETIC_OP</td></tr><tr><td>BENCHMARK_KEYS</td></tr><tr><td>BLANK_LINES_CONFIG</td></tr><tr><td>COMMENT_WITH_NL</td></tr><tr><td>COMPARE_NEGATIVE_REGEX</td></tr><tr><td>COMPARE_SINGLETON_REGEX</td></tr><tr><td>COMPARE_TYPE_REGEX</td></tr><tr><td>DEFAULT_EXCLUDE</td></tr><tr><td>DEFAULT_IGNORE</td></tr><tr><td>DOCSTRING_REGEX</td></tr><tr><td>DUNDER_REGEX</td></tr><tr><td>ERRORCODE_REGEX</td></tr><tr><td>EXTRANEOUS_WHITESPACE_REGEX</td></tr><tr><td>HUNK_REGEX</td></tr><tr><td>INDENT_REGEX</td></tr><tr><td>KEYWORDS</td></tr><tr><td>KEYWORD_REGEX</td></tr><tr><td>LAMBDA_REGEX</td></tr><tr><td>MAX_LINE_LENGTH</td></tr><tr><td>NEWLINE</td></tr><tr><td>OPERATOR_REGEX</td></tr><tr><td>PROJECT_CONFIG</td></tr><tr><td>PyCF_ONLY_AST</td></tr><tr><td>RAISE_COMMA_REGEX</td></tr><tr><td>REPORT_FORMAT</td></tr><tr><td>RERAISE_COMMA_REGEX</td></tr><tr><td>SINGLETONS</td></tr><tr><td>SKIP_COMMENTS</td></tr><tr><td>SKIP_TOKENS</td></tr><tr><td>STARTSWITH_DEF_REGEX</td></tr><tr><td>STARTSWITH_INDENT_STATEMENT_REGEX</td></tr><tr><td>STARTSWITH_TOP_LEVEL_REGEX</td></tr><tr><td>TESTSUITE_PATH</td></tr><tr><td>UNARY_OPERATORS</td></tr><tr><td>WHITESPACE</td></tr><tr><td>WHITESPACE_AFTER_COMMA_REGEX</td></tr><tr><td>WS_NEEDED_OPERATORS</td></tr><tr><td>WS_OPTIONAL_OPERATORS</td></tr><tr><td>__version__</td></tr><tr><td>_checks</td></tr><tr><td>noqa</td></tr> |
5147
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
27 | </table> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
28 | <h3>Classes</h3> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
29 | <table> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
30 | <tr> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
31 | <td><a href="#BaseReport">BaseReport</a></td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
32 | <td>Collect the results of the checks.</td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
33 | </tr><tr> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
34 | <td><a href="#Checker">Checker</a></td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
35 | <td>Load a Python source file, tokenize it, check coding style.</td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
36 | </tr><tr> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
37 | <td><a href="#DiffReport">DiffReport</a></td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
38 | <td>Collect and print the results for the changed lines only.</td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
39 | </tr><tr> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
40 | <td><a href="#FileReport">FileReport</a></td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
41 | <td>Collect the results of the checks and print only the filenames.</td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
42 | </tr><tr> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
43 | <td><a href="#StandardReport">StandardReport</a></td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
44 | <td>Collect and print the results of the checks.</td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
45 | </tr><tr> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
46 | <td><a href="#StyleGuide">StyleGuide</a></td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
47 | <td>Initialize a PEP-8 instance with few options.</td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
48 | </tr> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
49 | </table> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
50 | <h3>Functions</h3> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
51 | <table> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
52 | <tr> |
6253
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
53 | <td><a href="#__init__">__init__</a></td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
54 | <td></td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
55 | </tr><tr> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
56 | <td><a href="#__init___1">__init__</a></td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
57 | <td></td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
58 | </tr><tr> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
59 | <td><a href="#__init___2">__init__</a></td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
60 | <td></td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
61 | </tr><tr> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
62 | <td><a href="#__init___3">__init__</a></td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
63 | <td></td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
64 | </tr><tr> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
65 | <td><a href="#__init___4">__init__</a></td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
66 | <td></td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
67 | </tr><tr> |
5147
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
68 | <td><a href="#_add_check">_add_check</a></td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
69 | <td></td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
70 | </tr><tr> |
6253
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
71 | <td><a href="#_break_around_binary_operators">_break_around_binary_operators</a></td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
72 | <td>Private function to reduce duplication.</td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
73 | </tr><tr> |
5147
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
74 | <td><a href="#_get_parameters">_get_parameters</a></td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
75 | <td></td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
76 | </tr><tr> |
6253
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
77 | <td><a href="#_is_binary_operator">_is_binary_operator</a></td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
78 | <td></td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
79 | </tr><tr> |
5147
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
80 | <td><a href="#_is_eol_token">_is_eol_token</a></td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
81 | <td></td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
82 | </tr><tr> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
83 | <td><a href="#_is_eol_token_1">_is_eol_token</a></td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
84 | <td></td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
85 | </tr><tr> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
86 | <td><a href="#_main">_main</a></td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
87 | <td>Parse options and run checks on Python source.</td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
88 | </tr><tr> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
89 | <td><a href="#_parse_multi_options">_parse_multi_options</a></td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
90 | <td>Split and strip and discard empties.</td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
91 | </tr><tr> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
92 | <td><a href="#ambiguous_identifier">ambiguous_identifier</a></td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
93 | <td>Never use the characters 'l', 'O', or 'I' as variable names.</td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
94 | </tr><tr> |
5435
44a6fc2828bc
Upgraded pycodestyle to version 2.2.0+.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5313
diff
changeset
|
95 | <td><a href="#bare_except">bare_except</a></td> |
6253
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
96 | <td>When catching exceptions, mention specific exceptions when possible.</td> |
5435
44a6fc2828bc
Upgraded pycodestyle to version 2.2.0+.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5313
diff
changeset
|
97 | </tr><tr> |
5147
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
98 | <td><a href="#blank_lines">blank_lines</a></td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
99 | <td>Separate top-level function and class definitions with two blank lines.</td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
100 | </tr><tr> |
6253
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
101 | <td><a href="#break_after_binary_operator">break_after_binary_operator</a></td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
102 | <td>Avoid breaks after binary operators.</td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
103 | </tr><tr> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
104 | <td><a href="#break_before_binary_operator">break_before_binary_operator</a></td> |
5147
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
105 | <td>Avoid breaks before binary operators.</td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
106 | </tr><tr> |
6253
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
107 | <td><a href="#build_tokens_line">build_tokens_line</a></td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
108 | <td>Build a logical line from tokens.</td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
109 | </tr><tr> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
110 | <td><a href="#check_all">check_all</a></td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
111 | <td>Run all checks on the input file.</td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
112 | </tr><tr> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
113 | <td><a href="#check_ast">check_ast</a></td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
114 | <td>Build the file's AST and run all AST checks.</td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
115 | </tr><tr> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
116 | <td><a href="#check_files">check_files</a></td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
117 | <td>Run all checks on the paths.</td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
118 | </tr><tr> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
119 | <td><a href="#check_logical">check_logical</a></td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
120 | <td>Build a line from tokens and run all logical checks on it.</td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
121 | </tr><tr> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
122 | <td><a href="#check_physical">check_physical</a></td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
123 | <td>Run all physical checks on a raw input line.</td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
124 | </tr><tr> |
5147
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
125 | <td><a href="#comparison_negative">comparison_negative</a></td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
126 | <td>Negative comparison should be done using "not in" and "is not".</td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
127 | </tr><tr> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
128 | <td><a href="#comparison_to_singleton">comparison_to_singleton</a></td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
129 | <td>Comparison to singletons should use "is" or "is not".</td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
130 | </tr><tr> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
131 | <td><a href="#comparison_type">comparison_type</a></td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
132 | <td>Object type comparisons should always use isinstance().</td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
133 | </tr><tr> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
134 | <td><a href="#compound_statements">compound_statements</a></td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
135 | <td>Compound statements (on the same line) are generally discouraged.</td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
136 | </tr><tr> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
137 | <td><a href="#continued_indentation">continued_indentation</a></td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
138 | <td>Continuation lines indentation.</td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
139 | </tr><tr> |
6253
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
140 | <td><a href="#error">error</a></td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
141 | <td>Report an error, according to options.</td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
142 | </tr><tr> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
143 | <td><a href="#error_1">error</a></td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
144 | <td>Report an error, according to options.</td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
145 | </tr><tr> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
146 | <td><a href="#error_2">error</a></td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
147 | <td></td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
148 | </tr><tr> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
149 | <td><a href="#error_args">error_args</a></td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
150 | <td>Report an error, according to options.</td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
151 | </tr><tr> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
152 | <td><a href="#error_args_1">error_args</a></td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
153 | <td>Report an error, according to options.</td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
154 | </tr><tr> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
155 | <td><a href="#excluded">excluded</a></td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
156 | <td>Check if the file should be excluded.</td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
157 | </tr><tr> |
5147
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
158 | <td><a href="#expand_indent">expand_indent</a></td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
159 | <td>Return the amount of indentation.</td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
160 | </tr><tr> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
161 | <td><a href="#explicit_line_join">explicit_line_join</a></td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
162 | <td>Avoid explicit line join between brackets.</td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
163 | </tr><tr> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
164 | <td><a href="#extraneous_whitespace">extraneous_whitespace</a></td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
165 | <td>Avoid extraneous whitespace.</td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
166 | </tr><tr> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
167 | <td><a href="#filename_match">filename_match</a></td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
168 | <td>Check if patterns contains a pattern that matches filename.</td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
169 | </tr><tr> |
6253
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
170 | <td><a href="#generate_tokens">generate_tokens</a></td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
171 | <td>Tokenize the file, run physical line checks and yield tokens.</td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
172 | </tr><tr> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
173 | <td><a href="#get_checks">get_checks</a></td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
174 | <td>Get all the checks for this category.</td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
175 | </tr><tr> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
176 | <td><a href="#get_count">get_count</a></td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
177 | <td>Return the total count of errors and warnings.</td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
178 | </tr><tr> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
179 | <td><a href="#get_file_results">get_file_results</a></td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
180 | <td>Return the count of errors and warnings for this file.</td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
181 | </tr><tr> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
182 | <td><a href="#get_file_results_1">get_file_results</a></td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
183 | <td>Print the result and return the overall count for this file.</td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
184 | </tr><tr> |
5147
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
185 | <td><a href="#get_parser">get_parser</a></td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
186 | <td>Create the parser for the program.</td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
187 | </tr><tr> |
6253
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
188 | <td><a href="#get_statistics">get_statistics</a></td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
189 | <td>Get statistics for message codes that start with the prefix.</td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
190 | </tr><tr> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
191 | <td><a href="#ignore_code">ignore_code</a></td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
192 | <td>Check if the error code should be ignored.</td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
193 | </tr><tr> |
5147
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
194 | <td><a href="#imports_on_separate_lines">imports_on_separate_lines</a></td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
195 | <td>Place imports on separate lines.</td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
196 | </tr><tr> |
6253
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
197 | <td><a href="#increment_logical_line">increment_logical_line</a></td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
198 | <td>Signal a new logical line.</td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
199 | </tr><tr> |
5147
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
200 | <td><a href="#indentation">indentation</a></td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
201 | <td>Use 4 spaces per indentation level.</td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
202 | </tr><tr> |
6253
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
203 | <td><a href="#init_checker_state">init_checker_state</a></td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
204 | <td>Prepare custom state for the specific checker plugin.</td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
205 | </tr><tr> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
206 | <td><a href="#init_file">init_file</a></td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
207 | <td>Signal a new file.</td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
208 | </tr><tr> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
209 | <td><a href="#init_file_1">init_file</a></td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
210 | <td>Signal a new file.</td> |
5147
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
211 | </tr><tr> |
6253
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
212 | <td><a href="#init_report">init_report</a></td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
213 | <td>Initialize the report instance.</td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
214 | </tr><tr> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
215 | <td><a href="#input_dir">input_dir</a></td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
216 | <td>Check all files in this directory and all subdirectories.</td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
217 | </tr><tr> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
218 | <td><a href="#input_file">input_file</a></td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
219 | <td>Run all checks on a Python source file.</td> |
5147
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
220 | </tr><tr> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
221 | <td><a href="#is_string_literal">is_string_literal</a></td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
222 | <td></td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
223 | </tr><tr> |
6253
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
224 | <td><a href="#lru_cache">lru_cache</a></td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
225 | <td></td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
226 | </tr><tr> |
5147
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
227 | <td><a href="#maximum_line_length">maximum_line_length</a></td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
228 | <td>Limit all lines to a maximum of 79 characters.</td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
229 | </tr><tr> |
6253
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
230 | <td><a href="#maybe_check_physical">maybe_check_physical</a></td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
231 | <td>If appropriate (based on token), check current physical line(s).</td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
232 | </tr><tr> |
5147
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
233 | <td><a href="#missing_whitespace">missing_whitespace</a></td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
234 | <td>Each comma, semicolon or colon should be followed by whitespace.</td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
235 | </tr><tr> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
236 | <td><a href="#missing_whitespace_after_import_keyword">missing_whitespace_after_import_keyword</a></td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
237 | <td>Multiple imports in form from x import (a, b, c) should have space between import statement and parenthesised name list.</td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
238 | </tr><tr> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
239 | <td><a href="#missing_whitespace_around_operator">missing_whitespace_around_operator</a></td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
240 | <td>Surround operators with a single space on either side.</td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
241 | </tr><tr> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
242 | <td><a href="#module_imports_on_top_of_file">module_imports_on_top_of_file</a></td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
243 | <td>Place imports at the top of the file.</td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
244 | </tr><tr> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
245 | <td><a href="#mute_string">mute_string</a></td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
246 | <td>Replace contents with 'xxx' to prevent syntax matching.</td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
247 | </tr><tr> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
248 | <td><a href="#normalize_paths">normalize_paths</a></td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
249 | <td>Parse a comma-separated list of paths.</td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
250 | </tr><tr> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
251 | <td><a href="#parse_udiff">parse_udiff</a></td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
252 | <td>Return a dictionary of matching lines.</td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
253 | </tr><tr> |
6253
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
254 | <td><a href="#print_benchmark">print_benchmark</a></td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
255 | <td>Print benchmark numbers.</td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
256 | </tr><tr> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
257 | <td><a href="#print_statistics">print_statistics</a></td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
258 | <td>Print overall statistics (number of errors and warnings).</td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
259 | </tr><tr> |
5147
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
260 | <td><a href="#process_options">process_options</a></td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
261 | <td>Process options passed either via arglist or via command line args.</td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
262 | </tr><tr> |
6253
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
263 | <td><a href="#python_3000_async_await_keywords">python_3000_async_await_keywords</a></td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
264 | <td>'async' and 'await' are reserved keywords starting with Python 3.7</td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
265 | </tr><tr> |
5147
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
266 | <td><a href="#python_3000_backticks">python_3000_backticks</a></td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
267 | <td>Use repr() instead of backticks in Python 3.</td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
268 | </tr><tr> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
269 | <td><a href="#python_3000_has_key">python_3000_has_key</a></td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
270 | <td>The {}.has_key() method is removed in Python 3: use the 'in' operator.</td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
271 | </tr><tr> |
6253
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
272 | <td><a href="#python_3000_invalid_escape_sequence">python_3000_invalid_escape_sequence</a></td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
273 | <td>Invalid escape sequences are deprecated in Python 3.6.</td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
274 | </tr><tr> |
5147
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
275 | <td><a href="#python_3000_not_equal">python_3000_not_equal</a></td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
276 | <td>New code should always use != instead of <>.</td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
277 | </tr><tr> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
278 | <td><a href="#python_3000_raise_comma">python_3000_raise_comma</a></td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
279 | <td>When raising an exception, use "raise ValueError('message')".</td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
280 | </tr><tr> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
281 | <td><a href="#read_config">read_config</a></td> |
5291
e93d14b48c34
Corrected some code style issues and regenerated the source docu.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5147
diff
changeset
|
282 | <td>Read and parse configurations.</td> |
5147
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
283 | </tr><tr> |
6253
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
284 | <td><a href="#readline">readline</a></td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
285 | <td>Get the next line from the input buffer.</td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
286 | </tr><tr> |
5147
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
287 | <td><a href="#readlines">readlines</a></td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
288 | <td>Read the source code.</td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
289 | </tr><tr> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
290 | <td><a href="#readlines_1">readlines</a></td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
291 | <td>Read the source code.</td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
292 | </tr><tr> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
293 | <td><a href="#register_check">register_check</a></td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
294 | <td>Register a new check object.</td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
295 | </tr><tr> |
6253
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
296 | <td><a href="#report_invalid_syntax">report_invalid_syntax</a></td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
297 | <td>Check if the syntax is valid.</td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
298 | </tr><tr> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
299 | <td><a href="#run_check">run_check</a></td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
300 | <td>Run a check plugin.</td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
301 | </tr><tr> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
302 | <td><a href="#start">start</a></td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
303 | <td>Start the timer.</td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
304 | </tr><tr> |
5147
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
305 | <td><a href="#stdin_get_value">stdin_get_value</a></td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
306 | <td>Read the value from stdin.</td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
307 | </tr><tr> |
6253
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
308 | <td><a href="#stop">stop</a></td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
309 | <td>Stop the timer.</td> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
310 | </tr><tr> |
5147
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
311 | <td><a href="#tabs_obsolete">tabs_obsolete</a></td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
312 | <td>For new projects, spaces-only are strongly recommended over tabs.</td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
313 | </tr><tr> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
314 | <td><a href="#tabs_or_spaces">tabs_or_spaces</a></td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
315 | <td>Never mix tabs and spaces.</td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
316 | </tr><tr> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
317 | <td><a href="#trailing_blank_lines">trailing_blank_lines</a></td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
318 | <td>Trailing blank lines are superfluous.</td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
319 | </tr><tr> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
320 | <td><a href="#trailing_whitespace">trailing_whitespace</a></td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
321 | <td>Trailing whitespace is superfluous.</td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
322 | </tr><tr> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
323 | <td><a href="#update_counts">update_counts</a></td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
324 | <td>Adds one to the counts of each appearance of characters in s, for characters in counts</td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
325 | </tr><tr> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
326 | <td><a href="#whitespace_around_comma">whitespace_around_comma</a></td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
327 | <td>Avoid extraneous whitespace after a comma or a colon.</td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
328 | </tr><tr> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
329 | <td><a href="#whitespace_around_keywords">whitespace_around_keywords</a></td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
330 | <td>Avoid extraneous whitespace around keywords.</td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
331 | </tr><tr> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
332 | <td><a href="#whitespace_around_named_parameter_equals">whitespace_around_named_parameter_equals</a></td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
333 | <td>Don't use spaces around the '=' sign in function arguments.</td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
334 | </tr><tr> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
335 | <td><a href="#whitespace_around_operator">whitespace_around_operator</a></td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
336 | <td>Avoid extraneous whitespace around an operator.</td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
337 | </tr><tr> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
338 | <td><a href="#whitespace_before_comment">whitespace_before_comment</a></td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
339 | <td>Separate inline comments by at least two spaces.</td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
340 | </tr><tr> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
341 | <td><a href="#whitespace_before_parameters">whitespace_before_parameters</a></td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
342 | <td>Avoid extraneous whitespace.</td> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
343 | </tr> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
344 | </table> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
345 | <hr /><hr /> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
346 | <a NAME="BaseReport" ID="BaseReport"></a> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
347 | <h2>BaseReport</h2> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
348 | <p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
349 | Collect the results of the checks. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
350 | </p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
351 | <h3>Derived from</h3> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
352 | object |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
353 | <h3>Class Attributes</h3> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
354 | <table> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
355 | <tr><td>print_filename</td></tr> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
356 | </table> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
357 | <h3>Class Methods</h3> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
358 | <table> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
359 | <tr><td>None</td></tr> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
360 | </table> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
361 | <h3>Methods</h3> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
362 | <table> |
6253
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
363 | <tr><td>None</td></tr> |
5147
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
364 | </table> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
365 | <h3>Static Methods</h3> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
366 | <table> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
367 | <tr><td>None</td></tr> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
368 | </table> |
6253
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
369 | |
5147
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
370 | <div align="right"><a href="#top">Up</a></div> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
371 | <hr /><hr /> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
372 | <a NAME="Checker" ID="Checker"></a> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
373 | <h2>Checker</h2> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
374 | <p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
375 | Load a Python source file, tokenize it, check coding style. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
376 | </p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
377 | <h3>Derived from</h3> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
378 | object |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
379 | <h3>Class Attributes</h3> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
380 | <table> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
381 | <tr><td>None</td></tr> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
382 | </table> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
383 | <h3>Class Methods</h3> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
384 | <table> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
385 | <tr><td>None</td></tr> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
386 | </table> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
387 | <h3>Methods</h3> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
388 | <table> |
6253
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
389 | <tr><td>None</td></tr> |
5147
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
390 | </table> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
391 | <h3>Static Methods</h3> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
392 | <table> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
393 | <tr><td>None</td></tr> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
394 | </table> |
6253
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
395 | |
5147
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
396 | <div align="right"><a href="#top">Up</a></div> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
397 | <hr /><hr /> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
398 | <a NAME="DiffReport" ID="DiffReport"></a> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
399 | <h2>DiffReport</h2> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
400 | <p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
401 | Collect and print the results for the changed lines only. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
402 | </p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
403 | <h3>Derived from</h3> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
404 | StandardReport |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
405 | <h3>Class Attributes</h3> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
406 | <table> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
407 | <tr><td>None</td></tr> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
408 | </table> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
409 | <h3>Class Methods</h3> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
410 | <table> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
411 | <tr><td>None</td></tr> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
412 | </table> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
413 | <h3>Methods</h3> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
414 | <table> |
6253
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
415 | <tr><td>None</td></tr> |
5147
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
416 | </table> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
417 | <h3>Static Methods</h3> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
418 | <table> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
419 | <tr><td>None</td></tr> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
420 | </table> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
421 | |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
422 | <div align="right"><a href="#top">Up</a></div> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
423 | <hr /><hr /> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
424 | <a NAME="FileReport" ID="FileReport"></a> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
425 | <h2>FileReport</h2> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
426 | <p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
427 | Collect the results of the checks and print only the filenames. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
428 | </p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
429 | <h3>Derived from</h3> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
430 | BaseReport |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
431 | <h3>Class Attributes</h3> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
432 | <table> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
433 | <tr><td>print_filename</td></tr> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
434 | </table> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
435 | <h3>Class Methods</h3> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
436 | <table> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
437 | <tr><td>None</td></tr> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
438 | </table> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
439 | <h3>Methods</h3> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
440 | <table> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
441 | <tr><td>None</td></tr> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
442 | </table> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
443 | <h3>Static Methods</h3> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
444 | <table> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
445 | <tr><td>None</td></tr> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
446 | </table> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
447 | |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
448 | <div align="right"><a href="#top">Up</a></div> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
449 | <hr /><hr /> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
450 | <a NAME="StandardReport" ID="StandardReport"></a> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
451 | <h2>StandardReport</h2> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
452 | <p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
453 | Collect and print the results of the checks. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
454 | </p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
455 | <h3>Derived from</h3> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
456 | BaseReport |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
457 | <h3>Class Attributes</h3> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
458 | <table> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
459 | <tr><td>None</td></tr> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
460 | </table> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
461 | <h3>Class Methods</h3> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
462 | <table> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
463 | <tr><td>None</td></tr> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
464 | </table> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
465 | <h3>Methods</h3> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
466 | <table> |
6253
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
467 | <tr><td>None</td></tr> |
5147
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
468 | </table> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
469 | <h3>Static Methods</h3> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
470 | <table> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
471 | <tr><td>None</td></tr> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
472 | </table> |
6253
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
473 | |
5147
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
474 | <div align="right"><a href="#top">Up</a></div> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
475 | <hr /><hr /> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
476 | <a NAME="StyleGuide" ID="StyleGuide"></a> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
477 | <h2>StyleGuide</h2> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
478 | <p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
479 | Initialize a PEP-8 instance with few options. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
480 | </p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
481 | <h3>Derived from</h3> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
482 | object |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
483 | <h3>Class Attributes</h3> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
484 | <table> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
485 | <tr><td>None</td></tr> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
486 | </table> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
487 | <h3>Class Methods</h3> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
488 | <table> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
489 | <tr><td>None</td></tr> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
490 | </table> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
491 | <h3>Methods</h3> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
492 | <table> |
6253
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
493 | <tr><td>None</td></tr> |
5147
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
494 | </table> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
495 | <h3>Static Methods</h3> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
496 | <table> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
497 | <tr><td>None</td></tr> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
498 | </table> |
6253
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
499 | |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
500 | <div align="right"><a href="#top">Up</a></div> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
501 | <hr /><hr /> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
502 | <a NAME="__init__" ID="__init__"></a> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
503 | <h2>__init__</h2> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
504 | <b>__init__</b>(<i>self, filename=None, lines=None, options=None, report=None, **kwargs</i>) |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
505 | |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
506 | <div align="right"><a href="#top">Up</a></div> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
507 | <hr /><hr /> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
508 | <a NAME="__init___1" ID="__init___1"></a> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
509 | <h2>__init__</h2> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
510 | <b>__init__</b>(<i>self, options</i>) |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
511 | |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
512 | <div align="right"><a href="#top">Up</a></div> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
513 | <hr /><hr /> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
514 | <a NAME="__init___2" ID="__init___2"></a> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
515 | <h2>__init__</h2> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
516 | <b>__init__</b>(<i>self, options</i>) |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
517 | |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
518 | <div align="right"><a href="#top">Up</a></div> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
519 | <hr /><hr /> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
520 | <a NAME="__init___3" ID="__init___3"></a> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
521 | <h2>__init__</h2> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
522 | <b>__init__</b>(<i>self, options</i>) |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
523 | |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
524 | <div align="right"><a href="#top">Up</a></div> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
525 | <hr /><hr /> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
526 | <a NAME="__init___4" ID="__init___4"></a> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
527 | <h2>__init__</h2> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
528 | <b>__init__</b>(<i>self, *args, **kwargs</i>) |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
529 | |
5147
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
530 | <div align="right"><a href="#top">Up</a></div> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
531 | <hr /><hr /> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
532 | <a NAME="_add_check" ID="_add_check"></a> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
533 | <h2>_add_check</h2> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
534 | <b>_add_check</b>(<i>check, kind, codes, args</i>) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
535 | |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
536 | <div align="right"><a href="#top">Up</a></div> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
537 | <hr /><hr /> |
6253
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
538 | <a NAME="_break_around_binary_operators" ID="_break_around_binary_operators"></a> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
539 | <h2>_break_around_binary_operators</h2> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
540 | <b>_break_around_binary_operators</b>(<i>tokens</i>) |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
541 | <p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
542 | Private function to reduce duplication. |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
543 | </p><p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
544 | This factors out the shared details between |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
545 | :func:`break_before_binary_operator` and |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
546 | :func:`break_after_binary_operator`. |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
547 | </p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
548 | <div align="right"><a href="#top">Up</a></div> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
549 | <hr /><hr /> |
5147
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
550 | <a NAME="_get_parameters" ID="_get_parameters"></a> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
551 | <h2>_get_parameters</h2> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
552 | <b>_get_parameters</b>(<i>function</i>) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
553 | |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
554 | <div align="right"><a href="#top">Up</a></div> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
555 | <hr /><hr /> |
6253
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
556 | <a NAME="_is_binary_operator" ID="_is_binary_operator"></a> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
557 | <h2>_is_binary_operator</h2> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
558 | <b>_is_binary_operator</b>(<i>token_type, text</i>) |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
559 | |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
560 | <div align="right"><a href="#top">Up</a></div> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
561 | <hr /><hr /> |
5147
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
562 | <a NAME="_is_eol_token" ID="_is_eol_token"></a> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
563 | <h2>_is_eol_token</h2> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
564 | <b>_is_eol_token</b>(<i>token</i>) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
565 | |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
566 | <div align="right"><a href="#top">Up</a></div> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
567 | <hr /><hr /> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
568 | <a NAME="_is_eol_token_1" ID="_is_eol_token_1"></a> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
569 | <h2>_is_eol_token</h2> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
570 | <b>_is_eol_token</b>(<i>token, _eol_token=_is_eol_token</i>) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
571 | |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
572 | <div align="right"><a href="#top">Up</a></div> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
573 | <hr /><hr /> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
574 | <a NAME="_main" ID="_main"></a> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
575 | <h2>_main</h2> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
576 | <b>_main</b>(<i></i>) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
577 | <p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
578 | Parse options and run checks on Python source. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
579 | </p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
580 | <div align="right"><a href="#top">Up</a></div> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
581 | <hr /><hr /> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
582 | <a NAME="_parse_multi_options" ID="_parse_multi_options"></a> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
583 | <h2>_parse_multi_options</h2> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
584 | <b>_parse_multi_options</b>(<i>options, split_token=', '</i>) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
585 | <p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
586 | Split and strip and discard empties. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
587 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
588 | Turns the following: |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
589 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
590 | A, |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
591 | B, |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
592 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
593 | into ["A", "B"] |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
594 | </p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
595 | <div align="right"><a href="#top">Up</a></div> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
596 | <hr /><hr /> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
597 | <a NAME="ambiguous_identifier" ID="ambiguous_identifier"></a> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
598 | <h2>ambiguous_identifier</h2> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
599 | <b>ambiguous_identifier</b>(<i>logical_line, tokens</i>) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
600 | <p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
601 | Never use the characters 'l', 'O', or 'I' as variable names. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
602 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
603 | In some fonts, these characters are indistinguishable from the numerals |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
604 | one and zero. When tempted to use 'l', use 'L' instead. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
605 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
606 | Okay: L = 0 |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
607 | Okay: o = 123 |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
608 | Okay: i = 42 |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
609 | E741: l = 0 |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
610 | E741: O = 123 |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
611 | E741: I = 42 |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
612 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
613 | Variables can be bound in several other contexts, including class and |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
614 | function definitions, 'global' and 'nonlocal' statements, exception |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
615 | handlers, and 'with' statements. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
616 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
617 | Okay: except AttributeError as o: |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
618 | Okay: with lock as L: |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
619 | E741: except AttributeError as O: |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
620 | E741: with lock as l: |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
621 | E741: global I |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
622 | E741: nonlocal l |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
623 | E742: class I(object): |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
624 | E743: def l(x): |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
625 | </p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
626 | <div align="right"><a href="#top">Up</a></div> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
627 | <hr /><hr /> |
5435
44a6fc2828bc
Upgraded pycodestyle to version 2.2.0+.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5313
diff
changeset
|
628 | <a NAME="bare_except" ID="bare_except"></a> |
44a6fc2828bc
Upgraded pycodestyle to version 2.2.0+.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5313
diff
changeset
|
629 | <h2>bare_except</h2> |
44a6fc2828bc
Upgraded pycodestyle to version 2.2.0+.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5313
diff
changeset
|
630 | <b>bare_except</b>(<i>logical_line, noqa</i>) |
44a6fc2828bc
Upgraded pycodestyle to version 2.2.0+.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5313
diff
changeset
|
631 | <p> |
6253
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
632 | When catching exceptions, mention specific exceptions when possible. |
5435
44a6fc2828bc
Upgraded pycodestyle to version 2.2.0+.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5313
diff
changeset
|
633 | </p><p> |
44a6fc2828bc
Upgraded pycodestyle to version 2.2.0+.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5313
diff
changeset
|
634 | Okay: except Exception: |
44a6fc2828bc
Upgraded pycodestyle to version 2.2.0+.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5313
diff
changeset
|
635 | Okay: except BaseException: |
44a6fc2828bc
Upgraded pycodestyle to version 2.2.0+.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5313
diff
changeset
|
636 | E722: except: |
44a6fc2828bc
Upgraded pycodestyle to version 2.2.0+.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5313
diff
changeset
|
637 | </p> |
44a6fc2828bc
Upgraded pycodestyle to version 2.2.0+.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5313
diff
changeset
|
638 | <div align="right"><a href="#top">Up</a></div> |
44a6fc2828bc
Upgraded pycodestyle to version 2.2.0+.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5313
diff
changeset
|
639 | <hr /><hr /> |
5147
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
640 | <a NAME="blank_lines" ID="blank_lines"></a> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
641 | <h2>blank_lines</h2> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
642 | <b>blank_lines</b>(<i>logical_line, blank_lines, indent_level, line_number, blank_before, previous_logical, previous_unindented_logical_line, previous_indent_level, lines</i>) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
643 | <p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
644 | Separate top-level function and class definitions with two blank lines. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
645 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
646 | Method definitions inside a class are separated by a single blank line. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
647 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
648 | Extra blank lines may be used (sparingly) to separate groups of related |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
649 | functions. Blank lines may be omitted between a bunch of related |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
650 | one-liners (e.g. a set of dummy implementations). |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
651 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
652 | Use blank lines in functions, sparingly, to indicate logical sections. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
653 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
654 | Okay: def a():\n pass\n\n\ndef b():\n pass |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
655 | Okay: def a():\n pass\n\n\nasync def b():\n pass |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
656 | Okay: def a():\n pass\n\n\n# Foo\n# Bar\n\ndef b():\n pass |
5313
fd7d8c470dc6
Updated code style checker docu.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5291
diff
changeset
|
657 | Okay: default = 1\nfoo = 1 |
fd7d8c470dc6
Updated code style checker docu.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5291
diff
changeset
|
658 | Okay: classify = 1\nfoo = 1 |
5147
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
659 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
660 | E301: class Foo:\n b = 0\n def bar():\n pass |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
661 | E302: def a():\n pass\n\ndef b(n):\n pass |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
662 | E302: def a():\n pass\n\nasync def b(n):\n pass |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
663 | E303: def a():\n pass\n\n\n\ndef b(n):\n pass |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
664 | E303: def a():\n\n\n\n pass |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
665 | E304: @decorator\n\ndef a():\n pass |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
666 | E305: def a():\n pass\na() |
5516
a165ff497046
Regenerated source docu.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5435
diff
changeset
|
667 | E306: def a():\n def b():\n pass\n def c():\n pass |
5147
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
668 | </p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
669 | <div align="right"><a href="#top">Up</a></div> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
670 | <hr /><hr /> |
6253
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
671 | <a NAME="break_after_binary_operator" ID="break_after_binary_operator"></a> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
672 | <h2>break_after_binary_operator</h2> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
673 | <b>break_after_binary_operator</b>(<i>logical_line, tokens</i>) |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
674 | <p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
675 | Avoid breaks after binary operators. |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
676 | </p><p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
677 | The preferred place to break around a binary operator is before the |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
678 | operator, not after it. |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
679 | </p><p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
680 | W504: (width == 0 +\n height == 0) |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
681 | W504: (width == 0 and\n height == 0) |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
682 | W504: var = (1 &\n ~2) |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
683 | </p><p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
684 | Okay: foo(\n -x) |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
685 | Okay: foo(x\n []) |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
686 | Okay: x = '''\n''' + '' |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
687 | Okay: x = '' + '''\n''' |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
688 | Okay: foo(x,\n -y) |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
689 | Okay: foo(x, # comment\n -y) |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
690 | </p><p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
691 | The following should be W504 but unary_context is tricky with these |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
692 | Okay: var = (1 /\n -2) |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
693 | Okay: var = (1 +\n -1 +\n -2) |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
694 | </p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
695 | <div align="right"><a href="#top">Up</a></div> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
696 | <hr /><hr /> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
697 | <a NAME="break_before_binary_operator" ID="break_before_binary_operator"></a> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
698 | <h2>break_before_binary_operator</h2> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
699 | <b>break_before_binary_operator</b>(<i>logical_line, tokens</i>) |
5147
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
700 | <p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
701 | Avoid breaks before binary operators. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
702 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
703 | The preferred place to break around a binary operator is after the |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
704 | operator, not before it. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
705 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
706 | W503: (width == 0\n + height == 0) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
707 | W503: (width == 0\n and height == 0) |
6253
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
708 | W503: var = (1\n & ~2) |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
709 | W503: var = (1\n / -2) |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
710 | W503: var = (1\n + -1\n + -2) |
5147
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
711 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
712 | Okay: foo(\n -x) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
713 | Okay: foo(x\n []) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
714 | Okay: x = '''\n''' + '' |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
715 | Okay: foo(x,\n -y) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
716 | Okay: foo(x, # comment\n -y) |
6253
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
717 | </p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
718 | <div align="right"><a href="#top">Up</a></div> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
719 | <hr /><hr /> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
720 | <a NAME="build_tokens_line" ID="build_tokens_line"></a> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
721 | <h2>build_tokens_line</h2> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
722 | <b>build_tokens_line</b>(<i>self</i>) |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
723 | <p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
724 | Build a logical line from tokens. |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
725 | </p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
726 | <div align="right"><a href="#top">Up</a></div> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
727 | <hr /><hr /> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
728 | <a NAME="check_all" ID="check_all"></a> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
729 | <h2>check_all</h2> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
730 | <b>check_all</b>(<i>self, expected=None, line_offset=0</i>) |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
731 | <p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
732 | Run all checks on the input file. |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
733 | </p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
734 | <div align="right"><a href="#top">Up</a></div> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
735 | <hr /><hr /> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
736 | <a NAME="check_ast" ID="check_ast"></a> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
737 | <h2>check_ast</h2> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
738 | <b>check_ast</b>(<i>self</i>) |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
739 | <p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
740 | Build the file's AST and run all AST checks. |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
741 | </p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
742 | <div align="right"><a href="#top">Up</a></div> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
743 | <hr /><hr /> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
744 | <a NAME="check_files" ID="check_files"></a> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
745 | <h2>check_files</h2> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
746 | <b>check_files</b>(<i>self, paths=None</i>) |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
747 | <p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
748 | Run all checks on the paths. |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
749 | </p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
750 | <div align="right"><a href="#top">Up</a></div> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
751 | <hr /><hr /> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
752 | <a NAME="check_logical" ID="check_logical"></a> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
753 | <h2>check_logical</h2> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
754 | <b>check_logical</b>(<i>self</i>) |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
755 | <p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
756 | Build a line from tokens and run all logical checks on it. |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
757 | </p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
758 | <div align="right"><a href="#top">Up</a></div> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
759 | <hr /><hr /> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
760 | <a NAME="check_physical" ID="check_physical"></a> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
761 | <h2>check_physical</h2> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
762 | <b>check_physical</b>(<i>self, line</i>) |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
763 | <p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
764 | Run all physical checks on a raw input line. |
5147
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
765 | </p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
766 | <div align="right"><a href="#top">Up</a></div> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
767 | <hr /><hr /> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
768 | <a NAME="comparison_negative" ID="comparison_negative"></a> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
769 | <h2>comparison_negative</h2> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
770 | <b>comparison_negative</b>(<i>logical_line</i>) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
771 | <p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
772 | Negative comparison should be done using "not in" and "is not". |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
773 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
774 | Okay: if x not in y:\n pass |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
775 | Okay: assert (X in Y or X is Z) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
776 | Okay: if not (X in Y):\n pass |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
777 | Okay: zz = x is not y |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
778 | E713: Z = not X in Y |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
779 | E713: if not X.B in Y:\n pass |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
780 | E714: if not X is Y:\n pass |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
781 | E714: Z = not X.B is Y |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
782 | </p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
783 | <div align="right"><a href="#top">Up</a></div> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
784 | <hr /><hr /> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
785 | <a NAME="comparison_to_singleton" ID="comparison_to_singleton"></a> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
786 | <h2>comparison_to_singleton</h2> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
787 | <b>comparison_to_singleton</b>(<i>logical_line, noqa</i>) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
788 | <p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
789 | Comparison to singletons should use "is" or "is not". |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
790 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
791 | Comparisons to singletons like None should always be done |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
792 | with "is" or "is not", never the equality operators. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
793 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
794 | Okay: if arg is not None: |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
795 | E711: if arg != None: |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
796 | E711: if None == arg: |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
797 | E712: if arg == True: |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
798 | E712: if False == arg: |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
799 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
800 | Also, beware of writing if x when you really mean if x is not None -- |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
801 | e.g. when testing whether a variable or argument that defaults to None was |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
802 | set to some other value. The other value might have a type (such as a |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
803 | container) that could be false in a boolean context! |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
804 | </p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
805 | <div align="right"><a href="#top">Up</a></div> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
806 | <hr /><hr /> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
807 | <a NAME="comparison_type" ID="comparison_type"></a> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
808 | <h2>comparison_type</h2> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
809 | <b>comparison_type</b>(<i>logical_line, noqa</i>) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
810 | <p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
811 | Object type comparisons should always use isinstance(). |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
812 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
813 | Do not compare types directly. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
814 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
815 | Okay: if isinstance(obj, int): |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
816 | E721: if type(obj) is type(1): |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
817 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
818 | When checking if an object is a string, keep in mind that it might be a |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
819 | unicode string too! In Python 2.3, str and unicode have a common base |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
820 | class, basestring, so you can do: |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
821 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
822 | Okay: if isinstance(obj, basestring): |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
823 | Okay: if type(a1) is type(b1): |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
824 | </p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
825 | <div align="right"><a href="#top">Up</a></div> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
826 | <hr /><hr /> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
827 | <a NAME="compound_statements" ID="compound_statements"></a> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
828 | <h2>compound_statements</h2> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
829 | <b>compound_statements</b>(<i>logical_line</i>) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
830 | <p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
831 | Compound statements (on the same line) are generally discouraged. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
832 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
833 | While sometimes it's okay to put an if/for/while with a small body |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
834 | on the same line, never do this for multi-clause statements. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
835 | Also avoid folding such long lines! |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
836 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
837 | Always use a def statement instead of an assignment statement that |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
838 | binds a lambda expression directly to a name. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
839 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
840 | Okay: if foo == 'blah':\n do_blah_thing() |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
841 | Okay: do_one() |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
842 | Okay: do_two() |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
843 | Okay: do_three() |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
844 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
845 | E701: if foo == 'blah': do_blah_thing() |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
846 | E701: for x in lst: total += x |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
847 | E701: while t < 10: t = delay() |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
848 | E701: if foo == 'blah': do_blah_thing() |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
849 | E701: else: do_non_blah_thing() |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
850 | E701: try: something() |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
851 | E701: finally: cleanup() |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
852 | E701: if foo == 'blah': one(); two(); three() |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
853 | E702: do_one(); do_two(); do_three() |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
854 | E703: do_four(); # useless semicolon |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
855 | E704: def f(x): return 2*x |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
856 | E731: f = lambda x: 2*x |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
857 | </p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
858 | <div align="right"><a href="#top">Up</a></div> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
859 | <hr /><hr /> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
860 | <a NAME="continued_indentation" ID="continued_indentation"></a> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
861 | <h2>continued_indentation</h2> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
862 | <b>continued_indentation</b>(<i>logical_line, tokens, indent_level, hang_closing, indent_char, noqa, verbose</i>) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
863 | <p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
864 | Continuation lines indentation. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
865 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
866 | Continuation lines should align wrapped elements either vertically |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
867 | using Python's implicit line joining inside parentheses, brackets |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
868 | and braces, or using a hanging indent. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
869 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
870 | When using a hanging indent these considerations should be applied: |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
871 | - there should be no arguments on the first line, and |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
872 | - further indentation should be used to clearly distinguish itself as a |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
873 | continuation line. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
874 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
875 | Okay: a = (\n) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
876 | E123: a = (\n ) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
877 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
878 | Okay: a = (\n 42) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
879 | E121: a = (\n 42) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
880 | E122: a = (\n42) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
881 | E123: a = (\n 42\n ) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
882 | E124: a = (24,\n 42\n) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
883 | E125: if (\n b):\n pass |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
884 | E126: a = (\n 42) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
885 | E127: a = (24,\n 42) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
886 | E128: a = (24,\n 42) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
887 | E129: if (a or\n b):\n pass |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
888 | E131: a = (\n 42\n 24) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
889 | </p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
890 | <div align="right"><a href="#top">Up</a></div> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
891 | <hr /><hr /> |
6253
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
892 | <a NAME="error" ID="error"></a> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
893 | <h2>error</h2> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
894 | <b>error</b>(<i>self, line_number, offset, text, check</i>) |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
895 | <p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
896 | Report an error, according to options. |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
897 | </p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
898 | <div align="right"><a href="#top">Up</a></div> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
899 | <hr /><hr /> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
900 | <a NAME="error_1" ID="error_1"></a> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
901 | <h2>error</h2> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
902 | <b>error</b>(<i>self, line_number, offset, text, check</i>) |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
903 | <p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
904 | Report an error, according to options. |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
905 | </p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
906 | <div align="right"><a href="#top">Up</a></div> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
907 | <hr /><hr /> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
908 | <a NAME="error_2" ID="error_2"></a> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
909 | <h2>error</h2> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
910 | <b>error</b>(<i>self, line_number, offset, text, check</i>) |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
911 | |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
912 | <div align="right"><a href="#top">Up</a></div> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
913 | <hr /><hr /> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
914 | <a NAME="error_args" ID="error_args"></a> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
915 | <h2>error_args</h2> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
916 | <b>error_args</b>(<i>self, line_number, offset, text, check, *args</i>) |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
917 | <p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
918 | Report an error, according to options. |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
919 | </p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
920 | <div align="right"><a href="#top">Up</a></div> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
921 | <hr /><hr /> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
922 | <a NAME="error_args_1" ID="error_args_1"></a> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
923 | <h2>error_args</h2> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
924 | <b>error_args</b>(<i>self, line_number, offset, code, check, *args</i>) |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
925 | <p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
926 | Report an error, according to options. |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
927 | </p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
928 | <div align="right"><a href="#top">Up</a></div> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
929 | <hr /><hr /> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
930 | <a NAME="excluded" ID="excluded"></a> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
931 | <h2>excluded</h2> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
932 | <b>excluded</b>(<i>self, filename, parent=None</i>) |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
933 | <p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
934 | Check if the file should be excluded. |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
935 | </p><p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
936 | Check if 'options.exclude' contains a pattern that matches filename. |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
937 | </p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
938 | <div align="right"><a href="#top">Up</a></div> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
939 | <hr /><hr /> |
5147
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
940 | <a NAME="expand_indent" ID="expand_indent"></a> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
941 | <h2>expand_indent</h2> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
942 | <b>expand_indent</b>(<i>line</i>) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
943 | <p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
944 | Return the amount of indentation. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
945 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
946 | Tabs are expanded to the next multiple of 8. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
947 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
948 | >>> expand_indent(' ') |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
949 | 4 |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
950 | >>> expand_indent('\t') |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
951 | 8 |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
952 | >>> expand_indent(' \t') |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
953 | 8 |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
954 | >>> expand_indent(' \t') |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
955 | 16 |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
956 | </p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
957 | <div align="right"><a href="#top">Up</a></div> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
958 | <hr /><hr /> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
959 | <a NAME="explicit_line_join" ID="explicit_line_join"></a> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
960 | <h2>explicit_line_join</h2> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
961 | <b>explicit_line_join</b>(<i>logical_line, tokens</i>) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
962 | <p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
963 | Avoid explicit line join between brackets. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
964 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
965 | The preferred way of wrapping long lines is by using Python's implied line |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
966 | continuation inside parentheses, brackets and braces. Long lines can be |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
967 | broken over multiple lines by wrapping expressions in parentheses. These |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
968 | should be used in preference to using a backslash for line continuation. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
969 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
970 | E502: aaa = [123, \\n 123] |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
971 | E502: aaa = ("bbb " \\n "ccc") |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
972 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
973 | Okay: aaa = [123,\n 123] |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
974 | Okay: aaa = ("bbb "\n "ccc") |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
975 | Okay: aaa = "bbb " \\n "ccc" |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
976 | Okay: aaa = 123 # \\ |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
977 | </p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
978 | <div align="right"><a href="#top">Up</a></div> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
979 | <hr /><hr /> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
980 | <a NAME="extraneous_whitespace" ID="extraneous_whitespace"></a> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
981 | <h2>extraneous_whitespace</h2> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
982 | <b>extraneous_whitespace</b>(<i>logical_line</i>) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
983 | <p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
984 | Avoid extraneous whitespace. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
985 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
986 | Avoid extraneous whitespace in these situations: |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
987 | - Immediately inside parentheses, brackets or braces. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
988 | - Immediately before a comma, semicolon, or colon. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
989 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
990 | Okay: spam(ham[1], {eggs: 2}) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
991 | E201: spam( ham[1], {eggs: 2}) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
992 | E201: spam(ham[ 1], {eggs: 2}) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
993 | E201: spam(ham[1], { eggs: 2}) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
994 | E202: spam(ham[1], {eggs: 2} ) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
995 | E202: spam(ham[1 ], {eggs: 2}) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
996 | E202: spam(ham[1], {eggs: 2 }) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
997 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
998 | E203: if x == 4: print x, y; x, y = y , x |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
999 | E203: if x == 4: print x, y ; x, y = y, x |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1000 | E203: if x == 4 : print x, y; x, y = y, x |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1001 | </p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1002 | <div align="right"><a href="#top">Up</a></div> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1003 | <hr /><hr /> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1004 | <a NAME="filename_match" ID="filename_match"></a> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1005 | <h2>filename_match</h2> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1006 | <b>filename_match</b>(<i>filename, patterns, default=True</i>) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1007 | <p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1008 | Check if patterns contains a pattern that matches filename. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1009 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1010 | If patterns is unspecified, this always returns True. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1011 | </p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1012 | <div align="right"><a href="#top">Up</a></div> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1013 | <hr /><hr /> |
6253
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1014 | <a NAME="generate_tokens" ID="generate_tokens"></a> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1015 | <h2>generate_tokens</h2> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1016 | <b>generate_tokens</b>(<i>self</i>) |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1017 | <p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1018 | Tokenize the file, run physical line checks and yield tokens. |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1019 | </p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1020 | <div align="right"><a href="#top">Up</a></div> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1021 | <hr /><hr /> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1022 | <a NAME="get_checks" ID="get_checks"></a> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1023 | <h2>get_checks</h2> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1024 | <b>get_checks</b>(<i>self, argument_name</i>) |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1025 | <p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1026 | Get all the checks for this category. |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1027 | </p><p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1028 | Find all globally visible functions where the first argument name |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1029 | starts with argument_name and which contain selected tests. |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1030 | </p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1031 | <div align="right"><a href="#top">Up</a></div> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1032 | <hr /><hr /> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1033 | <a NAME="get_count" ID="get_count"></a> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1034 | <h2>get_count</h2> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1035 | <b>get_count</b>(<i>self, prefix=''</i>) |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1036 | <p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1037 | Return the total count of errors and warnings. |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1038 | </p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1039 | <div align="right"><a href="#top">Up</a></div> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1040 | <hr /><hr /> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1041 | <a NAME="get_file_results" ID="get_file_results"></a> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1042 | <h2>get_file_results</h2> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1043 | <b>get_file_results</b>(<i>self</i>) |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1044 | <p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1045 | Return the count of errors and warnings for this file. |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1046 | </p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1047 | <div align="right"><a href="#top">Up</a></div> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1048 | <hr /><hr /> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1049 | <a NAME="get_file_results_1" ID="get_file_results_1"></a> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1050 | <h2>get_file_results</h2> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1051 | <b>get_file_results</b>(<i>self</i>) |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1052 | <p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1053 | Print the result and return the overall count for this file. |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1054 | </p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1055 | <div align="right"><a href="#top">Up</a></div> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1056 | <hr /><hr /> |
5147
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1057 | <a NAME="get_parser" ID="get_parser"></a> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1058 | <h2>get_parser</h2> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1059 | <b>get_parser</b>(<i>prog='pycodestyle', version=__version__</i>) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1060 | <p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1061 | Create the parser for the program. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1062 | </p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1063 | <div align="right"><a href="#top">Up</a></div> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1064 | <hr /><hr /> |
6253
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1065 | <a NAME="get_statistics" ID="get_statistics"></a> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1066 | <h2>get_statistics</h2> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1067 | <b>get_statistics</b>(<i>self, prefix=''</i>) |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1068 | <p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1069 | Get statistics for message codes that start with the prefix. |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1070 | </p><p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1071 | prefix='' matches all errors and warnings |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1072 | prefix='E' matches all errors |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1073 | prefix='W' matches all warnings |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1074 | prefix='E4' matches all errors that have to do with imports |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1075 | </p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1076 | <div align="right"><a href="#top">Up</a></div> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1077 | <hr /><hr /> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1078 | <a NAME="ignore_code" ID="ignore_code"></a> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1079 | <h2>ignore_code</h2> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1080 | <b>ignore_code</b>(<i>self, code</i>) |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1081 | <p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1082 | Check if the error code should be ignored. |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1083 | </p><p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1084 | If 'options.select' contains a prefix of the error code, |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1085 | return False. Else, if 'options.ignore' contains a prefix of |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1086 | the error code, return True. |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1087 | </p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1088 | <div align="right"><a href="#top">Up</a></div> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1089 | <hr /><hr /> |
5147
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1090 | <a NAME="imports_on_separate_lines" ID="imports_on_separate_lines"></a> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1091 | <h2>imports_on_separate_lines</h2> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1092 | <b>imports_on_separate_lines</b>(<i>logical_line</i>) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1093 | <p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1094 | Place imports on separate lines. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1095 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1096 | Okay: import os\nimport sys |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1097 | E401: import sys, os |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1098 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1099 | Okay: from subprocess import Popen, PIPE |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1100 | Okay: from myclas import MyClass |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1101 | Okay: from foo.bar.yourclass import YourClass |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1102 | Okay: import myclass |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1103 | Okay: import foo.bar.yourclass |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1104 | </p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1105 | <div align="right"><a href="#top">Up</a></div> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1106 | <hr /><hr /> |
6253
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1107 | <a NAME="increment_logical_line" ID="increment_logical_line"></a> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1108 | <h2>increment_logical_line</h2> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1109 | <b>increment_logical_line</b>(<i>self</i>) |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1110 | <p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1111 | Signal a new logical line. |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1112 | </p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1113 | <div align="right"><a href="#top">Up</a></div> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1114 | <hr /><hr /> |
5147
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1115 | <a NAME="indentation" ID="indentation"></a> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1116 | <h2>indentation</h2> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1117 | <b>indentation</b>(<i>logical_line, previous_logical, indent_char, indent_level, previous_indent_level</i>) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1118 | <p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1119 | Use 4 spaces per indentation level. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1120 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1121 | For really old code that you don't want to mess up, you can continue to |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1122 | use 8-space tabs. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1123 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1124 | Okay: a = 1 |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1125 | Okay: if a == 0:\n a = 1 |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1126 | E111: a = 1 |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1127 | E114: # a = 1 |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1128 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1129 | Okay: for item in items:\n pass |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1130 | E112: for item in items:\npass |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1131 | E115: for item in items:\n# Hi\n pass |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1132 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1133 | Okay: a = 1\nb = 2 |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1134 | E113: a = 1\n b = 2 |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1135 | E116: a = 1\n # b = 2 |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1136 | </p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1137 | <div align="right"><a href="#top">Up</a></div> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1138 | <hr /><hr /> |
6253
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1139 | <a NAME="init_checker_state" ID="init_checker_state"></a> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1140 | <h2>init_checker_state</h2> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1141 | <b>init_checker_state</b>(<i>self, name, argument_names</i>) |
5147
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1142 | <p> |
6253
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1143 | Prepare custom state for the specific checker plugin. |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1144 | </p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1145 | <div align="right"><a href="#top">Up</a></div> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1146 | <hr /><hr /> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1147 | <a NAME="init_file" ID="init_file"></a> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1148 | <h2>init_file</h2> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1149 | <b>init_file</b>(<i>self, filename, lines, expected, line_offset</i>) |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1150 | <p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1151 | Signal a new file. |
5147
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1152 | </p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1153 | <div align="right"><a href="#top">Up</a></div> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1154 | <hr /><hr /> |
6253
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1155 | <a NAME="init_file_1" ID="init_file_1"></a> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1156 | <h2>init_file</h2> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1157 | <b>init_file</b>(<i>self, filename, lines, expected, line_offset</i>) |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1158 | <p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1159 | Signal a new file. |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1160 | </p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1161 | <div align="right"><a href="#top">Up</a></div> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1162 | <hr /><hr /> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1163 | <a NAME="init_report" ID="init_report"></a> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1164 | <h2>init_report</h2> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1165 | <b>init_report</b>(<i>self, reporter=None</i>) |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1166 | <p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1167 | Initialize the report instance. |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1168 | </p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1169 | <div align="right"><a href="#top">Up</a></div> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1170 | <hr /><hr /> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1171 | <a NAME="input_dir" ID="input_dir"></a> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1172 | <h2>input_dir</h2> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1173 | <b>input_dir</b>(<i>self, dirname</i>) |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1174 | <p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1175 | Check all files in this directory and all subdirectories. |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1176 | </p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1177 | <div align="right"><a href="#top">Up</a></div> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1178 | <hr /><hr /> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1179 | <a NAME="input_file" ID="input_file"></a> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1180 | <h2>input_file</h2> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1181 | <b>input_file</b>(<i>self, filename, lines=None, expected=None, line_offset=0</i>) |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1182 | <p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1183 | Run all checks on a Python source file. |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1184 | </p> |
5147
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1185 | <div align="right"><a href="#top">Up</a></div> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1186 | <hr /><hr /> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1187 | <a NAME="is_string_literal" ID="is_string_literal"></a> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1188 | <h2>is_string_literal</h2> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1189 | <b>is_string_literal</b>(<i>line</i>) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1190 | |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1191 | <div align="right"><a href="#top">Up</a></div> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1192 | <hr /><hr /> |
6253
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1193 | <a NAME="lru_cache" ID="lru_cache"></a> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1194 | <h2>lru_cache</h2> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1195 | <b>lru_cache</b>(<i>maxsize=128</i>) |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1196 | |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1197 | <div align="right"><a href="#top">Up</a></div> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1198 | <hr /><hr /> |
5147
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1199 | <a NAME="maximum_line_length" ID="maximum_line_length"></a> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1200 | <h2>maximum_line_length</h2> |
6253
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1201 | <b>maximum_line_length</b>(<i>physical_line, max_line_length, multiline, line_number, noqa</i>) |
5147
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1202 | <p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1203 | Limit all lines to a maximum of 79 characters. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1204 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1205 | There are still many devices around that are limited to 80 character |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1206 | lines; plus, limiting windows to 80 characters makes it possible to have |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1207 | several windows side-by-side. The default wrapping on such devices looks |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1208 | ugly. Therefore, please limit all lines to a maximum of 79 characters. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1209 | For flowing long blocks of text (docstrings or comments), limiting the |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1210 | length to 72 characters is recommended. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1211 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1212 | Reports error E501. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1213 | </p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1214 | <div align="right"><a href="#top">Up</a></div> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1215 | <hr /><hr /> |
6253
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1216 | <a NAME="maybe_check_physical" ID="maybe_check_physical"></a> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1217 | <h2>maybe_check_physical</h2> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1218 | <b>maybe_check_physical</b>(<i>self, token</i>) |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1219 | <p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1220 | If appropriate (based on token), check current physical line(s). |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1221 | </p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1222 | <div align="right"><a href="#top">Up</a></div> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1223 | <hr /><hr /> |
5147
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1224 | <a NAME="missing_whitespace" ID="missing_whitespace"></a> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1225 | <h2>missing_whitespace</h2> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1226 | <b>missing_whitespace</b>(<i>logical_line</i>) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1227 | <p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1228 | Each comma, semicolon or colon should be followed by whitespace. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1229 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1230 | Okay: [a, b] |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1231 | Okay: (3,) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1232 | Okay: a[1:4] |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1233 | Okay: a[:4] |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1234 | Okay: a[1:] |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1235 | Okay: a[1:4:2] |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1236 | E231: ['a','b'] |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1237 | E231: foo(bar,baz) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1238 | E231: [{'a':'b'}] |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1239 | </p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1240 | <div align="right"><a href="#top">Up</a></div> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1241 | <hr /><hr /> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1242 | <a NAME="missing_whitespace_after_import_keyword" ID="missing_whitespace_after_import_keyword"></a> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1243 | <h2>missing_whitespace_after_import_keyword</h2> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1244 | <b>missing_whitespace_after_import_keyword</b>(<i>logical_line</i>) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1245 | <p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1246 | Multiple imports in form from x import (a, b, c) should have space |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1247 | between import statement and parenthesised name list. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1248 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1249 | Okay: from foo import (bar, baz) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1250 | E275: from foo import(bar, baz) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1251 | E275: from importable.module import(bar, baz) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1252 | </p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1253 | <div align="right"><a href="#top">Up</a></div> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1254 | <hr /><hr /> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1255 | <a NAME="missing_whitespace_around_operator" ID="missing_whitespace_around_operator"></a> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1256 | <h2>missing_whitespace_around_operator</h2> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1257 | <b>missing_whitespace_around_operator</b>(<i>logical_line, tokens</i>) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1258 | <p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1259 | Surround operators with a single space on either side. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1260 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1261 | - Always surround these binary operators with a single space on |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1262 | either side: assignment (=), augmented assignment (+=, -= etc.), |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1263 | comparisons (==, <, >, !=, <=, >=, in, not in, is, is not), |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1264 | Booleans (and, or, not). |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1265 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1266 | - If operators with different priorities are used, consider adding |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1267 | whitespace around the operators with the lowest priorities. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1268 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1269 | Okay: i = i + 1 |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1270 | Okay: submitted += 1 |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1271 | Okay: x = x * 2 - 1 |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1272 | Okay: hypot2 = x * x + y * y |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1273 | Okay: c = (a + b) * (a - b) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1274 | Okay: foo(bar, key='word', *args, **kwargs) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1275 | Okay: alpha[:-i] |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1276 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1277 | E225: i=i+1 |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1278 | E225: submitted +=1 |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1279 | E225: x = x /2 - 1 |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1280 | E225: z = x **y |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1281 | E226: c = (a+b) * (a-b) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1282 | E226: hypot2 = x*x + y*y |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1283 | E227: c = a|b |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1284 | E228: msg = fmt%(errno, errmsg) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1285 | </p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1286 | <div align="right"><a href="#top">Up</a></div> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1287 | <hr /><hr /> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1288 | <a NAME="module_imports_on_top_of_file" ID="module_imports_on_top_of_file"></a> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1289 | <h2>module_imports_on_top_of_file</h2> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1290 | <b>module_imports_on_top_of_file</b>(<i>logical_line, indent_level, checker_state, noqa</i>) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1291 | <p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1292 | Place imports at the top of the file. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1293 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1294 | Always put imports at the top of the file, just after any module comments |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1295 | and docstrings, and before module globals and constants. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1296 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1297 | Okay: import os |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1298 | Okay: # this is a comment\nimport os |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1299 | Okay: '''this is a module docstring'''\nimport os |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1300 | Okay: r'''this is a module docstring'''\nimport os |
5435
44a6fc2828bc
Upgraded pycodestyle to version 2.2.0+.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5313
diff
changeset
|
1301 | Okay: |
44a6fc2828bc
Upgraded pycodestyle to version 2.2.0+.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5313
diff
changeset
|
1302 | try:\n\timport x\nexcept ImportError:\n\tpass\nelse:\n\tpass\nimport y |
44a6fc2828bc
Upgraded pycodestyle to version 2.2.0+.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5313
diff
changeset
|
1303 | Okay: |
44a6fc2828bc
Upgraded pycodestyle to version 2.2.0+.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5313
diff
changeset
|
1304 | try:\n\timport x\nexcept ImportError:\n\tpass\nfinally:\n\tpass\nimport y |
44a6fc2828bc
Upgraded pycodestyle to version 2.2.0+.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5313
diff
changeset
|
1305 | </p><p> |
5147
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1306 | E402: a=1\nimport os |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1307 | E402: 'One string'\n"Two string"\nimport os |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1308 | E402: a=1\nfrom sys import x |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1309 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1310 | Okay: if x:\n import os |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1311 | </p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1312 | <div align="right"><a href="#top">Up</a></div> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1313 | <hr /><hr /> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1314 | <a NAME="mute_string" ID="mute_string"></a> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1315 | <h2>mute_string</h2> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1316 | <b>mute_string</b>(<i>text</i>) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1317 | <p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1318 | Replace contents with 'xxx' to prevent syntax matching. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1319 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1320 | >>> mute_string('"abc"') |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1321 | '"xxx"' |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1322 | >>> mute_string("'''abc'''") |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1323 | "'''xxx'''" |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1324 | >>> mute_string("r'abc'") |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1325 | "r'xxx'" |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1326 | </p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1327 | <div align="right"><a href="#top">Up</a></div> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1328 | <hr /><hr /> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1329 | <a NAME="normalize_paths" ID="normalize_paths"></a> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1330 | <h2>normalize_paths</h2> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1331 | <b>normalize_paths</b>(<i>value, parent=os.curdir</i>) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1332 | <p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1333 | Parse a comma-separated list of paths. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1334 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1335 | Return a list of absolute paths. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1336 | </p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1337 | <div align="right"><a href="#top">Up</a></div> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1338 | <hr /><hr /> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1339 | <a NAME="parse_udiff" ID="parse_udiff"></a> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1340 | <h2>parse_udiff</h2> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1341 | <b>parse_udiff</b>(<i>diff, patterns=None, parent='.'</i>) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1342 | <p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1343 | Return a dictionary of matching lines. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1344 | </p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1345 | <div align="right"><a href="#top">Up</a></div> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1346 | <hr /><hr /> |
6253
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1347 | <a NAME="print_benchmark" ID="print_benchmark"></a> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1348 | <h2>print_benchmark</h2> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1349 | <b>print_benchmark</b>(<i>self</i>) |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1350 | <p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1351 | Print benchmark numbers. |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1352 | </p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1353 | <div align="right"><a href="#top">Up</a></div> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1354 | <hr /><hr /> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1355 | <a NAME="print_statistics" ID="print_statistics"></a> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1356 | <h2>print_statistics</h2> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1357 | <b>print_statistics</b>(<i>self, prefix=''</i>) |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1358 | <p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1359 | Print overall statistics (number of errors and warnings). |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1360 | </p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1361 | <div align="right"><a href="#top">Up</a></div> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1362 | <hr /><hr /> |
5147
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1363 | <a NAME="process_options" ID="process_options"></a> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1364 | <h2>process_options</h2> |
6253
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1365 | <b>process_options</b>(<i>arglist=None, parse_argv=False, config_file=None, parser=None, verbose=None</i>) |
5147
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1366 | <p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1367 | Process options passed either via arglist or via command line args. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1368 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1369 | Passing in the ``config_file`` parameter allows other tools, such as flake8 |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1370 | to specify their own options to be processed in pycodestyle. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1371 | </p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1372 | <div align="right"><a href="#top">Up</a></div> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1373 | <hr /><hr /> |
6253
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1374 | <a NAME="python_3000_async_await_keywords" ID="python_3000_async_await_keywords"></a> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1375 | <h2>python_3000_async_await_keywords</h2> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1376 | <b>python_3000_async_await_keywords</b>(<i>logical_line, tokens</i>) |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1377 | <p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1378 | 'async' and 'await' are reserved keywords starting with Python 3.7 |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1379 | </p><p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1380 | W606: async = 42 |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1381 | W606: await = 42 |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1382 | Okay: async def read_data(db):\n data = await db.fetch('SELECT ...') |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1383 | </p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1384 | <div align="right"><a href="#top">Up</a></div> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1385 | <hr /><hr /> |
5147
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1386 | <a NAME="python_3000_backticks" ID="python_3000_backticks"></a> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1387 | <h2>python_3000_backticks</h2> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1388 | <b>python_3000_backticks</b>(<i>logical_line</i>) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1389 | <p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1390 | Use repr() instead of backticks in Python 3. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1391 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1392 | Okay: val = repr(1 + 2) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1393 | W604: val = `1 + 2` |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1394 | </p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1395 | <div align="right"><a href="#top">Up</a></div> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1396 | <hr /><hr /> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1397 | <a NAME="python_3000_has_key" ID="python_3000_has_key"></a> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1398 | <h2>python_3000_has_key</h2> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1399 | <b>python_3000_has_key</b>(<i>logical_line, noqa</i>) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1400 | <p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1401 | The {}.has_key() method is removed in Python 3: use the 'in' operator. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1402 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1403 | Okay: if "alph" in d:\n print d["alph"] |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1404 | W601: assert d.has_key('alph') |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1405 | </p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1406 | <div align="right"><a href="#top">Up</a></div> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1407 | <hr /><hr /> |
6253
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1408 | <a NAME="python_3000_invalid_escape_sequence" ID="python_3000_invalid_escape_sequence"></a> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1409 | <h2>python_3000_invalid_escape_sequence</h2> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1410 | <b>python_3000_invalid_escape_sequence</b>(<i>logical_line, tokens</i>) |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1411 | <p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1412 | Invalid escape sequences are deprecated in Python 3.6. |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1413 | </p><p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1414 | Okay: regex = r'\.png$' |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1415 | W605: regex = '\.png$' |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1416 | </p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1417 | <div align="right"><a href="#top">Up</a></div> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1418 | <hr /><hr /> |
5147
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1419 | <a NAME="python_3000_not_equal" ID="python_3000_not_equal"></a> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1420 | <h2>python_3000_not_equal</h2> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1421 | <b>python_3000_not_equal</b>(<i>logical_line</i>) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1422 | <p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1423 | New code should always use != instead of <>. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1424 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1425 | The older syntax is removed in Python 3. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1426 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1427 | Okay: if a != 'no': |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1428 | W603: if a <> 'no': |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1429 | </p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1430 | <div align="right"><a href="#top">Up</a></div> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1431 | <hr /><hr /> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1432 | <a NAME="python_3000_raise_comma" ID="python_3000_raise_comma"></a> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1433 | <h2>python_3000_raise_comma</h2> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1434 | <b>python_3000_raise_comma</b>(<i>logical_line</i>) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1435 | <p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1436 | When raising an exception, use "raise ValueError('message')". |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1437 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1438 | The older form is removed in Python 3. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1439 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1440 | Okay: raise DummyError("Message") |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1441 | W602: raise DummyError, "Message" |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1442 | </p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1443 | <div align="right"><a href="#top">Up</a></div> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1444 | <hr /><hr /> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1445 | <a NAME="read_config" ID="read_config"></a> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1446 | <h2>read_config</h2> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1447 | <b>read_config</b>(<i>options, args, arglist, parser</i>) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1448 | <p> |
5291
e93d14b48c34
Corrected some code style issues and regenerated the source docu.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5147
diff
changeset
|
1449 | Read and parse configurations. |
5147
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1450 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1451 | If a config file is specified on the command line with the "--config" |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1452 | option, then only it is used for configuration. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1453 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1454 | Otherwise, the user configuration (~/.config/pycodestyle) and any local |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1455 | configurations in the current directory or above will be merged together |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1456 | (in that order) using the read method of ConfigParser. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1457 | </p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1458 | <div align="right"><a href="#top">Up</a></div> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1459 | <hr /><hr /> |
6253
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1460 | <a NAME="readline" ID="readline"></a> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1461 | <h2>readline</h2> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1462 | <b>readline</b>(<i>self</i>) |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1463 | <p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1464 | Get the next line from the input buffer. |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1465 | </p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1466 | <div align="right"><a href="#top">Up</a></div> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1467 | <hr /><hr /> |
5147
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1468 | <a NAME="readlines" ID="readlines"></a> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1469 | <h2>readlines</h2> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1470 | <b>readlines</b>(<i>filename</i>) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1471 | <p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1472 | Read the source code. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1473 | </p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1474 | <div align="right"><a href="#top">Up</a></div> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1475 | <hr /><hr /> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1476 | <a NAME="readlines_1" ID="readlines_1"></a> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1477 | <h2>readlines</h2> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1478 | <b>readlines</b>(<i>filename</i>) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1479 | <p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1480 | Read the source code. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1481 | </p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1482 | <div align="right"><a href="#top">Up</a></div> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1483 | <hr /><hr /> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1484 | <a NAME="register_check" ID="register_check"></a> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1485 | <h2>register_check</h2> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1486 | <b>register_check</b>(<i>check, codes=None</i>) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1487 | <p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1488 | Register a new check object. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1489 | </p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1490 | <div align="right"><a href="#top">Up</a></div> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1491 | <hr /><hr /> |
6253
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1492 | <a NAME="report_invalid_syntax" ID="report_invalid_syntax"></a> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1493 | <h2>report_invalid_syntax</h2> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1494 | <b>report_invalid_syntax</b>(<i>self</i>) |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1495 | <p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1496 | Check if the syntax is valid. |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1497 | </p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1498 | <div align="right"><a href="#top">Up</a></div> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1499 | <hr /><hr /> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1500 | <a NAME="run_check" ID="run_check"></a> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1501 | <h2>run_check</h2> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1502 | <b>run_check</b>(<i>self, check, argument_names</i>) |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1503 | <p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1504 | Run a check plugin. |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1505 | </p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1506 | <div align="right"><a href="#top">Up</a></div> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1507 | <hr /><hr /> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1508 | <a NAME="start" ID="start"></a> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1509 | <h2>start</h2> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1510 | <b>start</b>(<i>self</i>) |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1511 | <p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1512 | Start the timer. |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1513 | </p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1514 | <div align="right"><a href="#top">Up</a></div> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1515 | <hr /><hr /> |
5147
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1516 | <a NAME="stdin_get_value" ID="stdin_get_value"></a> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1517 | <h2>stdin_get_value</h2> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1518 | <b>stdin_get_value</b>(<i></i>) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1519 | <p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1520 | Read the value from stdin. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1521 | </p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1522 | <div align="right"><a href="#top">Up</a></div> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1523 | <hr /><hr /> |
6253
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1524 | <a NAME="stop" ID="stop"></a> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1525 | <h2>stop</h2> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1526 | <b>stop</b>(<i>self</i>) |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1527 | <p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1528 | Stop the timer. |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1529 | </p> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1530 | <div align="right"><a href="#top">Up</a></div> |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1531 | <hr /><hr /> |
5147
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1532 | <a NAME="tabs_obsolete" ID="tabs_obsolete"></a> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1533 | <h2>tabs_obsolete</h2> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1534 | <b>tabs_obsolete</b>(<i>physical_line</i>) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1535 | <p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1536 | For new projects, spaces-only are strongly recommended over tabs. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1537 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1538 | Okay: if True:\n return |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1539 | W191: if True:\n\treturn |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1540 | </p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1541 | <div align="right"><a href="#top">Up</a></div> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1542 | <hr /><hr /> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1543 | <a NAME="tabs_or_spaces" ID="tabs_or_spaces"></a> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1544 | <h2>tabs_or_spaces</h2> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1545 | <b>tabs_or_spaces</b>(<i>physical_line, indent_char</i>) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1546 | <p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1547 | Never mix tabs and spaces. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1548 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1549 | The most popular way of indenting Python is with spaces only. The |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1550 | second-most popular way is with tabs only. Code indented with a mixture |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1551 | of tabs and spaces should be converted to using spaces exclusively. When |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1552 | invoking the Python command line interpreter with the -t option, it issues |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1553 | warnings about code that illegally mixes tabs and spaces. When using -tt |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1554 | these warnings become errors. These options are highly recommended! |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1555 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1556 | Okay: if a == 0:\n a = 1\n b = 1 |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1557 | E101: if a == 0:\n a = 1\n\tb = 1 |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1558 | </p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1559 | <div align="right"><a href="#top">Up</a></div> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1560 | <hr /><hr /> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1561 | <a NAME="trailing_blank_lines" ID="trailing_blank_lines"></a> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1562 | <h2>trailing_blank_lines</h2> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1563 | <b>trailing_blank_lines</b>(<i>physical_line, lines, line_number, total_lines</i>) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1564 | <p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1565 | Trailing blank lines are superfluous. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1566 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1567 | Okay: spam(1) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1568 | W391: spam(1)\n |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1569 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1570 | However the last line should end with a new line (warning W292). |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1571 | </p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1572 | <div align="right"><a href="#top">Up</a></div> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1573 | <hr /><hr /> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1574 | <a NAME="trailing_whitespace" ID="trailing_whitespace"></a> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1575 | <h2>trailing_whitespace</h2> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1576 | <b>trailing_whitespace</b>(<i>physical_line</i>) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1577 | <p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1578 | Trailing whitespace is superfluous. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1579 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1580 | The warning returned varies on whether the line itself is blank, for easier |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1581 | filtering for those who want to indent their blank lines. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1582 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1583 | Okay: spam(1)\n# |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1584 | W291: spam(1) \n# |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1585 | W293: class Foo(object):\n \n bang = 12 |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1586 | </p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1587 | <div align="right"><a href="#top">Up</a></div> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1588 | <hr /><hr /> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1589 | <a NAME="update_counts" ID="update_counts"></a> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1590 | <h2>update_counts</h2> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1591 | <b>update_counts</b>(<i>s, counts</i>) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1592 | <p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1593 | Adds one to the counts of each appearance of characters in s, |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1594 | for characters in counts |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1595 | </p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1596 | <div align="right"><a href="#top">Up</a></div> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1597 | <hr /><hr /> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1598 | <a NAME="whitespace_around_comma" ID="whitespace_around_comma"></a> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1599 | <h2>whitespace_around_comma</h2> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1600 | <b>whitespace_around_comma</b>(<i>logical_line</i>) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1601 | <p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1602 | Avoid extraneous whitespace after a comma or a colon. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1603 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1604 | Note: these checks are disabled by default |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1605 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1606 | Okay: a = (1, 2) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1607 | E241: a = (1, 2) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1608 | E242: a = (1,\t2) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1609 | </p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1610 | <div align="right"><a href="#top">Up</a></div> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1611 | <hr /><hr /> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1612 | <a NAME="whitespace_around_keywords" ID="whitespace_around_keywords"></a> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1613 | <h2>whitespace_around_keywords</h2> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1614 | <b>whitespace_around_keywords</b>(<i>logical_line</i>) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1615 | <p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1616 | Avoid extraneous whitespace around keywords. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1617 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1618 | Okay: True and False |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1619 | E271: True and False |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1620 | E272: True and False |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1621 | E273: True and\tFalse |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1622 | E274: True\tand False |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1623 | </p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1624 | <div align="right"><a href="#top">Up</a></div> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1625 | <hr /><hr /> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1626 | <a NAME="whitespace_around_named_parameter_equals" ID="whitespace_around_named_parameter_equals"></a> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1627 | <h2>whitespace_around_named_parameter_equals</h2> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1628 | <b>whitespace_around_named_parameter_equals</b>(<i>logical_line, tokens</i>) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1629 | <p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1630 | Don't use spaces around the '=' sign in function arguments. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1631 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1632 | Don't use spaces around the '=' sign when used to indicate a |
6253
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1633 | keyword argument or a default parameter value, except when using a type |
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1634 | annotation. |
5147
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1635 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1636 | Okay: def complex(real, imag=0.0): |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1637 | Okay: return magic(r=real, i=imag) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1638 | Okay: boolean(a == b) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1639 | Okay: boolean(a != b) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1640 | Okay: boolean(a <= b) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1641 | Okay: boolean(a >= b) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1642 | Okay: def foo(arg: int = 42): |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1643 | Okay: async def foo(arg: int = 42): |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1644 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1645 | E251: def complex(real, imag = 0.0): |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1646 | E251: return magic(r = real, i = imag) |
6253
a148632e9610
pip interface plugin: fixed issues with the pip interface after they moved the index to the new site (pypi.org).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
5516
diff
changeset
|
1647 | E252: def complex(real, image: float=0.0): |
5147
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1648 | </p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1649 | <div align="right"><a href="#top">Up</a></div> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1650 | <hr /><hr /> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1651 | <a NAME="whitespace_around_operator" ID="whitespace_around_operator"></a> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1652 | <h2>whitespace_around_operator</h2> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1653 | <b>whitespace_around_operator</b>(<i>logical_line</i>) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1654 | <p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1655 | Avoid extraneous whitespace around an operator. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1656 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1657 | Okay: a = 12 + 3 |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1658 | E221: a = 4 + 5 |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1659 | E222: a = 4 + 5 |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1660 | E223: a = 4\t+ 5 |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1661 | E224: a = 4 +\t5 |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1662 | </p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1663 | <div align="right"><a href="#top">Up</a></div> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1664 | <hr /><hr /> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1665 | <a NAME="whitespace_before_comment" ID="whitespace_before_comment"></a> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1666 | <h2>whitespace_before_comment</h2> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1667 | <b>whitespace_before_comment</b>(<i>logical_line, tokens</i>) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1668 | <p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1669 | Separate inline comments by at least two spaces. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1670 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1671 | An inline comment is a comment on the same line as a statement. Inline |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1672 | comments should be separated by at least two spaces from the statement. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1673 | They should start with a # and a single space. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1674 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1675 | Each line of a block comment starts with a # and a single space |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1676 | (unless it is indented text inside the comment). |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1677 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1678 | Okay: x = x + 1 # Increment x |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1679 | Okay: x = x + 1 # Increment x |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1680 | Okay: # Block comment |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1681 | E261: x = x + 1 # Increment x |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1682 | E262: x = x + 1 #Increment x |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1683 | E262: x = x + 1 # Increment x |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1684 | E265: #Block comment |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1685 | E266: ### Block comment |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1686 | </p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1687 | <div align="right"><a href="#top">Up</a></div> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1688 | <hr /><hr /> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1689 | <a NAME="whitespace_before_parameters" ID="whitespace_before_parameters"></a> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1690 | <h2>whitespace_before_parameters</h2> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1691 | <b>whitespace_before_parameters</b>(<i>logical_line, tokens</i>) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1692 | <p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1693 | Avoid extraneous whitespace. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1694 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1695 | Avoid extraneous whitespace in the following situations: |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1696 | - before the open parenthesis that starts the argument list of a |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1697 | function call. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1698 | - before the open parenthesis that starts an indexing or slicing. |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1699 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1700 | Okay: spam(1) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1701 | E211: spam (1) |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1702 | </p><p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1703 | Okay: dict['key'] = list[index] |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1704 | E211: dict ['key'] = list[index] |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1705 | E211: dict['key'] = list [index] |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1706 | </p> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1707 | <div align="right"><a href="#top">Up</a></div> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1708 | <hr /> |
d39dd5cee0c8
Renamed pep8.py to pycodestyle.py in order to track the upstream renaming.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1709 | </body></html> |