~ibmcharmers/charms/xenial/ibm-cinder-storwize-svc/trunk

« back to all changes in this revision

Viewing changes to .tox/py35/lib/python3.5/site-packages/pycodestyle-2.3.1.dist-info/METADATA

  • Committer: Ankammarao
  • Date: 2017-03-06 05:11:42 UTC
  • Revision ID: achittet@in.ibm.com-20170306051142-dpg27z4es1k56hfn
Marked tests folder executable

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Metadata-Version: 2.0
 
2
Name: pycodestyle
 
3
Version: 2.3.1
 
4
Summary: Python style guide checker
 
5
Home-page: https://pycodestyle.readthedocs.io/
 
6
Author: Ian Lee
 
7
Author-email: IanLee1521@gmail.com
 
8
License: Expat license
 
9
Keywords: pycodestyle,pep8,PEP 8,PEP-8,PEP8
 
10
Platform: UNKNOWN
 
11
Classifier: Development Status :: 5 - Production/Stable
 
12
Classifier: Environment :: Console
 
13
Classifier: Intended Audience :: Developers
 
14
Classifier: License :: OSI Approved :: MIT License
 
15
Classifier: Operating System :: OS Independent
 
16
Classifier: Programming Language :: Python
 
17
Classifier: Programming Language :: Python :: 2
 
18
Classifier: Programming Language :: Python :: 3
 
19
Classifier: Topic :: Software Development :: Libraries :: Python Modules
 
20
 
 
21
pycodestyle (formerly called pep8) - Python style guide checker
 
22
===============================================================
 
23
 
 
24
.. image:: https://img.shields.io/travis/PyCQA/pycodestyle.svg
 
25
   :target: https://travis-ci.org/PyCQA/pycodestyle
 
26
   :alt: Build status
 
27
 
 
28
.. image:: https://readthedocs.org/projects/pycodestyle/badge/?version=latest
 
29
    :target: https://pycodestyle.readthedocs.io
 
30
    :alt: Documentation Status
 
31
 
 
32
.. image:: https://img.shields.io/pypi/wheel/pycodestyle.svg
 
33
   :target: https://pypi.python.org/pypi/pycodestyle
 
34
   :alt: Wheel Status
 
35
 
 
36
.. image:: https://badges.gitter.im/PyCQA/pycodestyle.svg
 
37
   :alt: Join the chat at https://gitter.im/PyCQA/pycodestyle
 
38
   :target: https://gitter.im/PyCQA/pycodestyle?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge
 
39
 
 
40
pycodestyle is a tool to check your Python code against some of the style
 
41
conventions in `PEP 8`_.
 
42
 
 
43
.. _PEP 8: http://www.python.org/dev/peps/pep-0008/
 
44
 
 
45
.. note::
 
46
 
 
47
    This package used to be called ``pep8`` but was renamed to ``pycodestyle``
 
48
    to reduce confusion. Further discussion can be found `in the issue where
 
49
    Guido requested this
 
50
    change <https://github.com/PyCQA/pycodestyle/issues/466>`_, or in the
 
51
    lightning talk at PyCon 2016 by @IanLee1521:
 
52
    `slides <https://speakerdeck.com/ianlee1521/pep8-vs-pep-8>`_
 
53
    `video <https://youtu.be/PulzIT8KYLk?t=36m>`_.
 
54
 
 
55
Features
 
56
--------
 
57
 
 
58
* Plugin architecture: Adding new checks is easy.
 
59
 
 
60
* Parseable output: Jump to error location in your editor.
 
61
 
 
62
* Small: Just one Python file, requires only stdlib. You can use just
 
63
  the ``pycodestyle.py`` file for this purpose.
 
64
 
 
65
* Comes with a comprehensive test suite.
 
66
 
 
67
Installation
 
68
------------
 
69
 
 
70
You can install, upgrade, and uninstall ``pycodestyle.py`` with these commands::
 
71
 
 
72
  $ pip install pycodestyle
 
73
  $ pip install --upgrade pycodestyle
 
74
  $ pip uninstall pycodestyle
 
75
 
 
76
There's also a package for Debian/Ubuntu, but it's not always the
 
77
latest version.
 
78
 
 
79
Example usage and output
 
80
------------------------
 
81
 
 
82
::
 
83
 
 
84
  $ pycodestyle --first optparse.py
 
85
  optparse.py:69:11: E401 multiple imports on one line
 
86
  optparse.py:77:1: E302 expected 2 blank lines, found 1
 
87
  optparse.py:88:5: E301 expected 1 blank line, found 0
 
88
  optparse.py:222:34: W602 deprecated form of raising exception
 
89
  optparse.py:347:31: E211 whitespace before '('
 
90
  optparse.py:357:17: E201 whitespace after '{'
 
91
  optparse.py:472:29: E221 multiple spaces before operator
 
92
  optparse.py:544:21: W601 .has_key() is deprecated, use 'in'
 
93
 
 
94
You can also make ``pycodestyle.py`` show the source code for each error, and
 
95
even the relevant text from PEP 8::
 
96
 
 
97
  $ pycodestyle --show-source --show-pep8 testsuite/E40.py
 
98
  testsuite/E40.py:2:10: E401 multiple imports on one line
 
99
  import os, sys
 
100
           ^
 
101
      Imports should usually be on separate lines.
 
102
 
 
103
      Okay: import os\nimport sys
 
104
      E401: import sys, os
 
105
 
 
106
 
 
107
Or you can display how often each error was found::
 
108
 
 
109
  $ pycodestyle --statistics -qq Python-2.5/Lib
 
110
  232     E201 whitespace after '['
 
111
  599     E202 whitespace before ')'
 
112
  631     E203 whitespace before ','
 
113
  842     E211 whitespace before '('
 
114
  2531    E221 multiple spaces before operator
 
115
  4473    E301 expected 1 blank line, found 0
 
116
  4006    E302 expected 2 blank lines, found 1
 
117
  165     E303 too many blank lines (4)
 
118
  325     E401 multiple imports on one line
 
119
  3615    E501 line too long (82 characters)
 
120
  612     W601 .has_key() is deprecated, use 'in'
 
121
  1188    W602 deprecated form of raising exception
 
122
 
 
123
Links
 
124
-----
 
125
 
 
126
* `Read the documentation <https://pycodestyle.readthedocs.io/>`_
 
127
 
 
128
* `Fork me on GitHub <http://github.com/PyCQA/pycodestyle>`_
 
129
 
 
130
 
 
131
Changelog
 
132
=========
 
133
 
 
134
2.3.1 (2017-01-31)
 
135
------------------
 
136
 
 
137
Bugs:
 
138
 
 
139
* Fix regression in detection of E302 and E306; #618, #620
 
140
 
 
141
2.3.0 (2017-01-30)
 
142
------------------
 
143
 
 
144
New Checks:
 
145
 
 
146
* Add E722 warning for bare ``except`` clauses
 
147
* Report E704 for async function definitions (``async def``)
 
148
 
 
149
Bugs:
 
150
 
 
151
* Fix another E305 false positive for variables beginning with "class" or
 
152
  "def"
 
153
* Fix detection of multiple spaces betwen ``async`` and ``def``
 
154
* Fix handling of variable annotations. Stop reporting E701 on Python 3.6 for
 
155
  variable annotations.
 
156
 
 
157
2.2.0 (2016-11-14)
 
158
------------------
 
159
 
 
160
Announcements:
 
161
 
 
162
* Added Make target to obtain proper tarball file permissions; #599
 
163
 
 
164
Bugs:
 
165
 
 
166
* Fixed E305 regression caused by #400; #593
 
167
 
 
168
2.1.0 (2016-11-04)
 
169
------------------
 
170
 
 
171
Announcements:
 
172
 
 
173
* Change all references to the pep8 project to say pycodestyle; #530
 
174
 
 
175
Changes:
 
176
 
 
177
* Report E302 for blank lines before an "async def"; #556
 
178
* Update our list of tested and supported Python versions which are 2.6, 2.7,
 
179
  3.2, 3.3, 3.4 and 3.5 as well as the nightly Python build and PyPy.
 
180
* Report E742 and E743 for functions and classes badly named 'l', 'O', or 'I'.
 
181
* Report E741 on 'global' and 'nonlocal' statements, as well as prohibited
 
182
  single-letter variables.
 
183
* Deprecated use of `[pep8]` section name in favor of `[pycodestyle]`; #591
 
184
* Report E722 when bare except clause is used; #579
 
185
 
 
186
Bugs:
 
187
 
 
188
* Fix opt_type AssertionError when using Flake8 2.6.2 and pycodestyle; #561
 
189
* Require two blank lines after toplevel def, class; #536
 
190
* Remove accidentally quadratic computation based on the number of colons. This
 
191
  will make pycodestyle faster in some cases; #314
 
192
 
 
193
2.0.0 (2016-05-31)
 
194
------------------
 
195
 
 
196
Announcements:
 
197
 
 
198
* Repository renamed to `pycodestyle`; Issue #466 / #481.
 
199
* Added joint Code of Conduct as member of PyCQA; #483
 
200
 
 
201
Changes:
 
202
 
 
203
* Added tox test support for Python 3.5 and pypy3
 
204
* Added check E275 for whitespace on `from ... import ...` lines; #489 / #491
 
205
* Added W503 to the list of codes ignored by default ignore list; #498
 
206
* Removed use of project level `.pep8` configuration file; #364
 
207
 
 
208
Bugs:
 
209
 
 
210
* Fixed bug with treating `~` operator as binary; #383 / #384
 
211
* Identify binary operators as unary; #484 / #485
 
212
 
 
213
1.7.0 (2016-01-12)
 
214
------------------
 
215
 
 
216
Announcements:
 
217
 
 
218
* Repository moved to PyCQA Organization on GitHub:
 
219
  https://github.com/pycqa/pep8
 
220
 
 
221
Changes:
 
222
 
 
223
* Reverted the fix in #368, "options passed on command line are only ones
 
224
  accepted" feature. This has many unintended consequences in pep8 and flake8
 
225
  and needs to be reworked when I have more time.
 
226
* Added support for Python 3.5. (Issue #420 & #459)
 
227
* Added support for multi-line config_file option parsing. (Issue #429)
 
228
* Improved parameter parsing. (Issues #420 & #456)
 
229
 
 
230
Bugs:
 
231
 
 
232
* Fixed BytesWarning on Python 3. (Issue #459)
 
233
 
 
234
1.6.2 (2015-02-15)
 
235
------------------
 
236
 
 
237
Changes:
 
238
 
 
239
* Added check for breaking around a binary operator. (Issue #197, Pull #305)
 
240
 
 
241
Bugs:
 
242
 
 
243
* Restored config_file parameter in process_options(). (Issue #380)
 
244
 
 
245
 
 
246
1.6.1 (2015-02-08)
 
247
------------------
 
248
 
 
249
Changes:
 
250
 
 
251
* Assign variables before referenced. (Issue #287)
 
252
 
 
253
Bugs:
 
254
 
 
255
* Exception thrown due to unassigned ``local_dir`` variable. (Issue #377)
 
256
 
 
257
 
 
258
1.6.0 (2015-02-06)
 
259
------------------
 
260
 
 
261
News:
 
262
 
 
263
* Ian Lee <ianlee1521@gmail.com> joined the project as a maintainer.
 
264
 
 
265
Changes:
 
266
 
 
267
* Report E731 for lambda assignment. (Issue #277)
 
268
 
 
269
* Report E704 for one-liner def instead of E701.
 
270
  Do not report this error in the default configuration. (Issue #277)
 
271
 
 
272
* Replace codes E111, E112 and E113 with codes E114, E115 and E116
 
273
  for bad indentation of comments. (Issue #274)
 
274
 
 
275
* Report E266 instead of E265 when the block comment starts with
 
276
  multiple ``#``. (Issue #270)
 
277
 
 
278
* Report E402 for import statements not at the top of the file. (Issue #264)
 
279
 
 
280
* Do not enforce whitespaces around ``**`` operator. (Issue #292)
 
281
 
 
282
* Strip whitespace from around paths during normalization. (Issue #339 / #343)
 
283
 
 
284
* Update ``--format`` documentation. (Issue #198 / Pull Request #310)
 
285
 
 
286
* Add ``.tox/`` to default excludes. (Issue #335)
 
287
 
 
288
* Do not report E121 or E126 in the default configuration. (Issues #256 / #316)
 
289
 
 
290
* Allow spaces around the equals sign in an annotated function. (Issue #357)
 
291
 
 
292
* Allow trailing backslash if in an inline comment. (Issue #374)
 
293
 
 
294
* If ``--config`` is used, only that configuration is processed. Otherwise,
 
295
  merge the user and local configurations are merged. (Issue #368 / #369)
 
296
 
 
297
Bug fixes:
 
298
 
 
299
* Don't crash if Checker.build_tokens_line() returns None. (Issue #306)
 
300
 
 
301
* Don't crash if os.path.expanduser() throws an ImportError. (Issue #297)
 
302
 
 
303
* Missing space around keyword parameter equal not always reported, E251.
 
304
  (Issue #323)
 
305
 
 
306
* Fix false positive E711/E712/E713. (Issues #330 and #336)
 
307
 
 
308
* Do not skip physical checks if the newline is escaped. (Issue #319)
 
309
 
 
310
* Flush sys.stdout to avoid race conditions with printing. See flake8 bug:
 
311
  https://gitlab.com/pycqa/flake8/issues/17 for more details. (Issue #363)
 
312
 
 
313
 
 
314
1.5.7 (2014-05-29)
 
315
------------------
 
316
 
 
317
Bug fixes:
 
318
 
 
319
* Skip the traceback on "Broken pipe" signal. (Issue #275)
 
320
 
 
321
* Do not exit when an option in ``setup.cfg`` or ``tox.ini``
 
322
  is not recognized.
 
323
 
 
324
* Check the last line even if it does not end with a newline. (Issue #286)
 
325
 
 
326
* Always open files in universal newlines mode in Python 2. (Issue #288)
 
327
 
 
328
 
 
329
1.5.6 (2014-04-14)
 
330
------------------
 
331
 
 
332
Bug fixes:
 
333
 
 
334
* Check the last line even if it has no end-of-line. (Issue #273)
 
335
 
 
336
 
 
337
1.5.5 (2014-04-10)
 
338
------------------
 
339
 
 
340
Bug fixes:
 
341
 
 
342
* Fix regression with E22 checks and inline comments. (Issue #271)
 
343
 
 
344
 
 
345
1.5.4 (2014-04-07)
 
346
------------------
 
347
 
 
348
Bug fixes:
 
349
 
 
350
* Fix negative offset with E303 before a multi-line docstring.
 
351
  (Issue #269)
 
352
 
 
353
 
 
354
1.5.3 (2014-04-04)
 
355
------------------
 
356
 
 
357
Bug fixes:
 
358
 
 
359
* Fix wrong offset computation when error is on the last char
 
360
  of a physical line. (Issue #268)
 
361
 
 
362
 
 
363
1.5.2 (2014-04-04)
 
364
------------------
 
365
 
 
366
Changes:
 
367
 
 
368
* Distribute a universal wheel file.
 
369
 
 
370
Bug fixes:
 
371
 
 
372
* Report correct line number for E303 with comments. (Issue #60)
 
373
 
 
374
* Do not allow newline after parameter equal. (Issue #252)
 
375
 
 
376
* Fix line number reported for multi-line strings. (Issue #220)
 
377
 
 
378
* Fix false positive E121/E126 with multi-line strings. (Issue #265)
 
379
 
 
380
* Fix E501 not detected in comments with Python 2.5.
 
381
 
 
382
* Fix caret position with ``--show-source`` when line contains tabs.
 
383
 
 
384
 
 
385
1.5.1 (2014-03-27)
 
386
------------------
 
387
 
 
388
Bug fixes:
 
389
 
 
390
* Fix a crash with E125 on multi-line strings. (Issue #263)
 
391
 
 
392
 
 
393
1.5 (2014-03-26)
 
394
----------------
 
395
 
 
396
Changes:
 
397
 
 
398
* Report E129 instead of E125 for visually indented line with same
 
399
  indent as next logical line.  (Issue #126)
 
400
 
 
401
* Report E265 for space before block comment. (Issue #190)
 
402
 
 
403
* Report E713 and E714 when operators ``not in`` and ``is not`` are
 
404
  recommended. (Issue #236)
 
405
 
 
406
* Allow long lines in multiline strings and comments if they cannot
 
407
  be wrapped. (Issue #224).
 
408
 
 
409
* Optionally disable physical line checks inside multiline strings,
 
410
  using ``# noqa``. (Issue #242)
 
411
 
 
412
* Change text for E121 to report "continuation line under-indented
 
413
  for hanging indent" instead of indentation not being a
 
414
  multiple of 4.
 
415
 
 
416
* Report E131 instead of E121 / E126 if the hanging indent is not
 
417
  consistent within the same continuation block.  It helps when
 
418
  error E121 or E126 is in the ``ignore`` list.
 
419
 
 
420
* Report E126 instead of E121 when the continuation line is hanging
 
421
  with extra indentation, even if indentation is not a multiple of 4.
 
422
 
 
423
Bug fixes:
 
424
 
 
425
* Allow the checkers to report errors on empty files. (Issue #240)
 
426
 
 
427
* Fix ignoring too many checks when ``--select`` is used with codes
 
428
  declared in a flake8 extension. (Issue #216)
 
429
 
 
430
* Fix regression with multiple brackets. (Issue #214)
 
431
 
 
432
* Fix ``StyleGuide`` to parse the local configuration if the
 
433
  keyword argument ``paths`` is specified. (Issue #246)
 
434
 
 
435
* Fix a false positive E124 for hanging indent. (Issue #254)
 
436
 
 
437
* Fix a false positive E126 with embedded colon. (Issue #144)
 
438
 
 
439
* Fix a false positive E126 when indenting with tabs. (Issue #204)
 
440
 
 
441
* Fix behaviour when ``exclude`` is in the configuration file and
 
442
  the current directory is not the project directory. (Issue #247)
 
443
 
 
444
* The logical checks can return ``None`` instead of an empty iterator.
 
445
  (Issue #250)
 
446
 
 
447
* Do not report multiple E101 if only the first indentation starts
 
448
  with a tab. (Issue #237)
 
449
 
 
450
* Fix a rare false positive W602. (Issue #34)
 
451
 
 
452
 
 
453
1.4.6 (2013-07-02)
 
454
------------------
 
455
 
 
456
Changes:
 
457
 
 
458
* Honor ``# noqa`` for errors E711 and E712. (Issue #180)
 
459
 
 
460
* When both a ``tox.ini`` and a ``setup.cfg`` are present in the project
 
461
  directory, merge their contents.  The ``tox.ini`` file takes
 
462
  precedence (same as before). (Issue #182)
 
463
 
 
464
* Give priority to ``--select`` over ``--ignore``. (Issue #188)
 
465
 
 
466
* Compare full path when excluding a file. (Issue #186)
 
467
 
 
468
* New option ``--hang-closing`` to switch to the alternative style of
 
469
  closing bracket indentation for hanging indent.  Add error E133 for
 
470
  closing bracket which is missing indentation. (Issue #103)
 
471
 
 
472
* Accept both styles of closing bracket indentation for hanging indent.
 
473
  Do not report error E123 in the default configuration. (Issue #103)
 
474
 
 
475
Bug fixes:
 
476
 
 
477
* Do not crash when running AST checks and the document contains null bytes.
 
478
  (Issue #184)
 
479
 
 
480
* Correctly report other E12 errors when E123 is ignored. (Issue #103)
 
481
 
 
482
* Fix false positive E261/E262 when the file contains a BOM. (Issue #193)
 
483
 
 
484
* Fix E701, E702 and E703 not detected sometimes. (Issue #196)
 
485
 
 
486
* Fix E122 not detected in some cases. (Issue #201 and #208)
 
487
 
 
488
* Fix false positive E121 with multiple brackets. (Issue #203)
 
489
 
 
490
 
 
491
1.4.5 (2013-03-06)
 
492
------------------
 
493
 
 
494
* When no path is specified, do not try to read from stdin.  The feature
 
495
  was added in 1.4.3, but it is not supported on Windows.  Use ``-``
 
496
  filename argument to read from stdin.  This usage is supported
 
497
  since 1.3.4. (Issue #170)
 
498
 
 
499
* Do not require ``setuptools`` in setup.py.  It works around an issue
 
500
  with ``pip`` and Python 3. (Issue #172)
 
501
 
 
502
* Add ``__pycache__`` to the ignore list.
 
503
 
 
504
* Change misleading message for E251. (Issue #171)
 
505
 
 
506
* Do not report false E302 when the source file has a coding cookie or a
 
507
  comment on the first line. (Issue #174)
 
508
 
 
509
* Reorganize the tests and add tests for the API and for the command line
 
510
  usage and options. (Issues #161 and #162)
 
511
 
 
512
* Ignore all checks which are not explicitly selected when ``select`` is
 
513
  passed to the ``StyleGuide`` constructor.
 
514
 
 
515
 
 
516
1.4.4 (2013-02-24)
 
517
------------------
 
518
 
 
519
* Report E227 or E228 instead of E225 for whitespace around bitwise, shift
 
520
  or modulo operators. (Issue #166)
 
521
 
 
522
* Change the message for E226 to make clear that it is about arithmetic
 
523
  operators.
 
524
 
 
525
* Fix a false positive E128 for continuation line indentation with tabs.
 
526
 
 
527
* Fix regression with the ``--diff`` option. (Issue #169)
 
528
 
 
529
* Fix the ``TestReport`` class to print the unexpected warnings and
 
530
  errors.
 
531
 
 
532
 
 
533
1.4.3 (2013-02-22)
 
534
------------------
 
535
 
 
536
* Hide the ``--doctest`` and ``--testsuite`` options when installed.
 
537
 
 
538
* Fix crash with AST checkers when the syntax is invalid. (Issue #160)
 
539
 
 
540
* Read from standard input if no path is specified.
 
541
 
 
542
* Initiate a graceful shutdown on ``Control+C``.
 
543
 
 
544
* Allow changing the ``checker_class`` for the ``StyleGuide``.
 
545
 
 
546
 
 
547
1.4.2 (2013-02-10)
 
548
------------------
 
549
 
 
550
* Support AST checkers provided by third-party applications.
 
551
 
 
552
* Register new checkers with ``register_check(func_or_cls, codes)``.
 
553
 
 
554
* Allow constructing a ``StyleGuide`` with a custom parser.
 
555
 
 
556
* Accept visual indentation without parenthesis after the ``if``
 
557
  statement. (Issue #151)
 
558
 
 
559
* Fix UnboundLocalError when using ``# noqa`` with continued lines.
 
560
  (Issue #158)
 
561
 
 
562
* Re-order the lines for the ``StandardReport``.
 
563
 
 
564
* Expand tabs when checking E12 continuation lines. (Issue #155)
 
565
 
 
566
* Refactor the testing class ``TestReport`` and the specific test
 
567
  functions into a separate test module.
 
568
 
 
569
 
 
570
1.4.1 (2013-01-18)
 
571
------------------
 
572
 
 
573
* Allow sphinx.ext.autodoc syntax for comments. (Issue #110)
 
574
 
 
575
* Report E703 instead of E702 for the trailing semicolon. (Issue #117)
 
576
 
 
577
* Honor ``# noqa`` in addition to ``# nopep8``. (Issue #149)
 
578
 
 
579
* Expose the ``OptionParser`` factory for better extensibility.
 
580
 
 
581
 
 
582
1.4 (2012-12-22)
 
583
----------------
 
584
 
 
585
* Report E226 instead of E225 for optional whitespace around common
 
586
  operators (``*``, ``**``, ``/``, ``+`` and ``-``).  This new error
 
587
  code is ignored in the default configuration because PEP 8 recommends
 
588
  to "use your own judgement". (Issue #96)
 
589
 
 
590
* Lines with a ``# nopep8`` at the end will not issue errors on line
 
591
  length E501 or continuation line indentation E12*. (Issue #27)
 
592
 
 
593
* Fix AssertionError when the source file contains an invalid line
 
594
  ending ``"\r\r\n"``. (Issue #119)
 
595
 
 
596
* Read the ``[pep8]`` section of ``tox.ini`` or ``setup.cfg`` if present.
 
597
  (Issue #93 and #141)
 
598
 
 
599
* Add the Sphinx-based documentation, and publish it
 
600
  on https://pycodestyle.readthedocs.io/. (Issue #105)
 
601
 
 
602
 
 
603
1.3.4 (2012-12-18)
 
604
------------------
 
605
 
 
606
* Fix false positive E124 and E128 with comments. (Issue #100)
 
607
 
 
608
* Fix error on stdin when running with bpython. (Issue #101)
 
609
 
 
610
* Fix false positive E401. (Issue #104)
 
611
 
 
612
* Report E231 for nested dictionary in list. (Issue #142)
 
613
 
 
614
* Catch E271 at the beginning of the line. (Issue #133)
 
615
 
 
616
* Fix false positive E126 for multi-line comments. (Issue #138)
 
617
 
 
618
* Fix false positive E221 when operator is preceded by a comma. (Issue #135)
 
619
 
 
620
* Fix ``--diff`` failing on one-line hunk. (Issue #137)
 
621
 
 
622
* Fix the ``--exclude`` switch for directory paths. (Issue #111)
 
623
 
 
624
* Use ``-`` filename to read from standard input. (Issue #128)
 
625
 
 
626
 
 
627
1.3.3 (2012-06-27)
 
628
------------------
 
629
 
 
630
* Fix regression with continuation line checker. (Issue #98)
 
631
 
 
632
 
 
633
1.3.2 (2012-06-26)
 
634
------------------
 
635
 
 
636
* Revert to the previous behaviour for ``--show-pep8``:
 
637
  do not imply ``--first``. (Issue #89)
 
638
 
 
639
* Add E902 for IO errors. (Issue #87)
 
640
 
 
641
* Fix false positive for E121, and missed E124. (Issue #92)
 
642
 
 
643
* Set a sensible default path for config file on Windows. (Issue #95)
 
644
 
 
645
* Allow ``verbose`` in the configuration file. (Issue #91)
 
646
 
 
647
* Show the enforced ``max-line-length`` in the error message. (Issue #86)
 
648
 
 
649
 
 
650
1.3.1 (2012-06-18)
 
651
------------------
 
652
 
 
653
* Explain which configuration options are expected.  Accept and recommend
 
654
  the options names with hyphen instead of underscore. (Issue #82)
 
655
 
 
656
* Do not read the user configuration when used as a module
 
657
  (except if ``config_file=True`` is passed to the ``StyleGuide`` constructor).
 
658
 
 
659
* Fix wrong or missing cases for the E12 series.
 
660
 
 
661
* Fix cases where E122 was missed. (Issue #81)
 
662
 
 
663
 
 
664
1.3 (2012-06-15)
 
665
----------------
 
666
 
 
667
.. warning::
 
668
   The internal API is backwards incompatible.
 
669
 
 
670
* Remove global configuration and refactor the library around
 
671
  a ``StyleGuide`` class; add the ability to configure various
 
672
  reporters. (Issue #35 and #66)
 
673
 
 
674
* Read user configuration from ``~/.config/pep8``
 
675
  and local configuration from ``./.pep8``. (Issue #22)
 
676
 
 
677
* Fix E502 for backslash embedded in multi-line string. (Issue #68)
 
678
 
 
679
* Fix E225 for Python 3 iterable unpacking (PEP 3132). (Issue #72)
 
680
 
 
681
* Enable the new checkers from the E12 series in the default
 
682
  configuration.
 
683
 
 
684
* Suggest less error-prone alternatives for E712 errors.
 
685
 
 
686
* Rewrite checkers to run faster (E22, E251, E27).
 
687
 
 
688
* Fixed a crash when parsed code is invalid (too many
 
689
  closing brackets).
 
690
 
 
691
* Fix E127 and E128 for continuation line indentation. (Issue #74)
 
692
 
 
693
* New option ``--format`` to customize the error format. (Issue #23)
 
694
 
 
695
* New option ``--diff`` to check only modified code.  The unified
 
696
  diff is read from STDIN.  Example: ``hg diff | pep8 --diff``
 
697
  (Issue #39)
 
698
 
 
699
* Correctly report the count of failures and set the exit code to 1
 
700
  when the ``--doctest`` or the ``--testsuite`` fails.
 
701
 
 
702
* Correctly detect the encoding in Python 3. (Issue #69)
 
703
 
 
704
* Drop support for Python 2.3, 2.4 and 3.0. (Issue #78)
 
705
 
 
706
 
 
707
1.2 (2012-06-01)
 
708
----------------
 
709
 
 
710
* Add E121 through E128 for continuation line indentation.  These
 
711
  checks are disabled by default.  If you want to force all checks,
 
712
  use switch ``--select=E,W``.  Patch by Sam Vilain. (Issue #64)
 
713
 
 
714
* Add E721 for direct type comparisons. (Issue #47)
 
715
 
 
716
* Add E711 and E712 for comparisons to singletons. (Issue #46)
 
717
 
 
718
* Fix spurious E225 and E701 for function annotations. (Issue #29)
 
719
 
 
720
* Add E502 for explicit line join between brackets.
 
721
 
 
722
* Fix E901 when printing source with ``--show-source``.
 
723
 
 
724
* Report all errors for each checker, instead of reporting only the
 
725
  first occurrence for each line.
 
726
 
 
727
* Option ``--show-pep8`` implies ``--first``.
 
728
 
 
729
 
 
730
1.1 (2012-05-24)
 
731
----------------
 
732
 
 
733
* Add E901 for syntax errors. (Issues #63 and #30)
 
734
 
 
735
* Add E271, E272, E273 and E274 for extraneous whitespace around
 
736
  keywords. (Issue #57)
 
737
 
 
738
* Add ``tox.ini`` configuration file for tests. (Issue #61)
 
739
 
 
740
* Add ``.travis.yml`` configuration file for continuous integration.
 
741
  (Issue #62)
 
742
 
 
743
 
 
744
1.0.1 (2012-04-06)
 
745
------------------
 
746
 
 
747
* Fix inconsistent version numbers.
 
748
 
 
749
 
 
750
1.0 (2012-04-04)
 
751
----------------
 
752
 
 
753
* Fix W602 ``raise`` to handle multi-char names. (Issue #53)
 
754
 
 
755
 
 
756
0.7.0 (2012-03-26)
 
757
------------------
 
758
 
 
759
* Now ``--first`` prints only the first occurrence of each error.
 
760
  The ``--repeat`` flag becomes obsolete because it is the default
 
761
  behaviour. (Issue #6)
 
762
 
 
763
* Allow specifying ``--max-line-length``. (Issue #36)
 
764
 
 
765
* Make the shebang more flexible. (Issue #26)
 
766
 
 
767
* Add testsuite to the bundle. (Issue #25)
 
768
 
 
769
* Fixes for Jython. (Issue #49)
 
770
 
 
771
* Add PyPI classifiers. (Issue #43)
 
772
 
 
773
* Fix the ``--exclude`` option. (Issue #48)
 
774
 
 
775
* Fix W602, accept ``raise`` with 3 arguments. (Issue #34)
 
776
 
 
777
* Correctly select all tests if ``DEFAULT_IGNORE == ''``.
 
778
 
 
779
 
 
780
0.6.1 (2010-10-03)
 
781
------------------
 
782
 
 
783
* Fix inconsistent version numbers. (Issue #21)
 
784
 
 
785
 
 
786
0.6.0 (2010-09-19)
 
787
------------------
 
788
 
 
789
* Test suite reorganized and enhanced in order to check more failures
 
790
  with fewer test files.  Read the ``run_tests`` docstring for details
 
791
  about the syntax.
 
792
 
 
793
* Fix E225: accept ``print >>sys.stderr, "..."`` syntax.
 
794
 
 
795
* Fix E501 for lines containing multibyte encoded characters. (Issue #7)
 
796
 
 
797
* Fix E221, E222, E223, E224 not detected in some cases. (Issue #16)
 
798
 
 
799
* Fix E211 to reject ``v = dic['a'] ['b']``. (Issue #17)
 
800
 
 
801
* Exit code is always 1 if any error or warning is found. (Issue #10)
 
802
 
 
803
* ``--ignore`` checks are now really ignored, especially in
 
804
  conjunction with ``--count``. (Issue #8)
 
805
 
 
806
* Blank lines with spaces yield W293 instead of W291: some developers
 
807
  want to ignore this warning and indent the blank lines to paste their
 
808
  code easily in the Python interpreter.
 
809
 
 
810
* Fix E301: do not require a blank line before an indented block. (Issue #14)
 
811
 
 
812
* Fix E203 to accept NumPy slice notation ``a[0, :]``. (Issue #13)
 
813
 
 
814
* Performance improvements.
 
815
 
 
816
* Fix decoding and checking non-UTF8 files in Python 3.
 
817
 
 
818
* Fix E225: reject ``True+False`` when running on Python 3.
 
819
 
 
820
* Fix an exception when the line starts with an operator.
 
821
 
 
822
* Allow a new line before closing ``)``, ``}`` or ``]``. (Issue #5)
 
823
 
 
824
 
 
825
0.5.0 (2010-02-17)
 
826
------------------
 
827
 
 
828
* Changed the ``--count`` switch to print to sys.stderr and set
 
829
  exit code to 1 if any error or warning is found.
 
830
 
 
831
* E241 and E242 are removed from the standard checks. If you want to
 
832
  include these checks, use switch ``--select=E,W``. (Issue #4)
 
833
 
 
834
* Blank line is not mandatory before the first class method or nested
 
835
  function definition, even if there's a docstring. (Issue #1)
 
836
 
 
837
* Add the switch ``--version``.
 
838
 
 
839
* Fix decoding errors with Python 3. (Issue #13 [1]_)
 
840
 
 
841
* Add ``--select`` option which is mirror of ``--ignore``.
 
842
 
 
843
* Add checks E261 and E262 for spaces before inline comments.
 
844
 
 
845
* New check W604 warns about deprecated usage of backticks.
 
846
 
 
847
* New check W603 warns about the deprecated operator ``<>``.
 
848
 
 
849
* Performance improvement, due to rewriting of E225.
 
850
 
 
851
* E225 now accepts:
 
852
 
 
853
  - no whitespace after unary operator or similar. (Issue #9 [1]_)
 
854
 
 
855
  - lambda function with argument unpacking or keyword defaults.
 
856
 
 
857
* Reserve "2 blank lines" for module-level logical blocks. (E303)
 
858
 
 
859
* Allow multi-line comments. (E302, issue #10 [1]_)
 
860
 
 
861
 
 
862
0.4.2 (2009-10-22)
 
863
------------------
 
864
 
 
865
* Decorators on classes and class methods are OK now.
 
866
 
 
867
 
 
868
0.4 (2009-10-20)
 
869
----------------
 
870
 
 
871
* Support for all versions of Python from 2.3 to 3.1.
 
872
 
 
873
* New and greatly expanded self tests.
 
874
 
 
875
* Added ``--count`` option to print the total number of errors and warnings.
 
876
 
 
877
* Further improvements to the handling of comments and blank lines.
 
878
  (Issue #1 [1]_ and others changes.)
 
879
 
 
880
* Check all py files in directory when passed a directory (Issue
 
881
  #2 [1]_). This also prevents an exception when traversing directories
 
882
  with non ``*.py`` files.
 
883
 
 
884
* E231 should allow commas to be followed by ``)``. (Issue #3 [1]_)
 
885
 
 
886
* Spaces are no longer required around the equals sign for keyword
 
887
  arguments or default parameter values.
 
888
 
 
889
 
 
890
.. [1] These issues refer to the `previous issue tracker`__.
 
891
.. __:  http://github.com/cburroughs/pep8.py/issues
 
892
 
 
893
 
 
894
0.3.1 (2009-09-14)
 
895
------------------
 
896
 
 
897
* Fixes for comments: do not count them when checking for blank lines between
 
898
  items.
 
899
 
 
900
* Added setup.py for pypi upload and easy_installability.
 
901
 
 
902
 
 
903
0.2 (2007-10-16)
 
904
----------------
 
905
 
 
906
* Loads of fixes and improvements.
 
907
 
 
908
 
 
909
0.1 (2006-10-01)
 
910
----------------
 
911
 
 
912
* First release.
 
913
 
 
914