summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* | Merge pull request #853 from rettenbs/masterIan Stapleton Cordasco2019-03-101-4/+35
|\ \ | | | | | | Fixes some issues with E741 detection
| * | Add line breaks in commentSebastian Rettenberger2019-03-081-1/+2
| | |
| * | Add lines breaksSebastian Rettenberger2019-03-081-2/+4
| | |
| * | Fixes some issues with E741 detectionSebastian Rettenberger2019-03-081-4/+32
|/ /
* | Merge pull request #850 from asottile/E721_false_positiveIan Stapleton Cordasco2019-03-012-1/+4
|\ \ | | | | | | Fix E721 false positive
| * | Fix E721 false positiveAnthony Sottile2019-03-012-1/+4
|/ /
* | Merge pull request #847 from adamchainz/E225_boolean_operatorsIan Stapleton Cordasco2019-03-012-2/+13
|\ \ | | | | | | E225 Check for space around boolean operators
| * | Check for 'is' and 'in' as wellAdam Johnson2019-02-282-1/+5
| | |
| * | E225 Check for space around boolean operatorsAdam Johnson2019-02-272-2/+9
| | | | | | | | | | | | This was documented in the docstring for `missing_whitespace_around_operator` but not implemented, allowing e.g. `1and 0` to pass. Fixed by adding test case then modifying the check to search for the 'and' and 'or' operators as well.
* | | Merge pull request #848 from adamchainz/tox_urlIan Stapleton Cordasco2019-03-011-1/+1
|\ \ \ | |/ / |/| | Update tox url in tox.ini
| * | Update tox url in tox.iniAdam Johnson2019-02-281-1/+1
|/ / | | | | | | The previous one lead to a dead-end 404.
* | Merge pull request #837 from jdufresne/over-indent-tabsIan Stapleton Cordasco2019-02-017-28/+33
|\ \ | |/ |/| Expect lines to be indented 8 places when tabs are used
| * Expect lines to be indented 8 places when tabs are usedJon Dufresne2019-01-317-28/+33
|/ | | | Fixes #836
* Merge pull request #832 from asottile/patch-1Ian Stapleton Cordasco2019-01-301-1/+1
|\ | | | | Tiny typo fix
| * Tiny typo fixAnthony Sottile2019-01-291-1/+1
|/
* Add release notes for 2.5.02.5.0Ian Stapleton Cordasco2019-01-292-2/+18
| | | | Bump version to 2.5.0 for release
* Merge pull request #831 from asottile/noqa_W605Ian Stapleton Cordasco2019-01-272-1/+8
|\ | | | | Allow W605 to be silenced by noqa
| * Allow W605 to be silenced by noqaAnthony Sottile2019-01-262-1/+8
|/
* Merge pull request #705 from jdufresne/over-indentedIan Stapleton Cordasco2019-01-259-30/+40
|\ | | | | Add check for over-indented blocks
| * Add check for over-indented blocksJon Dufresne2019-01-249-30/+40
| | | | | | | | | | | | | | | | | | In a project with all lines indented 4 spaces, I noticed pycodestyle was not catching code that was accidentally indented two levels (8 spaces). The over indentation was unintended and can be caught during static analysis. Fixes #430
* | Merge pull request #829 from jdufresne/xenialIan Stapleton Cordasco2019-01-251-3/+4
|\ \ | |/ |/| Use 'dist: xenial' in Travis to simplify configuration
| * Use 'dist: xenial' in Travis to simplify configurationJon Dufresne2019-01-241-3/+4
|/ | | | | | | | Allows using Python version 3.7 without sudo declarations. Travis officially added support for Xenial on 2018-11-08. https://blog.travis-ci.com/2018-11-08-xenial-release
* Merge pull request #823 from anntzer/allow-no-blanks-around-one-linersIan Stapleton Cordasco2019-01-233-0/+39
|\ | | | | Allow omitting blank lines around one-liner definitions.
| * Allow omitting blank lines around one-liner definitions.Antony Lee2019-01-053-0/+39
| |
* | Merge pull request #819 from wwwjfy/issue-811Ian Stapleton Cordasco2019-01-232-0/+17
|\ \ | | | | | | fix #811, corner cases for async/await check
| * | fix #811, corner cases for async/await checkTony Wang2018-11-242-0/+17
| |/
* | Merge pull request #798 from jdufresne/rstIan Stapleton Cordasco2019-01-171-3/+3
|\ \ | | | | | | Correct ReStructuredText inline literal syntax in CONTRIBUTING.rst
| * | Correct ReStructuredText inline literal syntax in CONTRIBUTING.rstJon Dufresne2019-01-161-3/+3
|/ /
* | Add whitespace around -> annotating operator (#809)Tomer Keren2018-12-073-1/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Test for whitespace around -> operator Tests will pass after fixing issue #803 * Require whitespace around -> operator Closes: #803 * Move tests to correct cases * Whitelist python3 only tests * Fix whitespace test errors Huge thanks to @asottile! * Address code review Pushing this directly to run full testsuite on travis * :bug:Change error code to space around bitwise operator E227 * Check for -> annotation only in py3.5+ * Skip tests meant for higher versions of python * Move type annotation tests to python3.5 testsuite Type annotations were first introduced in PEP 484,https://www.python.org/dev/peps/pep-0484/ implemented in python3.5 * Shorten line skipping tests by version * Replace test skipping logic As requested in code review * Run formatting to avoid long lines
* | Merge pull request #820 from wwwjfy/w606-tweakIan Stapleton Cordasco2018-11-282-1/+5
|\ \ | |/ |/| refs W606, only NAME can follow await
| * add test for demonstrationTony Wang2018-11-251-0/+4
| |
| * refs W606, only NAME can follow awaitTony Wang2018-11-241-1/+1
|/ | | | await NUMBER or await STRING is not valid syntax
* Merge pull request #801 from mwhudson/tokenizer-compatIan Stapleton Cordasco2018-11-221-2/+2
|\ | | | | Keep compability with stdlib tokenize.py changes
| * Keep compability with stdlib tokenize.py changesMichael Hudson-Doyle2018-09-251-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | https://github.com/python/cpython/commit/c4ef4896eac86a6759901c8546e26de4695a1389 is not yet part of any release of Python but has been backported to all versions in Git (includeing 2.7!). It causes the tokenize.py module to emit a synthetic NEWLINE token for files that do not in fact end with a newline, which confuses pycodestyle's checks for blank lines at the end of a file. Fortunately the synthetic NEWLINE tokens are easy to detect (the token text is ""). Fixes #786
* | Merge pull request #818 from mgedmin/accurate-multiline-positionIan Stapleton Cordasco2018-11-222-5/+17
|\ \ | | | | | | Make W605 point to the invalid sequence
| * | Microoptimisation: avoid creating string slicesMarius Gedminas2018-11-221-1/+1
| | | | | | | | | | | | str.count() can limit the counting to a range of string positions.
| * | Make W605 point to the invalid sequenceMarius Gedminas2018-11-222-5/+17
|/ / | | | | | | | | | | | | Instead of having W605 point to the beginning of the string literal, make it point to the precise line and column of the invalid escape sequence. This is more helpful when you have multiline string literals.
* | Merge pull request #799 from jdufresne/typosIan Lee2018-11-141-1/+1
|\ \ | | | | | | Fix some spelling in CONTRIBUTING.rst
| * | Fix some spelling in CONTRIBUTING.rstJon Dufresne2018-09-161-1/+1
| |/
* | Merge pull request #794 from jdufresne/py37Ian Lee2018-11-143-2/+5
|\ \ | | | | | | Add testing and document support for Python 3.7
| * | Add testing and document support for Python 3.7Jon Dufresne2018-09-093-2/+5
| | | | | | | | | | | | | | | | | | Python 3.7 was released on June 27, 2018. https://docs.python.org/3/whatsnew/3.7.html
* | | Merge pull request #808 from asottile/invalid_escape_sequence_offsetIan Stapleton Cordasco2018-10-243-4/+9
|\ \ \ | |_|/ |/| | Fix line offset for 'invalid escape sequence'
| * | Add offsets for other W605 testsAnthony Sottile2018-10-211-2/+2
| | |
| * | Fix line offset for 'invalid escape sequence'Anthony Sottile2018-10-203-2/+7
|/ /
* | Merge pull request #800 from jdufresne/noseIan Stapleton Cordasco2018-09-163-18/+3
|\ \ | |/ |/| Remove suggestion and documentation of using unmaintained nose
| * Remove suggestion and documentation of using unmaintained noseJon Dufresne2018-09-153-18/+3
|/ | | | | | | | | | | | | | The nose project has ceased development. The last commit is from Mar 3, 2016. From their docs page: https://nose.readthedocs.io/ > Note to Users > > Nose has been in maintenance mode for the past several years and will > likely cease without a new person/team to take over maintainership. > New projects should consider using Nose2, py.test, or just plain > unittest/unittest2.
* Merge pull request #778 from scop/spellingIan Stapleton Cordasco2018-07-081-1/+1
|\ | | | | Comment spelling fix
| * Comment spelling fixVille Skyttä2018-07-071-1/+1
|/
* Merge pull request #769 from jdufresne/pypiIan Stapleton Cordasco2018-06-112-3/+3
|\ | | | | Update all pypi.python.org URLs to pypi.org
| * Update all pypi.python.org URLs to pypi.orgJon Dufresne2018-06-092-3/+3
|/ | | | | | For details on the new PyPI, see the blog post: https://pythoninsider.blogspot.ca/2018/04/new-pypi-launched-legacy-pypi-shutting.html