Skip to content

Commit 5cf3c7a

Browse files
committed
Merge latest master into issue-314
2 parents bbefb19 + fd4f1c2 commit 5cf3c7a

30 files changed

+968
-516
lines changed

.travis.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,29 @@
11
language: python
2+
sudo: false
23
python:
34
- 2.6
45
- 2.7
56
- 3.2
67
- 3.3
78
- 3.4
9+
- 3.5
10+
- nightly
811
- pypy
912
- pypy3
1013
install:
1114
- pip install -e .
1215
- pip list
1316
script:
14-
- python pep8.py --testsuite testsuite
15-
- python pep8.py --statistics pep8.py
16-
- python pep8.py --doctest
17+
- python pycodestyle.py --testsuite testsuite
18+
- python pycodestyle.py --statistics pycodestyle.py
19+
- python pycodestyle.py --doctest
1720
- python setup.py test
18-
matrix:
19-
allow_failures:
20-
- python: pypy
21-
- python: pypy3
2221

2322
notifications:
2423
email:
2524
25+
irc:
26+
channels:
27+
- "irc.freenode.org##python-code-quality"
28+
use_notice: true
29+
skip_join: true

CHANGES.txt

Lines changed: 85 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,73 @@ Changelog
22
=========
33

44

5-
1.x (unreleased)
6-
----------------
5+
2.0.0 (2016-05-31)
6+
------------------
7+
8+
Announcements:
9+
10+
* Repository renamed to `pycodestyle`; Issue #466 / #481.
11+
* Added joint Code of Conduct as member of PyCQA; #483
12+
13+
Changes:
14+
15+
* Added tox test support for Python 3.5 and pypy3
16+
* Added check E275 for whitespace on `from ... import ...` lines; #489 / #491
17+
* Added W503 to the list of codes ignored by default ignore list; #498
18+
* Removed use of project level `.pep8` configuration file; #364
19+
20+
Bugs:
21+
22+
* Fixed bug with treating `~` operator as binary; #383 / #384
23+
* Identify binary operators as unary; #484 / #485
24+
25+
1.7.0 (2016-01-12)
26+
------------------
27+
28+
Announcements:
29+
30+
* Repository moved to PyCQA Organization on GitHub:
31+
https://github.com/pycqa/pep8
32+
33+
Changes:
34+
35+
* Reverted the fix in #368, "options passed on command line are only ones
36+
accepted" feature. This has many unintended consequences in pep8 and flake8
37+
and needs to be reworked when I have more time.
38+
* Added support for Python 3.5. (Issue #420 & #459)
39+
* Added support for multi-line config_file option parsing. (Issue #429)
40+
* Improved parameter parsing. (Issues #420 & #456)
41+
42+
Bugs:
43+
44+
* Fixed BytesWarning on Python 3. (Issue #459)
45+
46+
1.6.2 (2015-02-15)
47+
------------------
48+
49+
Changes:
50+
51+
* Added check for breaking around a binary operator. (Issue #197, Pull #305)
52+
53+
Bugs:
54+
55+
* Restored config_file parameter in process_options(). (Issue #380)
56+
57+
58+
1.6.1 (2015-02-08)
59+
------------------
60+
61+
Changes:
62+
63+
* Assign variables before referenced. (Issue #287)
64+
65+
Bugs:
66+
67+
* Exception thrown due to unassigned ``local_dir`` variable. (Issue #377)
68+
69+
70+
1.6.0 (2015-02-06)
71+
------------------
772

873
News:
974

@@ -32,6 +97,15 @@ Changes:
3297

3398
* Add ``.tox/`` to default excludes. (Issue #335)
3499

100+
* Do not report E121 or E126 in the default configuration. (Issues #256 / #316)
101+
102+
* Allow spaces around the equals sign in an annotated function. (Issue #357)
103+
104+
* Allow trailing backslash if in an inline comment. (Issue #374)
105+
106+
* If ``--config`` is used, only that configuration is processed. Otherwise,
107+
merge the user and local configurations are merged. (Issue #368 / #369)
108+
35109
Bug fixes:
36110

37111
* Don't crash if Checker.build_tokens_line() returns None. (Issue #306)
@@ -43,6 +117,11 @@ Bug fixes:
43117

44118
* Fix false positive E711/E712/E713. (Issues #330 and #336)
45119

120+
* Do not skip physical checks if the newline is escaped. (Issue #319)
121+
122+
* Flush sys.stdout to avoid race conditions with printing. See flake8 bug:
123+
https://gitlab.com/pycqa/flake8/issues/17 for more details. (Issue #363)
124+
46125

47126
1.5.7 (2014-05-29)
48127
------------------
@@ -274,7 +353,7 @@ Bug fixes:
274353

275354
* Initiate a graceful shutdown on ``Control+C``.
276355

277-
* Allow to change the ``checker_class`` for the ``StyleGuide``.
356+
* Allow changing the ``checker_class`` for the ``StyleGuide``.
278357

279358

280359
1.4.2 (2013-02-10)
@@ -284,7 +363,7 @@ Bug fixes:
284363

285364
* Register new checkers with ``register_check(func_or_cls, codes)``.
286365

287-
* Allow to construct a ``StyleGuide`` with a custom parser.
366+
* Allow constructing a ``StyleGuide`` with a custom parser.
288367

289368
* Accept visual indentation without parenthesis after the ``if``
290369
statement. (Issue #151)
@@ -330,7 +409,7 @@ Bug fixes:
330409
(Issue #93 and #141)
331410

332411
* Add the Sphinx-based documentation, and publish it
333-
on http://pep8.readthedocs.org/. (Issue #105)
412+
on https://pycodestyle.readthedocs.io/. (Issue #105)
334413

335414

336415
1.3.4 (2012-12-18)
@@ -493,7 +572,7 @@ Bug fixes:
493572
The ``--repeat`` flag becomes obsolete because it is the default
494573
behaviour. (Issue #6)
495574

496-
* Allow to specify ``--max-line-length``. (Issue #36)
575+
* Allow specifying ``--max-line-length``. (Issue #36)
497576

498577
* Make the shebang more flexible. (Issue #26)
499578

CONTRIBUTING.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Contributing to ``pycodestyle``
2+
===============================
3+
4+
Please see the `developer notes <https://pycodestyle.readthedocs.io/en/latest/developer.html>`_

LICENSE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
Copyright © 2006-2009 Johann C. Rocholl <[email protected]>
22
Copyright © 2009-2014 Florent Xicluna <[email protected]>
3+
Copyright © 2014-2016 Ian Lee <[email protected]>
34

45
Licensed under the terms of the Expat License
56

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
test :
2-
python pep8.py --testsuite testsuite
2+
python pycodestyle.py --testsuite testsuite
33

44
selftest :
5-
python pep8.py --statistics pep8.py
5+
python pycodestyle.py --statistics pycodestyle.py
66

77
doctest :
8-
python pep8.py --doctest
8+
python pycodestyle.py --doctest
99

1010
unittest :
1111
python -m testsuite.test_all

README.rst

Lines changed: 23 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
1-
pep8 - Python style guide checker
2-
=================================
1+
pycodestyle (formerly called pep8) - Python style guide checker
2+
===============================================================
33

4-
pep8 is a tool to check your Python code against some of the style
4+
pycodestyle is a tool to check your Python code against some of the style
55
conventions in `PEP 8`_.
66

77
.. _PEP 8: http://www.python.org/dev/peps/pep-0008/
88

9+
.. note::
10+
11+
This package used to be called ``pep8`` but was renamed to ``pycodestyle``
12+
to reduce confusion. Further discussion `here
13+
<https://github.com/PyCQA/pycodestyle/issues/466>`_.
914

1015
Features
1116
--------
@@ -15,18 +20,18 @@ Features
1520
* Parseable output: Jump to error location in your editor.
1621

1722
* Small: Just one Python file, requires only stdlib. You can use just
18-
the pep8.py file for this purpose.
23+
the ``pycodestyle.py`` file for this purpose.
1924

2025
* Comes with a comprehensive test suite.
2126

2227
Installation
2328
------------
2429

25-
You can install, upgrade, uninstall pep8.py with these commands::
30+
You can install, upgrade, uninstall ``pycodestyle.py`` with these commands::
2631

27-
$ pip install pep8
28-
$ pip install --upgrade pep8
29-
$ pip uninstall pep8
32+
$ pip install pycodestyle
33+
$ pip install --upgrade pycodestyle
34+
$ pip uninstall pycodestyle
3035

3136
There's also a package for Debian/Ubuntu, but it's not always the
3237
latest version.
@@ -36,7 +41,7 @@ Example usage and output
3641

3742
::
3843

39-
$ pep8 --first optparse.py
44+
$ pycodestyle --first optparse.py
4045
optparse.py:69:11: E401 multiple imports on one line
4146
optparse.py:77:1: E302 expected 2 blank lines, found 1
4247
optparse.py:88:5: E301 expected 1 blank line, found 0
@@ -46,10 +51,10 @@ Example usage and output
4651
optparse.py:472:29: E221 multiple spaces before operator
4752
optparse.py:544:21: W601 .has_key() is deprecated, use 'in'
4853

49-
You can also make pep8.py show the source code for each error, and
54+
You can also make ``pycodestyle.py`` show the source code for each error, and
5055
even the relevant text from PEP 8::
5156

52-
$ pep8 --show-source --show-pep8 testsuite/E40.py
57+
$ pycodestyle --show-source --show-pep8 testsuite/E40.py
5358
testsuite/E40.py:2:10: E401 multiple imports on one line
5459
import os, sys
5560
^
@@ -61,7 +66,7 @@ even the relevant text from PEP 8::
6166

6267
Or you can display how often each error was found::
6368

64-
$ pep8 --statistics -qq Python-2.5/Lib
69+
$ pycodestyle --statistics -qq Python-2.5/Lib
6570
232 E201 whitespace after '['
6671
599 E202 whitespace before ')'
6772
631 E203 whitespace before ','
@@ -78,14 +83,14 @@ Or you can display how often each error was found::
7883
Links
7984
-----
8085

81-
.. image:: https://api.travis-ci.org/jcrocholl/pep8.png?branch=master
82-
:target: https://travis-ci.org/jcrocholl/pep8
86+
.. image:: https://api.travis-ci.org/PyCQA/pycodestyle.png?branch=master
87+
:target: https://travis-ci.org/PyCQA/pycodestyle
8388
:alt: Build status
8489

85-
.. image:: https://pypip.in/wheel/pep8/badge.png?branch=master
86-
:target: https://pypi.python.org/pypi/pep8
90+
.. image:: https://pypip.in/wheel/pycodestyle/badge.png?branch=master
91+
:target: https://pypi.python.org/pypi/pycodestyle
8792
:alt: Wheel Status
8893

89-
* `Read the documentation <http://pep8.readthedocs.org/>`_
94+
* `Read the documentation <https://pycodestyle.readthedocs.io/>`_
9095

91-
* `Fork me on GitHub <http://github.com/jcrocholl/pep8>`_
96+
* `Fork me on GitHub <http://github.com/PyCQA/pycodestyle>`_

docs/Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,17 +77,17 @@ qthelp:
7777
@echo
7878
@echo "Build finished; now you can run "qcollectiongenerator" with the" \
7979
".qhcp project file in $(BUILDDIR)/qthelp, like this:"
80-
@echo "# qcollectiongenerator $(BUILDDIR)/qthelp/pep8.qhcp"
80+
@echo "# qcollectiongenerator $(BUILDDIR)/qthelp/pycodestyle.qhcp"
8181
@echo "To view the help file:"
82-
@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/pep8.qhc"
82+
@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/pycodestyle.qhc"
8383

8484
devhelp:
8585
$(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
8686
@echo
8787
@echo "Build finished."
8888
@echo "To view the help file:"
89-
@echo "# mkdir -p $$HOME/.local/share/devhelp/pep8"
90-
@echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/pep8"
89+
@echo "# mkdir -p $$HOME/.local/share/devhelp/pycodestyle"
90+
@echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/pycodestyle"
9191
@echo "# devhelp"
9292

9393
epub:

0 commit comments

Comments
 (0)