summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * 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
* Merge pull request #720 from jdufresne/pyreqIan Lee2018-06-037-39/+23
|\ | | | | Remove support for EOL Python 2.6 and 3.3
| * Marked changelog that this PR will be version 3.xIan Lee2018-06-031-2/+2
| |
| * Added PR numberIan Lee2018-06-031-1/+1
| |
| * Remove support for EOL Python 2.6 and 3.3Jon Dufresne2018-06-027-39/+23
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Python 2.6 an 3.3 are end of life. They are no longer receiving bug fixes, including for security issues. Python 2.6 went EOL on 2013-10-29 and 3.3 on 2017-09-29. For additional details on support Python versions, see: https://devguide.python.org/#status-of-python-branches Removing support for EOL Pythons will reduce testing and maintenance resources. Removed all workarounds for older Pythons. Updated trove classifiers and documentation to better communicate supported Python versions. Additionally, pass python_requires argument to setuptools. Helps pip decide what version of the library to install. https://packaging.python.org/tutorials/distributing-packages/#python-requires > If your project only runs on certain Python versions, setting the > python_requires argument to the appropriate PEP 440 version specifier > string will prevent pip from installing the project on other Python > versions. https://setuptools.readthedocs.io/en/latest/setuptools.html#new-and-changed-setup-keywords > python_requires > > A string corresponding to a version specifier (as defined in PEP 440) > for the Python version, used to specify the Requires-Python defined in > PEP 345. Can now use more modern Python syntax including dictionary comprehension as well as more generators. Closes #755
* Merge pull request #751 from hhatto/w504-positionIan Stapleton Cordasco2018-05-191-2/+3
|\ | | | | Change the position pointed out by W504
| * rename variablehhatto2018-04-141-3/+3
| |
| * Change the position pointed out by W504hhatto2018-04-141-2/+3
| |
* | Merge pull request #674 from brianv0/docstring_supportIan Stapleton Cordasco2018-05-1410-186/+280
|\ \ | | | | | | Support for W505 - doc line length
| * | Pydoc fixes to support W505 in self-checksBrian Van Klaveren2018-05-115-150/+171
| | |
| * | Implement W505 - Max Doc Length checkBrian Van Klaveren2018-05-116-36/+109
|/ /
* | Add explanation about the default configurationToshiki Hirao2018-04-221-0/+2
| | | | | | Closes gh-685
* | Fix detection of annotated argument defaultsJimmy Jia2018-04-182-6/+9
|/ | | | | This improves E252 to allow default arguments like `_default(f=1)`. Closes gh-753
* Merge pull request #747 from hhatto/w605-positionIan Stapleton Cordasco2018-04-121-1/+1
|\ | | | | Change the position pointed out by W605
| * Change the position pointed out by W605hhatto2018-04-121-1/+1
| |
* | Fix flake8 test environmentIan Stapleton Cordasco2018-04-122-4/+5
|/
* Release v2.4.02.4.0Ian Stapleton Cordasco2018-04-102-3/+3
|
* Merge pull request #740 from JakobGM/docs/changesIan Lee2018-04-091-3/+39
|\ | | | | Add changelog items for 2.3.1...master
| * Add PR references from all changelog itemsJakob Gerhard Martinussen2018-04-091-18/+18
| |
| * Fixed typoIan Lee2018-04-091-1/+1
| |
| * Add changelog items for 2.3.1...masterJakob Gerhard Martinussen2018-04-091-3/+39
|/
* Add variables so blank lines may be configuresAdi Roiban2018-04-085-15/+653
| | | | | | | | This adds some module level configuration points for users to define how many blank lines they want in their code. It paves the way for someone to develop a flake8 plugin to configure this in pycodestyle. Fixes #732
* Ignore length of shebang line (#736)Jimi Cullen2018-04-032-1/+9
| | | | | | | | * Add special case to maximum_line_length to ignore long shebang lines. * Add test for ignoring long shebang lines. * Clean up shebang line check.
* Finalize support for Python 3.7Adi Roiban2018-03-244-5/+5
| | | | | | | | Python 3.7 added a warning for a future feature of nested regular expressions. To avoid this warning we escape what is not a nested regex. This also keeps track of the `async` keyword and handles it appropriately. Closes gh-728
* Merge pull request #684 from jdufresne/async-awaitIan Stapleton Cordasco2018-02-174-0/+103
|\ | | | | Add W606 warning for async and await keywords in Python 3.7
| * Add W606 warning for async and await keywords in Python 3.7Jon Dufresne2017-09-304-0/+103
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | From https://docs.python.org/3/whatsnew/3.6.html#new-keywords > async and await are not recommended to be used as variable, class, > function or module names. Introduced by PEP 492 in Python 3.5, they > will become proper keywords in Python 3.7. Starting in Python 3.6, the > use of async or await as names will generate a DeprecationWarning. By adding a warning to pycodestyle.py these future warnings and syntax errors can be caught during static code analysis. The await expression tests were taken from PEP-492. https://www.python.org/dev/peps/pep-0492/#id58
* | Updated License / copyright dateIan Lee2018-02-081-1/+1
| |
* | Merge pull request #717 from taion/annot-missing-spaceIan Stapleton Cordasco2018-01-242-5/+23
|\ \ | | | | | | Add E252 on missing whitespace for annotated parameter defaults
| * | Add E252 on missing whitespace for annotated parameter defaultsJimmy Jia2017-12-162-5/+23
| | |
* | | Merge pull request #724 from peterjc/patch-1Ian Stapleton Cordasco2018-01-231-4/+7
|\ \ \ | | | | | | | | Describe code W504 line break after binary operator
| * | | Describe code W504 line break after binary operatorPeter Cock2018-01-231-4/+7
|/ / / | | | | | | Cross reference changes in pull request #502 which added this.
* | | Merge pull request #502 from sigmavirus24/add-W504Ian Lee2018-01-198-81/+129
|\ \ \ | | | | | | | | Add W504 for line breaks before binary operators
| * | | Fixed wording in docstringIan Lee2018-01-191-2/+2
| | | |
| * | | Fixed typoIan Lee2018-01-191-1/+1
| | | |