Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
223 commits
Select commit Hold shift + click to select a range
bbefb19
Fixing compound_statement not to be quadratic in # of :s
Aug 8, 2014
18b12f0
Fix problem with treating ~ operator as binary.
czyzykowski Feb 19, 2015
8aac6b5
Test behaviour regarding multi-line ignore parsing in config_file
doismellburning Aug 22, 2015
e7d64d3
Improved parsing of multiline option values (including trailing commas)
doismellburning Aug 22, 2015
5feba52
Merge pull request #429 from doismellburning/feature/file-parsing-fle…
sigmavirus24 Sep 7, 2015
145e2a8
Update all documentation and links to use PyCQA
sigmavirus24 Jul 13, 2015
43869ab
Merge pull request #419 from sigmavirus24/update-docs
sigmavirus24 Sep 7, 2015
a9dec31
Reworded --diff flag help string to improve clarity (which created mi…
Jun 24, 2015
51b1534
Use report instead of analyze in the help text
sigmavirus24 Sep 7, 2015
7ca1755
Merge pull request #436 from sigmavirus24/pr/409
sigmavirus24 Sep 7, 2015
88f89ad
Updated default html_theme per Sphinx updates
IanLee1521 Sep 8, 2015
31c0215
Escape inline asterisk
IanLee1521 Sep 9, 2015
37648d3
Fixed table formatting typo
IanLee1521 Sep 9, 2015
8705091
Fixed issue with mixed theme on RTD
IanLee1521 Sep 9, 2015
960a10c
Added minor visual whitespace improvement
IanLee1521 Sep 10, 2015
15dcce0
Moved splitting into _parse_multi_options function
IanLee1521 Sep 10, 2015
1dcc2b2
Fixed #437 -- Use https instead of http for link
IanLee1521 Sep 11, 2015
dcb1fc0
Add python 3.5 support
sigmavirus24 Sep 17, 2015
b1bde9f
Merge pull request #440 from sigmavirus24/py35
sigmavirus24 Sep 17, 2015
0d2fe46
Fix regression in catching E711 (issue #435), add tests
tonkoandrew Oct 7, 2015
5a56e32
Merge pull request #442 from tonkoandrew/master
IanLee1521 Oct 8, 2015
8b5c8f4
Fixed #452 - Mention `ignore` in Error codes and not Configuration
IanLee1521 Oct 25, 2015
72e76ab
Merge pull request #453 from PyCQA/issue-452
sigmavirus24 Oct 26, 2015
eaff751
Correct _get_parameters.
jaccarmac Oct 29, 2015
c86685a
Merge pull request #456 from jaccarmac/argspec-equivalence
IanLee1521 Nov 4, 2015
925efae
fix BytesWarning on Python 3
vstinner Nov 5, 2015
e73d8fb
Merge pull request #459 from haypo/bytes_warn
sigmavirus24 Nov 5, 2015
993e80c
Because documenting direction / scope decisions can be useful
doismellburning Nov 8, 2015
e6506f4
Added recommendation against ast usage in pep8
doismellburning Nov 8, 2015
b077595
flake8 for plugins etc., not pep8
doismellburning Nov 8, 2015
721106b
Document standalone + py26 aims
doismellburning Nov 8, 2015
86284a8
CONTRIBUTING docs
doismellburning Nov 8, 2015
4dc42d8
Merge pull request #460 from doismellburning/feature/contrib-high-level
IanLee1521 Nov 9, 2015
da34675
Updated copyrights to 2016
IanLee1521 Jan 2, 2016
7680e2f
Updated changelog, leaving date as unreleased for the moment
IanLee1521 Jan 11, 2016
1c49630
Bumped version in preparation of release
IanLee1521 Jan 11, 2016
dd2302e
Added missing changelog entries.
IanLee1521 Jan 12, 2016
a0da509
Changed to make new release 1.7 rather than 1.6.3
IanLee1521 Jan 12, 2016
b8088a2
Merge pull request #470 from PyCQA/release/v1.7
IanLee1521 Jan 12, 2016
91a7eff
Changed link from pep257 to pydocstyle now that project has been rena…
alasdairnicol Feb 16, 2016
999d11e
Merge pull request #479 from alasdairnicol/patch-1
IanLee1521 Feb 16, 2016
2c87294
Incremented version number marking new work after 1.7 release
IanLee1521 Feb 17, 2016
44e48c1
Added missing python envs to tox.ini
IanLee1521 Feb 17, 2016
b688c78
fix broken link
thijstriemstra Feb 17, 2016
e8c2b0a
Merge pull request #482 from thijstriemstra/patch-1
sigmavirus24 Feb 17, 2016
2344a34
Updated source code links to point to new repository name; issue #466…
IanLee1521 Feb 22, 2016
ac54886
Add link to PyCQA code of conduct
sigmavirus24 Feb 24, 2016
8664e18
Merge pull request #483 from PyCQA/add-code-of-conduct
IanLee1521 Feb 24, 2016
4fb305e
Merge pull request #383 from czyzykowski/patch-1
IanLee1521 Feb 24, 2016
394a061
Identify binary operators used as unary operators
sigmavirus24 Feb 24, 2016
c8e0911
Merge pull request #485 from sigmavirus24/bug/484
IanLee1521 Feb 25, 2016
2e151c5
Updated changelog from last few merges
IanLee1521 Feb 25, 2016
96de5f8
Update Readme to reflect pycodestyle name change
jeffwidman Feb 25, 2016
1dd1127
Patched pep8 to comply with pydocstyle; Closes #228.
IanLee1521 Feb 28, 2016
b7bf8c8
complain about missing space before opening parentheses of import sta…
rogalski Mar 23, 2016
ac1e249
Merge pull request #491 from rogalski/missing-whitespace-import-open-…
IanLee1521 Apr 2, 2016
4a37706
Fix false E251 error involving square brackets
agronholm Apr 8, 2016
eae54ff
Merge pull request #497 from agronholm/fix_496
sigmavirus24 Apr 8, 2016
bac13b8
Add W503 to default ignore list
sigmavirus24 Apr 20, 2016
6dd7745
Merge pull request #499 from sigmavirus24/bug/498
IanLee1521 Apr 28, 2016
93209d1
Updated text list of "ignored by default" codes
IanLee1521 Apr 28, 2016
53a2441
Merge pull request #501 from PyCQA/followup-to-499
IanLee1521 Apr 28, 2016
69d88e3
add examples showing StyleGuide config options
nchammas Apr 21, 2016
2f6c43b
Allow spaces around = in async definitions
sigmavirus24 May 23, 2016
05627df
Re-added shebang line that was removed
IanLee1521 May 24, 2016
cec28be
Changed heading line format for consistency
IanLee1521 May 24, 2016
3141151
Merge pull request #508 from PyCQA/bug/507
IanLee1521 May 24, 2016
54ea305
Merge pull request #509 from PyCQA/gh-500
sigmavirus24 May 24, 2016
b5d335c
Merge pull request #486 from jeffwidman/patch-1
IanLee1521 May 24, 2016
e8ccd67
Merge pull request #487 from PyCQA/issue-228
IanLee1521 May 24, 2016
4f42869
Fix the "Further discussion" URL
jwilk May 25, 2016
a8f1c78
Fix typo
jwilk May 25, 2016
481c233
Fix grammar
jwilk May 25, 2016
123d99e
Merge pull request #512 from jwilk/spelling
sigmavirus24 May 25, 2016
c98b72f
Merge pull request #511 from jwilk/further-discussion-url
sigmavirus24 May 25, 2016
2178351
Added pycodestyle entry_point
IanLee1521 Feb 29, 2016
3f9ed3a
Made 'pep8style' more generically 'style_guide'
IanLee1521 Feb 29, 2016
1a76417
Updated pycodestyle file name and setup.py
IanLee1521 May 21, 2016
59a9af6
Updated header comment from pep8 -> pycodestyle
IanLee1521 May 21, 2016
07647a0
Fixed import in testsuite
IanLee1521 May 21, 2016
4d5f3e4
Updated Travis configuration for package rename
IanLee1521 May 21, 2016
e2f023d
Updated tox for package rename
IanLee1521 May 21, 2016
fed323d
Updated makefile for package rename
IanLee1521 May 21, 2016
fba2cc6
Fixed additional reference to pep8.py in travis
IanLee1521 May 22, 2016
90d83aa
Updated file names tested
IanLee1521 May 25, 2016
ccc7f14
Updated tests and doc examples -> pycodestyle
IanLee1521 May 25, 2016
990dc5a
Merge pull request #510 from PyCQA/package-pycodestyle
sigmavirus24 May 26, 2016
f39501c
Convert readthedocs link for their .org -> .io migration for hosted p…
May 29, 2016
f811cde
Merge pull request #514 from adamchainz/readthedocs.io
IanLee1521 May 29, 2016
6fd9e6f
Finished updating rtd links
IanLee1521 May 29, 2016
dda2b8e
Merge pull request #515 from PyCQA/update-rtd-links
IanLee1521 May 29, 2016
dde7b56
Added maintainer metadata to package
IanLee1521 May 29, 2016
99139d9
Merge pull request #516 from PyCQA/add-maintainer-field
IanLee1521 May 29, 2016
23d95cd
Updated project name in docs
IanLee1521 May 30, 2016
eee59ff
Updated two more references to old name
IanLee1521 May 30, 2016
c40150a
Updated deprecation warning to actually emit a warning
IanLee1521 May 30, 2016
822258b
Merge branch 'doc-update'
IanLee1521 May 30, 2016
b86fa3d
Updated version string to PEP-440 format
IanLee1521 May 30, 2016
3f00bed
Fixed typo in changelog
IanLee1521 May 31, 2016
a7362de
Updated changelog with changes made since 1.7.0
IanLee1521 May 31, 2016
53da847
Update next version plan to 2.0.0
IanLee1521 May 31, 2016
f8bd693
Updated docs to remove another pep8 based reference
IanLee1521 May 31, 2016
56a9882
Improved formatting of filename referencing in docs
IanLee1521 May 31, 2016
f2ade60
Removed project level `.pep8` config file
IanLee1521 May 31, 2016
c7490b0
Tagging 2.0.0 alpha 1 pre-release
IanLee1521 May 31, 2016
fd4f1c2
Tagged release 2.0.0
IanLee1521 May 31, 2016
5cf3c7a
Merge latest master into issue-314
arthall Jun 2, 2016
6fe11c4
- Added venv/ (virtualenv) to list of git ignored filename patterns
kjcole Jun 2, 2016
3944d9e
Merge pull request #520 from kjcole/master
IanLee1521 Jun 2, 2016
5949086
Modified patch for issue #314 so tests in E73.py pass
arthall Jun 2, 2016
a99bcec
Never use 'l' (lowercase letter el) as a variable name
mtmiller Jun 2, 2016
26893da
Report E741 for prohibited single-letter variables
mtmiller Jun 2, 2016
b02d768
Merge pull request #522 from arthall/issue-314
IanLee1521 Jun 2, 2016
4c8152c
Add more doctests for E741
mtmiller Jun 2, 2016
017d3b5
Also report E741 on 'global' and 'nonlocal' statements
mtmiller Jun 3, 2016
fdf3e6a
Report E742 and E743 for badly named functions and classes
mtmiller Jun 3, 2016
b98ed7b
Update Python version list in docs
mtmiller Jun 3, 2016
26c64ba
Change all references to the pep8 project to say pycodestyle
ArgentFalcon Jun 2, 2016
77f5543
Merge pull request #530 from iamaspacecow/pycodestyle-name-change
IanLee1521 Jun 6, 2016
c122532
Merge pull request #532 from mtmiller/doc-update
IanLee1521 Jun 6, 2016
64edd89
Bumped version number post release
IanLee1521 Jun 1, 2016
e8d358e
Re-ordered package imports alphabetically
IanLee1521 Jun 1, 2016
adcb3a2
Fix typos
ArcTanSusan Jun 3, 2016
7ffd648
Reverted a few spelling changes
IanLee1521 Jun 6, 2016
5be92ad
Add test-requirements.txt with basic test packages
ArcTanSusan Jun 3, 2016
45503fc
Updated developer documentation for testing
IanLee1521 Jun 6, 2016
fc8c799
Added skip missing interpreters flag to tox config
IanLee1521 Jun 6, 2016
ca7e43b
Fixed wrapping of text in developer.rst
IanLee1521 Jun 6, 2016
42c8987
Added passing test case related to #376
IanLee1521 Jun 3, 2016
d2171cd
Updated docs related to tested Python versions
IanLee1521 Jun 6, 2016
e15075a
Updated Travis CI doc link
IanLee1521 Jun 6, 2016
60859d6
Updated version number of next release to 2.1.0
IanLee1521 Jun 7, 2016
4ccdc55
Merge pull request #525 from mtmiller/issue341
IanLee1521 Jun 7, 2016
6cb59d6
Updated changelog to specify changes in 2.1.0
IanLee1521 Jun 7, 2016
7fa71af
Update maximum_line_length to use Checker.noqa
sigmavirus24 Jun 7, 2016
95ed849
Remove unused imports and assignments
sigmavirus24 Jun 7, 2016
1fcd279
Merge pull request #540 from sigmavirus24/remove-warnings
sigmavirus24 Jun 7, 2016
f8af83d
Merge pull request #539 from sigmavirus24/max-line-length-noqa
IanLee1521 Jun 8, 2016
15b1b42
Updated text about running tests with tox; Closes #552
IanLee1521 Jun 25, 2016
e01ca2f
Updated to use sheilds.io badges
IanLee1521 Jun 25, 2016
5a6ffd5
Updated rename note in README
IanLee1521 Jun 25, 2016
dc08dad
Updated changelog with 2.1 milestone changes
IanLee1521 Jun 25, 2016
6b75c4d
Fix issue #400: Require two blank lines after toplevel def, class
benesch May 20, 2015
f55b1c5
Fixed placement of changelog entry
IanLee1521 Jun 25, 2016
10f4e51
Added extra Okay example to test against
IanLee1521 Jun 25, 2016
2a5e575
Updated checker variable based on conversation in #536
IanLee1521 Jun 25, 2016
a0d5d5d
Added test case based on @gvanrossum comment
IanLee1521 Jun 25, 2016
08f4891
Merge branch 'gh-536'
IanLee1521 Jun 25, 2016
5c4c081
Removed test code unrelated to utf-8 checks
IanLee1521 Jun 25, 2016
4438622
Updated tox to do same tests as Travis CI
IanLee1521 Jun 26, 2016
36e3400
Special case for nested functions an classes (fixes #28)
memeplex Jun 29, 2016
98dee57
Improve error message and add some comments
memeplex Jun 29, 2016
72acd6f
Report E302 for blank lines before an "async def"
markpeek Jul 1, 2016
001a0ce
Merge pull request #556 from markpeek/markpeek-async-def
IanLee1521 Jul 1, 2016
df8a6c0
Add Gitter badge
gitter-badger Jul 3, 2016
0babee5
Merge pull request #557 from gitter-badger/gitter-badge
IanLee1521 Jul 3, 2016
d4b8f49
Stop checking for string option type
sigmavirus24 Jul 25, 2016
1e71012
Merge pull request #562 from sigmavirus24/bug/561
IanLee1521 Jul 25, 2016
0962a10
Add contributing instructions.
daspecster Aug 2, 2016
a090bb2
Feedback changes. Typos and capitalization.
daspecster Aug 2, 2016
66e43b4
Merge pull request #566 from daspecster/update-contributing-rst
sigmavirus24 Aug 2, 2016
39e5718
Merge pull request #555 from memeplex/master
sigmavirus24 Aug 11, 2016
1391c7e
Update CHANGES.txt for 2.1.0 release.
daspecster Sep 18, 2016
e4244fe
Updated changelog from feedback.
daspecster Sep 21, 2016
61f2e4e
Update tested python version notes.
daspecster Sep 21, 2016
24611d1
Merge pull request #574 from daspecster/prepare-2.1.0-changelog
sigmavirus24 Sep 21, 2016
5c4ca67
Fixed line wrapping in CHANGELOG
IanLee1521 Sep 29, 2016
2cc7a8a
Check for both [pep8] and [pycodestyle] config sections.
daspecster Nov 3, 2016
ee9c279
Merge pull request #591 from daspecster/support-pep8-pycodestyle-config
IanLee1521 Nov 3, 2016
2d0b5d9
Updated changelog for #591
IanLee1521 Nov 4, 2016
088adfc
Moved build badges to top of README
IanLee1521 Nov 4, 2016
ae2271b
Added RTD Badge to README
IanLee1521 Nov 4, 2016
4f909cd
Made RTD badge point to base, and use SSL
IanLee1521 Nov 4, 2016
0be4e22
Added missing word to instructions
IanLee1521 Nov 4, 2016
510c690
Tagged release of 2.1.0
IanLee1521 Nov 4, 2016
d12e2ea
Bump versin number post release
IanLee1521 Nov 4, 2016
ce71d1e
Fix E305 regression in 2.1.0 due to fix for #400
markpeek Nov 6, 2016
e5411e1
Merge pull request #593 from markpeek/markpeek-E305fix
sigmavirus24 Nov 7, 2016
349deea
Add E306 to docs
spaceone Nov 7, 2016
ab324d7
Merge pull request #595 from spaceone/patch-1
IanLee1521 Nov 9, 2016
020d6ff
Fixed CHANGELOG release date for v2.1.0
IanLee1521 Nov 14, 2016
659ef94
Added Makefile to handle proper permissions in releases
IanLee1521 Nov 14, 2016
8053c7c
Tagged release of 2.2.0
IanLee1521 Nov 14, 2016
fcc8f58
Prevent E305 on variable names `class*` and `def*`
ParthKolekar Nov 22, 2016
543f12b
warn about bare except clause
rogalski Dec 28, 2016
d7d6154
Merge pull request #592 from rogalski/bare-except
sigmavirus24 Jan 1, 2017
bae1d1d
modified pycodestyle.py
khairihafsham Jan 16, 2017
30c7c48
Report E704 for async def as well (#611)
asottile Jan 24, 2017
e4312f7
Don't report E701 for variable annotations (#612)
asottile Jan 24, 2017
10cefb7
Merge pull request #610 from khairihafsham/e306-doc
sigmavirus24 Jan 24, 2017
5a14978
Switch Travis to use tox
sigmavirus24 Jun 7, 2016
860369c
Merge pull request #541 from sigmavirus24/use-tox-with-travis
sigmavirus24 Jan 25, 2017
08a6d8a
Allow all dunder variables above imports
vodik Jun 2, 2016
5393c7d
Merge pull request #613 from sigmavirus24/pr/523
sigmavirus24 Jan 26, 2017
1d633b2
Prepare 2.3.0 release
sigmavirus24 Jan 27, 2017
9f725fb
Merge pull request #616 from sigmavirus24/release/2.3
sigmavirus24 Jan 28, 2017
a574081
Fix regression in E302 detection
sigmavirus24 Jan 30, 2017
b10ea40
Allow for multiple spaces in top level regex
sigmavirus24 Jan 30, 2017
6837433
Merge pull request #618 from sigmavirus24/bug/617
sigmavirus24 Jan 30, 2017
e186792
Add regression test for nested definitions
sigmavirus24 Jan 30, 2017
4d502e4
Merge pull request #620 from sigmavirus24/bug/619
sigmavirus24 Jan 30, 2017
ca53501
Bump version for 2.3.1
sigmavirus24 Jan 30, 2017
4f429c7
Spelling fixes
scop Feb 24, 2017
f1908ba
Merge pull request #626 from scop/spelling
sigmavirus24 Feb 24, 2017
110a5c3
Python 3.6 invalid escape sequence deprecation fix
scop Feb 24, 2017
cb17d27
Correctly report E501 when the first line of a docstring is too long
asottile Mar 15, 2017
27ed964
Support variable annotation when variable start by a keyword
rach Mar 23, 2017
0d70cc8
Add test when variable with annotation start with a keyword
rach Mar 23, 2017
a988a67
update patch
rach Apr 7, 2017
e617167
update tests
rach Apr 7, 2017
b3ac41f
Fix erroneous regex repetition.
eddieantonio Apr 15, 2017
d87a443
Make identifiers camel-case; remove redundant space.
eddieantonio Apr 15, 2017
d5cc5f6
Merge pull request #630 from asottile/correct_e501_first_line_docstri…
sigmavirus24 Apr 22, 2017
7b98ff3
Avoid relying on inspect to list functions.
JulienPalard May 6, 2017
54a11aa
Merge pull request #647 from JulienPalard/avoid_inspect
sigmavirus24 May 14, 2017
83782f6
Use bisect instead of iterating over every offsets.
JulienPalard May 6, 2017
727dc51
Merge pull request #648 from JulienPalard/bisect
sigmavirus24 May 14, 2017
dec2f3f
Merge pull request #625 from scop/py36escseq
sigmavirus24 May 29, 2017
4538f43
Added .gitattributes to prevent auto-munging intentional line endings
kjcole May 30, 2017
f913dfc
Rename [wheel] section to [bdist_wheel] as the former is legacy (#653)
jdufresne Jun 4, 2017
454e035
Fix issue #643: Optimize noqa() with an lru_cache for Python 3.2+. (#…
JulienPalard Jun 4, 2017
a46c7a6
Merge branch 'master' into fix-variable-annotations
eddieantonio Jun 7, 2017
769ea41
Merge pull request #640 from eddieantonio/fix-variable-annotations
sigmavirus24 Jun 10, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
testsuite/E90.py -text
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
dist
docs/_build
build/
venv/
43 changes: 27 additions & 16 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,34 @@
language: python
sudo: false
python:
- 2.6
- 2.7
- 3.2
- 3.3
- 3.4
- nightly
- pypy
- pypy3
install:
- pip install -e .
- pip list
script:
- python pep8.py --testsuite testsuite
- python pep8.py --statistics pep8.py
- python pep8.py --doctest
- python setup.py test
- pip install tox
script: tox
matrix:
include:
- python: 2.6
env: TOXENV=py26
- python: 2.7
env: TOXENV=py27
- python: 3.3
env: TOXENV=py33
- python: 3.4
env: TOXENV=py34
- python: 3.5
env: TOXENV=py35
- python: 3.6
env: TOXENV=py36
- python: nightly
env: TOXENV=py37
- python: pypy
env: TOXENV=pypy
- python: 3.5
env: TOXENV=flake8

notifications:
email:
- [email protected]
irc:
channels:
- "irc.freenode.org##python-code-quality"
use_notice: true
skip_join: true
100 changes: 95 additions & 5 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,105 @@
Changelog
=========

2.3.1 (2017-01-31)
------------------

Bugs:

* Fix regression in detection of E302 and E306; #618, #620

2.3.0 (2017-01-30)
------------------

New Checks:

* Add E722 warning for bare ``except`` clauses
* Report E704 for async function definitions (``async def``)

Bugs:

* Fix another E305 false positive for variables beginning with "class" or
"def"
* Fix detection of multiple spaces between ``async`` and ``def``
* Fix handling of variable annotations. Stop reporting E701 on Python 3.6 for
variable annotations.

1.6.x (unreleased)
2.2.0 (2016-11-14)
------------------

Announcements:

* Added Make target to obtain proper tarball file permissions; #599

Bugs:

* Fixed E305 regression caused by #400; #593

2.1.0 (2016-11-04)
------------------

Announcements:

* Change all references to the pep8 project to say pycodestyle; #530

Changes:

* Report E302 for blank lines before an "async def"; #556
* Update our list of tested and supported Python versions which are 2.6, 2.7,
3.2, 3.3, 3.4 and 3.5 as well as the nightly Python build and PyPy.
* Report E742 and E743 for functions and classes badly named 'l', 'O', or 'I'.
* Report E741 on 'global' and 'nonlocal' statements, as well as prohibited
single-letter variables.
* Deprecated use of `[pep8]` section name in favor of `[pycodestyle]`; #591
* Report E722 when bare except clause is used; #579

Bugs:

* Fix opt_type AssertionError when using Flake8 2.6.2 and pycodestyle; #561
* Require two blank lines after toplevel def, class; #536
* Remove accidentally quadratic computation based on the number of colons. This
will make pycodestyle faster in some cases; #314

2.0.0 (2016-05-31)
------------------

Announcements:

* Repository renamed to `pycodestyle`; Issue #466 / #481.
* Added joint Code of Conduct as member of PyCQA; #483

Changes:

* Added tox test support for Python 3.5 and pypy3
* Added check E275 for whitespace on `from ... import ...` lines; #489 / #491
* Added W503 to the list of codes ignored by default ignore list; #498
* Removed use of project level `.pep8` configuration file; #364

Bugs:

* Fixed bug with treating `~` operator as binary; #383 / #384
* Identify binary operators as unary; #484 / #485

1.7.0 (2016-01-12)
------------------

Announcements:

* Repository moved to PyCQA Organization on GitHub:
https://github.com/pycqa/pep8

Changes:

* Reverted the fix in #368, "options passed on command line are only ones
accepted" feature. This has many unintended consequences in pep8 and flake8
and needs to be reworked when I have more time.
* Added support for Python 3.5. (Issue #420 & #459)
* Added support for multi-line config_file option parsing. (Issue #429)
* Improved parameter parsing. (Issues #420 & #456)

Bugs:

* Fixed BytesWarning on Python 3. (Issue #459)

1.6.2 (2015-02-15)
------------------
Expand Down Expand Up @@ -321,7 +411,7 @@ Bug fixes:

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

* Allow to change the ``checker_class`` for the ``StyleGuide``.
* Allow changing the ``checker_class`` for the ``StyleGuide``.


1.4.2 (2013-02-10)
Expand All @@ -331,7 +421,7 @@ Bug fixes:

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

* Allow to construct a ``StyleGuide`` with a custom parser.
* Allow constructing a ``StyleGuide`` with a custom parser.

* Accept visual indentation without parenthesis after the ``if``
statement. (Issue #151)
Expand Down Expand Up @@ -377,7 +467,7 @@ Bug fixes:
(Issue #93 and #141)

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


1.3.4 (2012-12-18)
Expand Down Expand Up @@ -540,7 +630,7 @@ Bug fixes:
The ``--repeat`` flag becomes obsolete because it is the default
behaviour. (Issue #6)

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

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

Expand Down
72 changes: 72 additions & 0 deletions CONTRIBUTING.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
Contributing to pycodestyle
===========================

When contributing to pycodestyle, please observe our `Code of Conduct`_.

Step 1: Forking pycodestyle for editing
---------------------------------------

Fork the pycodestyle repository on GitHub. This will add
pycodestyle to your GitHub account. You will push your changes to your
fork and then make pull requests into the official pycodestyle repository.

GitHub has an excellent `guide`_ that has screenshots on how to do this.

Next, clone your fork of the pycodestyle repository to your system for
editing::

$ git clone https://www.github.com/<your_username>/pycodestyle

Now you have a copy of the pycodestyle codebase that is almost ready for
edits. Next we will setup `virtualenv`_ which will help create an isolated
environment to manage dependencies.


Step 2: Use virtualenv when developing
--------------------------------------

`virtualenv`_ is a tool to create isolated python environments.
First, install virtualenv with::

$ pip install virtualenv

Next, ``cd`` to the pycodestyle repository that you cloned earlier and
create, then activate a virtualenv::

$ cd pycodestyle
$ virtualenv pycodestyle-venv
$ source pycodestyle-venv/bin/activate

Now you can install the pycodestyle requirements::

$ pip install -r dev-requirements.txt

To deactivate the virtualenv you can type::

$ deactivate

For more information see `virtualenv`_'s documentation.


Step 3: Run tests
-----------------

Before creating a pull request you should run the tests to make sure that the
changes that have been made haven't caused any regressions in functionality.
To run the tests, the core developer team and Travis-CI use `tox`_::

$ pip install -r dev-requirements.txt
$ tox

All the tests should pass for all available interpreters, with the summary of::

congratulations :)

At this point you can create a pull request back to the official pycodestyles
repository for review! For more information on how to make a pull request,
GitHub has an excellent `guide`_.

.. _virtualenv: http://docs.python-guide.org/en/latest/dev/virtualenvs/
.. _guide: https://guides.github.com/activities/forking/
.. _tox: https://tox.readthedocs.io/en/latest/
.. _Code of Conduct: http://meta.pycqa.org/en/latest/code-of-conduct.html
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Copyright © 2006-2009 Johann C. Rocholl <[email protected]>
Copyright © 2009-2014 Florent Xicluna <[email protected]>
Copyright © 2014-2015 Ian Lee <[email protected]>
Copyright © 2014-2016 Ian Lee <[email protected]>

Licensed under the terms of the Expat License

Expand Down
9 changes: 6 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
release:
umask 022 && chmod -R a+rX . && python setup.py sdist bdist_wheel

test :
python pep8.py --testsuite testsuite
python pycodestyle.py --testsuite testsuite

selftest :
python pep8.py --statistics pep8.py
python pycodestyle.py --statistics pycodestyle.py

doctest :
python pep8.py --doctest
python pycodestyle.py --doctest

unittest :
python -m testsuite.test_all
Expand Down
Loading