@@ -111,6 +111,33 @@ Or you can display how often each error was found::
111111 612 W601 .has_key() is deprecated, use 'in'
112112 1188 W602 deprecated form of raising exception
113113
114+ You can also make pep8.py show the error text in different formats by using --format having options default/pylint/custom::
115+
116+ $ pep8 testsuite/E40.py --format=default
117+ testsuite/E40.py:2:10: E401 multiple imports on one line
118+
119+ $ pep8 testsuite/E40.py --format=pylint
120+ testsuite/E40.py:2: [E401] multiple imports on one line
121+
122+ $ pep8 testsuite/E40.py --format='%(path)s|%(row)d|%(col)d| %(code)s %(text)s'
123+ testsuite/E40.py|2|10| E401 multiple imports on one line
124+
125+ Variables in the ``custom `` format option
126+
127+ +----------------+------------------+
128+ | **Variable ** | **Significance ** |
129+ +================+==================+
130+ | ``path `` | File name |
131+ +----------------+------------------+
132+ | ``row `` | Row number |
133+ +----------------+------------------+
134+ | ``col `` | Column number |
135+ +----------------+------------------+
136+ | ``code `` | Error code |
137+ +----------------+------------------+
138+ | ``text `` | Error text |
139+ +----------------+------------------+
140+
114141Quick help is available on the command line::
115142
116143 $ pep8 -h
0 commit comments