third_party/pep8
9 years agoEmail notificates when Travis runs
Ian Lee [Sun, 14 Dec 2014 03:16:35 +0000 (19:16 -0800)]
Email notificates when Travis runs

9 years agoDont need to make a sphinx table header explicitly bold
Ian Lee [Sat, 13 Dec 2014 22:54:21 +0000 (14:54 -0800)]
Dont need to make a sphinx table header explicitly bold

9 years agoAdd documentation for ``--format`` (#198 / #310)
Ian Lee [Sat, 13 Dec 2014 22:53:41 +0000 (14:53 -0800)]
Add documentation for ``--format`` (#198 / #310)

9 years agoMerge pull request #310 from ilam/featuredoc
Ian Lee [Sat, 13 Dec 2014 22:46:26 +0000 (14:46 -0800)]
Merge pull request #310 from ilam/featuredoc

Looks good, thanks @ilam

9 years agoMerge branch 'willkg:normalize_path_fix'
Ian Lee [Sat, 13 Dec 2014 21:34:29 +0000 (13:34 -0800)]
Merge branch 'willkg:normalize_path_fix'

Pull request #343, Issues #339 / #343

9 years agoUpdate changelog for issue #339 / #343
Ian Lee [Sat, 13 Dec 2014 20:48:35 +0000 (12:48 -0800)]
Update changelog for issue #339 / #343

9 years agoAdd Ian to list of maintainers.
Ian Lee [Sat, 13 Dec 2014 04:52:36 +0000 (20:52 -0800)]
Add Ian to list of maintainers.

9 years agoAdd a few more cases of "not value"
Ian Lee [Sat, 13 Dec 2014 05:03:03 +0000 (21:03 -0800)]
Add a few more cases of "not value"

9 years agoFix normalize_paths to allow whitespace
Will Kahn-Greene [Fri, 7 Nov 2014 01:23:46 +0000 (20:23 -0500)]
Fix normalize_paths to allow whitespace

This fixes normalize_paths so that it strips whitespace before and after
paths before working on them. This allows you to do specify excludes
with multiple lines in the config file.

This also tweaks normalize_paths so that the behavior matches the
docstring.

This also adds tests.

Fixes #339

9 years agoFixed the formatting in the table
Ilambharathi Kanniah [Thu, 31 Jul 2014 20:08:25 +0000 (13:08 -0700)]
Fixed the formatting in the table

9 years agoAdded variables table for clarity
Ilambharathi Kanniah [Thu, 31 Jul 2014 20:03:30 +0000 (13:03 -0700)]
Added variables table for clarity

9 years agoCorrected some formatting
Ilambharathi Kanniah [Thu, 31 Jul 2014 18:13:19 +0000 (11:13 -0700)]
Corrected some formatting

9 years ago#198 --feature doc updated.
Ilambharathi Kanniah [Thu, 31 Jul 2014 18:10:37 +0000 (11:10 -0700)]
#198 --feature doc updated.

10 years agoDo not report E704 in the default configuration; issue #277
Florent Xicluna [Thu, 29 May 2014 17:57:51 +0000 (19:57 +0200)]
Do not report E704 in the default configuration; issue #277

10 years agoReport E266 instead of E265 when the block common starts with multiple #; issue #270
Florent Xicluna [Thu, 29 May 2014 17:33:09 +0000 (19:33 +0200)]
Report E266 instead of E265 when the block common starts with multiple #; issue #270

10 years agoReplace codes E111/2/3 with E114/5/6 for indentation of comments; issue #274
Florent Xicluna [Thu, 29 May 2014 17:27:05 +0000 (19:27 +0200)]
Replace codes E111/2/3 with E114/5/6 for indentation of comments; issue #274

10 years agoAdd changelog entries for E704 and E731
Florent Xicluna [Thu, 29 May 2014 17:20:14 +0000 (19:20 +0200)]
Add changelog entries for E704 and E731

10 years agoReport E731 for lambda assignment, return E704 for one-liner def instead of E701...
Florent Xicluna [Thu, 29 May 2014 17:14:06 +0000 (19:14 +0200)]
Report E731 for lambda assignment, return E704 for one-liner def instead of E701; issue #277

10 years agoRelease version 1.5.7
Florent Xicluna [Thu, 29 May 2014 16:57:00 +0000 (18:57 +0200)]
Release version 1.5.7

10 years agoAdd Python 3.4 to .travis.yml
Florent Xicluna [Mon, 26 May 2014 22:04:13 +0000 (00:04 +0200)]
Add Python 3.4 to .travis.yml

10 years agoAdd changelog entry
Florent Xicluna [Mon, 26 May 2014 21:23:50 +0000 (23:23 +0200)]
Add changelog entry

10 years agoMerge pull request #288 from dreadatour/universal-newline
Florent Xicluna [Mon, 26 May 2014 21:21:08 +0000 (23:21 +0200)]
Merge pull request #288 from dreadatour/universal-newline

Always open files with universal newline flag; issue #288

10 years agoAlways open files with universal newline flag
Vladimir Rudnyh [Fri, 9 May 2014 21:08:42 +0000 (01:08 +0400)]
Always open files with universal newline flag

10 years agoAdditional tests for W391
Florent Xicluna [Wed, 7 May 2014 20:35:28 +0000 (22:35 +0200)]
Additional tests for W391

10 years agoCheck the last line even if it does not end with a NL; issue #286
Florent Xicluna [Wed, 7 May 2014 20:12:42 +0000 (22:12 +0200)]
Check the last line even if it does not end with a NL; issue #286

10 years agoDo not exit when an option in setup.cfg / tox.ini is not recognized
Florent Xicluna [Mon, 5 May 2014 18:09:19 +0000 (20:09 +0200)]
Do not exit when an option in setup.cfg / tox.ini is not recognized

10 years agoMerge pull request #283 from HFulcher/master
Florent Xicluna [Tue, 29 Apr 2014 21:57:27 +0000 (23:57 +0200)]
Merge pull request #283 from HFulcher/master

Add path of the user configuration on Windows to the documentation; issue #281

10 years agoFixed #281 in docs
Huw Fulcher [Tue, 29 Apr 2014 21:23:40 +0000 (22:23 +0100)]
Fixed #281 in docs

Updated the Configuration section of the Intro Documentation to tell Windows users where their .pep8 configuration file is stored.

10 years agoMerge pull request #280 from lordhellcito/patch-1
Florent Xicluna [Tue, 29 Apr 2014 16:57:35 +0000 (18:57 +0200)]
Merge pull request #280 from lordhellcito/patch-1

The Windows platform does not define signal SIGPIPE

10 years agoUpdate pep8.py
lordhellcito [Sun, 27 Apr 2014 13:51:46 +0000 (15:51 +0200)]
Update pep8.py

Windows throws an AttributeError exception instead ValueError when calls signal.SIGPIPE.

10 years agoFix tests
Florent Xicluna [Sat, 26 Apr 2014 20:45:40 +0000 (22:45 +0200)]
Fix tests

10 years agoReplace codes E111/2/3 with E114/5/6 for indentation of comments; issue #274
Florent Xicluna [Sat, 26 Apr 2014 20:37:04 +0000 (22:37 +0200)]
Replace codes E111/2/3 with E114/5/6 for indentation of comments; issue #274

10 years agoAdd position to E26 tests
Florent Xicluna [Sat, 26 Apr 2014 19:04:56 +0000 (21:04 +0200)]
Add position to E26 tests

10 years agoReport E266 instead of E265 when the block common starts with multiple #; issue #270
Florent Xicluna [Sat, 26 Apr 2014 19:02:05 +0000 (21:02 +0200)]
Report E266 instead of E265 when the block common starts with multiple #; issue #270

10 years agoAdd tests for E731, issue #277
Florent Xicluna [Sat, 26 Apr 2014 16:45:35 +0000 (18:45 +0200)]
Add tests for E731, issue #277

10 years agoReport E731 for lambda assignment, return E704 for one-liner def instead of E701...
Florent Xicluna [Sat, 26 Apr 2014 16:34:09 +0000 (18:34 +0200)]
Report E731 for lambda assignment, return E704 for one-liner def instead of E701; issue #277

10 years agoMerge pull request #276 from cgar/trivial
Florent Xicluna [Wed, 23 Apr 2014 16:50:18 +0000 (18:50 +0200)]
Merge pull request #276 from cgar/trivial

few mispelling errors

10 years agofew mispelling errors
Carlos E. Garcia [Wed, 23 Apr 2014 14:52:40 +0000 (10:52 -0400)]
few mispelling errors

10 years agoReturn error code 1 on broken pipe, and restore compatibility with Python 2.5
Florent Xicluna [Fri, 18 Apr 2014 18:54:58 +0000 (20:54 +0200)]
Return error code 1 on broken pipe, and restore compatibility with Python 2.5

10 years agoMerge pull request #275 from winny-/master
Florent Xicluna [Fri, 18 Apr 2014 17:27:38 +0000 (19:27 +0200)]
Merge pull request #275 from winny-/master

Handle broken pipe in check_files()

10 years agoHandle broken pipe in check_files()
Winston Weinert [Fri, 18 Apr 2014 08:26:29 +0000 (03:26 -0500)]
Handle broken pipe in check_files()

This way partial output (e.g. "pep8 . | head") doesn't get clobbered with a
stacktrace on stderr.

10 years agoFix documentation build
Florent Xicluna [Mon, 14 Apr 2014 17:22:48 +0000 (19:22 +0200)]
Fix documentation build

10 years agoRelease version 1.5.6
Florent Xicluna [Mon, 14 Apr 2014 17:04:18 +0000 (19:04 +0200)]
Release version 1.5.6

10 years agoAdd total_lines to the developer documentation
Florent Xicluna [Mon, 14 Apr 2014 15:04:20 +0000 (17:04 +0200)]
Add total_lines to the developer documentation

10 years agoMerge checker W292 with checker W391 for better performance
Florent Xicluna [Mon, 14 Apr 2014 14:58:05 +0000 (16:58 +0200)]
Merge checker W292 with checker W391 for better performance

10 years agoSwitch two lines
Florent Xicluna [Mon, 14 Apr 2014 14:35:39 +0000 (16:35 +0200)]
Switch two lines

10 years agoCheck the last line even if it has not EOL; issue #273
Florent Xicluna [Mon, 14 Apr 2014 14:23:12 +0000 (16:23 +0200)]
Check the last line even if it has not EOL; issue #273

10 years agoRelease version 1.5.5
Florent Xicluna [Thu, 10 Apr 2014 08:54:30 +0000 (10:54 +0200)]
Release version 1.5.5

10 years agoCreate set of tokens for comparison; skip comments completely for E22 checks
Florent Xicluna [Tue, 8 Apr 2014 23:08:28 +0000 (01:08 +0200)]
Create set of tokens for comparison; skip comments completely for E22 checks

10 years agoFix regression with E22 checks and inline comments; issue #271
Florent Xicluna [Tue, 8 Apr 2014 22:31:29 +0000 (00:31 +0200)]
Fix regression with E22 checks and inline comments; issue #271

10 years agoRelease version 1.5.4
Florent Xicluna [Mon, 7 Apr 2014 05:53:05 +0000 (07:53 +0200)]
Release version 1.5.4

10 years agoRefactor method build_tokens_line
Florent Xicluna [Sun, 6 Apr 2014 12:30:23 +0000 (14:30 +0200)]
Refactor method build_tokens_line

10 years agoFix negative offset with E303 before a multi-line docstring; issue #269
Florent Xicluna [Sat, 5 Apr 2014 20:52:14 +0000 (22:52 +0200)]
Fix negative offset with E303 before a multi-line docstring; issue #269

10 years agoBack to development
Florent Xicluna [Sat, 5 Apr 2014 05:55:35 +0000 (07:55 +0200)]
Back to development

10 years agoRelease version 1.5.3
Florent Xicluna [Fri, 4 Apr 2014 19:47:24 +0000 (21:47 +0200)]
Release version 1.5.3

10 years agoFix wrong offset computation when error is on the last char of a physical line; issue...
Florent Xicluna [Fri, 4 Apr 2014 19:45:55 +0000 (21:45 +0200)]
Fix wrong offset computation when error is on the last char of a physical line; issue #268

10 years agoUpdate Travis configuration, and the wheel badge
Florent Xicluna [Fri, 4 Apr 2014 09:22:59 +0000 (11:22 +0200)]
Update Travis configuration, and the wheel badge

10 years agoTests should pass for the tarball distributed on PyPI; issue 267
Florent Xicluna [Fri, 4 Apr 2014 07:59:55 +0000 (09:59 +0200)]
Tests should pass for the tarball distributed on PyPI; issue 267

10 years agoRelease version 1.5.2
Florent Xicluna [Fri, 4 Apr 2014 06:56:34 +0000 (08:56 +0200)]
Release version 1.5.2

10 years agoDo not allow newline after parameter equal; issue #252
Florent Xicluna [Thu, 3 Apr 2014 22:22:38 +0000 (00:22 +0200)]
Do not allow newline after parameter equal; issue #252

10 years agoFix caret position when line contains tabs
Florent Xicluna [Thu, 3 Apr 2014 21:55:02 +0000 (23:55 +0200)]
Fix caret position when line contains tabs

10 years agoReport correct line number for E303 with comments; issue #60
Florent Xicluna [Thu, 3 Apr 2014 21:28:21 +0000 (23:28 +0200)]
Report correct line number for E303 with comments; issue #60

10 years agoAdd tests relevant for issue #220
Florent Xicluna [Thu, 3 Apr 2014 21:23:12 +0000 (23:23 +0200)]
Add tests relevant for issue #220

10 years agoAdd some tests with row and column
Florent Xicluna [Thu, 3 Apr 2014 21:21:26 +0000 (23:21 +0200)]
Add some tests with row and column

10 years agoAllow to test row and column.
Florent Xicluna [Thu, 3 Apr 2014 21:17:51 +0000 (23:17 +0200)]
Allow to test row and column.

10 years agoFix line number and offset for E125 with multi-line strings; issue #220
Florent Xicluna [Thu, 3 Apr 2014 17:19:13 +0000 (19:19 +0200)]
Fix line number and offset for E125 with multi-line strings; issue #220

10 years agoRefactor the logical line building and checking.
Florent Xicluna [Thu, 3 Apr 2014 16:52:29 +0000 (18:52 +0200)]
Refactor the logical line building and checking.

10 years agoFix line number and offset for multi-line strings; issue #220
Florent Xicluna [Thu, 3 Apr 2014 16:33:27 +0000 (18:33 +0200)]
Fix line number and offset for multi-line strings; issue #220

10 years agoReorder changelog
Florent Xicluna [Thu, 3 Apr 2014 16:30:36 +0000 (18:30 +0200)]
Reorder changelog

10 years agoAdd a second test for issue #265
Florent Xicluna [Wed, 2 Apr 2014 23:32:11 +0000 (01:32 +0200)]
Add a second test for issue #265

10 years agoDistribute a universal wheel file, .whl
Florent Xicluna [Wed, 2 Apr 2014 23:11:31 +0000 (01:11 +0200)]
Distribute a universal wheel file, .whl

10 years agoFix E501 not detected in comments with Python 2.5
Florent Xicluna [Wed, 2 Apr 2014 23:09:02 +0000 (01:09 +0200)]
Fix E501 not detected in comments with Python 2.5

10 years agoFix false positive E121/E126 with multi-line string; issue #265
Florent Xicluna [Wed, 2 Apr 2014 22:32:28 +0000 (00:32 +0200)]
Fix false positive E121/E126 with multi-line string; issue #265

10 years agoReview comment
Florent Xicluna [Wed, 2 Apr 2014 22:12:49 +0000 (00:12 +0200)]
Review comment

10 years agoUse the open() context manager, supported since Python 2.5
Florent Xicluna [Fri, 28 Mar 2014 21:46:02 +0000 (22:46 +0100)]
Use the open() context manager, supported since Python 2.5

10 years agoMinor changes
Florent Xicluna [Fri, 28 Mar 2014 21:34:44 +0000 (22:34 +0100)]
Minor changes

10 years agoBack to development; review some docstrings in relation with PEP 257.
Florent Xicluna [Fri, 28 Mar 2014 21:20:57 +0000 (22:20 +0100)]
Back to development; review some docstrings in relation with PEP 257.

10 years agoRelease version 1.5.1
Florent Xicluna [Thu, 27 Mar 2014 17:31:24 +0000 (18:31 +0100)]
Release version 1.5.1

10 years agoFix a crash with E125 on multi-line strings; closes #263
Florent Xicluna [Thu, 27 Mar 2014 11:00:03 +0000 (12:00 +0100)]
Fix a crash with E125 on multi-line strings; closes #263

10 years agoRelease version 1.5
Florent Xicluna [Wed, 26 Mar 2014 11:00:08 +0000 (12:00 +0100)]
Release version 1.5

10 years agoRemove an extra comma in the test
Florent Xicluna [Tue, 25 Mar 2014 23:48:48 +0000 (00:48 +0100)]
Remove an extra comma in the test

10 years agoAck PyPy SyntaxError
Florent Xicluna [Tue, 25 Mar 2014 23:43:59 +0000 (00:43 +0100)]
Ack PyPy SyntaxError

10 years agoAdd a message for test_check_nullbytes
Florent Xicluna [Tue, 25 Mar 2014 23:31:04 +0000 (00:31 +0100)]
Add a message for test_check_nullbytes

10 years agoReview messages for E713 and E714
Florent Xicluna [Tue, 25 Mar 2014 23:10:13 +0000 (00:10 +0100)]
Review messages for E713 and E714

10 years agoReport E131 instead of E121 / E126 for unaligned hanging indent
Florent Xicluna [Tue, 25 Mar 2014 22:28:21 +0000 (23:28 +0100)]
Report E131 instead of E121 / E126 for unaligned hanging indent

10 years agoMerge. Allow long lines in docstrings and comments.
Florent Xicluna [Tue, 25 Mar 2014 18:35:37 +0000 (19:35 +0100)]
Merge.  Allow long lines in docstrings and comments.

Allow long lines in multiline strings and comments if they cannot be wrapped; issue #224
Optionally disable physical line checks inside multiline strings, using '# noqa'; issue #242

10 years agoSeparate Changes and Bug fixes in the changelog
Florent Xicluna [Tue, 25 Mar 2014 17:57:59 +0000 (18:57 +0100)]
Separate Changes and Bug fixes in the changelog

10 years agoClarify E121 and E126 for hanging indents, and reports all over-indented continuation...
Florent Xicluna [Tue, 25 Mar 2014 01:45:40 +0000 (02:45 +0100)]
Clarify E121 and E126 for hanging indents, and reports all over-indented continuation lines under E126.

10 years agoMerge, add E265 for space before block comment; issue #190
Florent Xicluna [Tue, 25 Mar 2014 00:39:06 +0000 (01:39 +0100)]
Merge, add E265 for space before block comment; issue #190

10 years agoMerge branch 'master' into issue126
Florent Xicluna [Tue, 25 Mar 2014 00:13:47 +0000 (01:13 +0100)]
Merge branch 'master' into issue126

10 years agoCatch more E713 and E714 with a regular expression; issue #236 continued
Florent Xicluna [Mon, 24 Mar 2014 23:50:05 +0000 (00:50 +0100)]
Catch more E713 and E714 with a regular expression; issue #236 continued

10 years agoMerge pull request #260 from chrismedrela/ticket236
Florent Xicluna [Mon, 24 Mar 2014 22:59:30 +0000 (23:59 +0100)]
Merge pull request #260 from chrismedrela/ticket236

Fixed #236 -- added checks for 'not X in L' and 'not X is Y'

10 years agoRelax a bit the regex for W602, 3-arguments raise; closes #34
Florent Xicluna [Mon, 24 Mar 2014 22:56:59 +0000 (23:56 +0100)]
Relax a bit the regex for W602, 3-arguments raise; closes #34

10 years agoA false positivee E126 when indenting with tabs; closes #204
Florent Xicluna [Mon, 24 Mar 2014 22:26:01 +0000 (23:26 +0100)]
A false positivee E126 when indenting with tabs; closes #204

10 years agoMinor change in previous patch
Florent Xicluna [Mon, 24 Mar 2014 20:53:02 +0000 (21:53 +0100)]
Minor change in previous patch

10 years agoMerge pull request #227 from solj/disable-w601
Florent Xicluna [Mon, 24 Mar 2014 20:49:43 +0000 (21:49 +0100)]
Merge pull request #227 from solj/disable-w601

Allow disable of W601

10 years agoA false positive E126 with embedded colon; fixes #144
Florent Xicluna [Mon, 24 Mar 2014 20:34:00 +0000 (21:34 +0100)]
A false positive E126 with embedded colon; fixes #144

10 years agoAvoid printing errors twice
Florent Xicluna [Mon, 24 Mar 2014 20:26:36 +0000 (21:26 +0100)]
Avoid printing errors twice

10 years agoDo not report multiple E101 if only one line starts with a tab; issue #237
Florent Xicluna [Mon, 24 Mar 2014 18:20:50 +0000 (19:20 +0100)]
Do not report multiple E101 if only one line starts with a tab; issue #237

10 years agoImprove the test framework to count the errors, motivated by issue #237
Florent Xicluna [Mon, 24 Mar 2014 18:13:43 +0000 (19:13 +0100)]
Improve the test framework to count the errors, motivated by issue #237