third_party/pep8
9 years agoAdd tests on PyPy 3 for Travis-CI
Florent Xicluna [Wed, 17 Dec 2014 01:30:51 +0000 (02:30 +0100)]
Add tests on PyPy 3 for Travis-CI

9 years agoAdd changelog entry for #323
Florent Xicluna [Wed, 17 Dec 2014 00:50:46 +0000 (01:50 +0100)]
Add changelog entry for #323

9 years agoMerge branch 'issue-323'
Florent Xicluna [Wed, 17 Dec 2014 00:49:04 +0000 (01:49 +0100)]
Merge branch 'issue-323'

9 years agoThis appears to fix #323
Ian Cordasco [Sun, 31 Aug 2014 22:07:39 +0000 (17:07 -0500)]
This appears to fix #323

I am very skeptical of this though

9 years agoAdd failing test for #323
Ian Cordasco [Sun, 31 Aug 2014 21:28:10 +0000 (16:28 -0500)]
Add failing test for #323

9 years agoUpdate changelog for issue #297
Ian Lee [Tue, 16 Dec 2014 17:40:22 +0000 (09:40 -0800)]
Update changelog for issue #297

9 years agoCatch import errors thrown by os.path.expanduser(); issue #297
Ian Lee [Tue, 16 Dec 2014 17:36:53 +0000 (09:36 -0800)]
Catch import errors thrown by os.path.expanduser(); issue #297

* This can happen particularly with AppEngine when importing pwd

9 years agoAdd toplevel build dir to git ignore file
Ian Lee [Tue, 16 Dec 2014 17:29:37 +0000 (09:29 -0800)]
Add toplevel build dir to git ignore file

9 years agoFix definition of isidentifier in Python 2
Florent Xicluna [Tue, 16 Dec 2014 06:34:10 +0000 (07:34 +0100)]
Fix definition of isidentifier in Python 2

9 years agoFix too long line introducing E501 error
Ian Lee [Tue, 16 Dec 2014 03:17:16 +0000 (19:17 -0800)]
Fix too long line introducing E501 error

9 years agoReplace the IDENTIFIER_REGEX with the isidentifier function
Florent Xicluna [Tue, 16 Dec 2014 00:38:56 +0000 (01:38 +0100)]
Replace the IDENTIFIER_REGEX with the isidentifier function

9 years agoMerge pull request #312 from sigmavirus24/bug/311
Florent Xicluna [Tue, 16 Dec 2014 00:15:15 +0000 (01:15 +0100)]
Merge pull request #312 from sigmavirus24/bug/311

Fix #311. Add regex to check for field assignment

9 years agoTestCase.assertEqual is the recommended spelling
Florent Xicluna [Mon, 15 Dec 2014 21:59:51 +0000 (22:59 +0100)]
TestCase.assertEqual is the recommended spelling

9 years agoReview changelog
Florent Xicluna [Mon, 15 Dec 2014 21:49:11 +0000 (22:49 +0100)]
Review changelog

9 years agoRemove noise from testsuite/E12not.py
Florent Xicluna [Mon, 15 Dec 2014 21:48:52 +0000 (22:48 +0100)]
Remove noise from testsuite/E12not.py

9 years agoMerge branch 'issue304'
Ian Lee [Mon, 15 Dec 2014 02:26:00 +0000 (18:26 -0800)]
Merge branch 'issue304'

9 years agoRename check to signify that it applies to module level imports only; issue #304
Ian Lee [Mon, 15 Dec 2014 02:21:11 +0000 (18:21 -0800)]
Rename check to signify that it applies to module level imports only; issue #304

9 years agoAdd error code E402 to docs; issue #304
Ian Lee [Mon, 15 Dec 2014 01:59:25 +0000 (17:59 -0800)]
Add error code E402 to docs; issue #304

9 years agoMerge remote-tracking branch 'yole/import-on-top-of-file' into issue304
Ian Lee [Mon, 15 Dec 2014 01:21:09 +0000 (17:21 -0800)]
Merge remote-tracking branch 'yole/import-on-top-of-file' into issue304

9 years agoAdd changelog for #335
Ian Lee [Sun, 14 Dec 2014 06:44:47 +0000 (22:44 -0800)]
Add changelog for #335

9 years agoMerge pull request #340 from bdkearns/master
Ian Lee [Sun, 14 Dec 2014 06:42:04 +0000 (22:42 -0800)]
Merge pull request #340 from bdkearns/master

Merged, thanks!

9 years agoMerge pull request #347 from helenst/e711-reverse-comparison
Ian Lee [Sun, 14 Dec 2014 03:55:21 +0000 (19:55 -0800)]
Merge pull request #347 from helenst/e711-reverse-comparison

Looks good, thanks!

9 years agoMerge branch 'issue306'
Ian Lee [Sun, 14 Dec 2014 03:47:23 +0000 (19:47 -0800)]
Merge branch 'issue306'

9 years agoRemove stdout check that fails under pypy.
Ian Lee [Sun, 14 Dec 2014 03:26:05 +0000 (19:26 -0800)]
Remove stdout check that fails under pypy.

This second E901 error actually only shows up in the test framework
and does not happen if you run the code within the Python interpreter.

9 years agoDon't crash if build_tokens_line() returns None; issue #306
Ian Lee [Sun, 14 Dec 2014 03:08:06 +0000 (19:08 -0800)]
Don't crash if build_tokens_line() returns None; issue #306

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 agoFixed operator check for E711/E712 (Ref #307)
Helen ST [Thu, 11 Dec 2014 21:30:45 +0000 (21:30 +0000)]
Fixed operator check for E711/E712 (Ref #307)

9 years agoE711 / E712 checks test for None != arg and False == arg
Helen ST [Thu, 11 Dec 2014 19:28:12 +0000 (19:28 +0000)]
E711 / E712 checks test for None != arg and False == arg

(Fixes #307)

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 agoadd .tox to DEFAULT_EXCLUDE
Brian Kearns [Thu, 23 Oct 2014 23:46:28 +0000 (19:46 -0400)]
add .tox to DEFAULT_EXCLUDE

9 years agoUpdate fix for E731
Ian Cordasco [Sat, 9 Aug 2014 00:38:04 +0000 (19:38 -0500)]
Update fix for E731

Thanks to @mypalmike for thinking of the extra cases

9 years agoFix #311. Add regex to check for field assignment
Ian Cordasco [Thu, 7 Aug 2014 18:39:18 +0000 (13:39 -0500)]
Fix #311. Add regex to check for field assignment

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.

9 years agoReport E402 for imports not on top of file; issue #264. Also add ability to keep...
Dmitry Jemerov [Thu, 24 Jul 2014 16:29:58 +0000 (18:29 +0200)]
Report E402 for imports not on top of file; issue #264. Also add ability to keep local state for each checker plugin. #ep14boat

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