summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* 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
| | | |
| * | | Add a changelog entry for W504Ian Stapleton Cordasco2018-01-171-0/+2
| | | |
| * | | Fix up testsuite for W504Ian Stapleton Cordasco2018-01-176-42/+37
| | | |
| * | | Add W504 for line breaks before binary operatorsIan Cordasco2018-01-173-49/+100
|/ / / | | | | | | | | | | | | | | | This flips the W503 rule to enforce line breaks before binary operators. Related #498
* | | Merge pull request #706 from mic4ael/mnemonic-symbols-gitIan Stapleton Cordasco2017-12-282-1/+13
|\ \ \ | |/ / |/| | Fix handling of diffs with mnemonic prefixes
| * | Fix handling of diffs with mnemonic prefixesMichal Kolodziejski2017-12-272-1/+13
|/ /
* | Merge pull request #714 from hugovk/patch-2Ian Stapleton Cordasco2017-12-111-2/+2
|\ \ | | | | | | Add Python 3.6 to test list in dev docs
| * | Add Python 3.6Hugo2017-12-111-2/+2
|/ / | | | | Plus Travis CI typo
* | Merge pull request #663 from mjsir911/mergeIan Stapleton Cordasco2017-11-181-2/+7
|\ \ | | | | | | Allow continuation of verbosity level
| * | Default `verbose` to `None` instead of `0`Marco Sirabella2017-10-221-1/+1
| | |
| * | Handle conflicting CLI and verbose=# betterMarco Sirabella2017-10-221-2/+3
| | |
| * | Transform booleans to numbers to go with previous codeMarco Sirabella2017-10-221-2/+2
| | |
| * | - Forward down verbosity levelMarco J Sirabella2017-07-091-2/+6
| | |
* | | Merge pull request #699 from Wilfred/patch-1Ian Lee2017-10-251-2/+2
|\ \ \ | | | | | | | | Fix space in flag name
| * | | Fix space in flag nameWilfred Hughes2017-10-251-2/+2
|/ / / | | | | | | | | | | | | Previously, the line break in the source would result in `--hang- closing` (note the space) being rendered in the HTML.
* | | Merge pull request #697 from dirkmueller/masterIan Lee2017-10-241-1/+1
|\ \ \ | | | | | | | | Fix missed quoting in E722 check
| * | | Fix missed quoting in E722 checkDirk Mueller2017-10-241-1/+1
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | The warning looks fairly odd: E722 do not use bare except' change this to E722 do not use bare 'except'
* | | Merge pull request #654 from jdufresne/trove-py-versionsIan Stapleton Cordasco2017-10-221-0/+8
|\ \ \ | | | | | | | | Document all supported Python versions as trove classifiers
| * | | Document all supported Python versions as trove classifiersJon Dufresne2017-06-031-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | I frequently use PyPI trove classifiers to check if a 3rd party package is usable by my projects. Documenting the supported versions makes this much easier for potential library users.
* | | | Merge pull request #695 from jdufresne/cacheIan Lee2017-10-171-0/+1
|\ \ \ \ | | | | | | | | | | Enable pip cache in Travis CI
| * | | | Enable pip cache in Travis CIJon Dufresne2017-10-171-0/+1
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | Can speed up builds and reduce load on PyPI servers. For more information, see: https://docs.travis-ci.com/user/caching/#pip-cache
* | | | Merge pull request #694 from jdufresne/wheel-licenseIan Lee2017-10-172-0/+4
|\ \ \ \ | | | | | | | | | | Include license file in the generated wheel package
| * | | | Include license file in the generated packagesJon Dufresne2017-10-162-0/+4
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use MANIFEST.in to include LICENSE in the source distribution. The wheel package format supports including the license file. This is done using the [metadata] section in the setup.cfg file. For additional information on this feature, see: https://wheel.readthedocs.io/en/stable/index.html#including-the-license-in-the-generated-wheel-file
* | | | Merge pull request #693 from annp89/add-examplesIan Stapleton Cordasco2017-10-151-0/+2
|\ \ \ \ | |_|_|/ |/| | | Add examples
| * | | Maintain alphabetical orderingAnn Paul2017-10-141-1/+1
| | | |
| * | | Config file example for boolean flagsAnn Paul2017-10-141-0/+2
|/ / /
* | | Merge pull request #676 from jdufresne/invalid-escapeIan Stapleton Cordasco2017-09-275-4/+80
|\ \ \ | |_|/ |/| | Add W605 warning for invalid escape sequences in string literals
| * | Add W605 warning for invalid escape sequences in string literalsJon Dufresne2017-09-105-4/+80
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Starting with Python 3.6, invalid escape sequences in string literals are now deprecated. In a future version of Python, invalid escape sequences will be a syntax error. While this deprecation produces a runtime warning, it only appears if warnings are enabled and the first time the Python source is compiled to byte code. By adding a check to pycodestyle, projects can take advantage of static analysis to catch and fix these future syntax errors. For more information on the deprecation, see the Python release notes, https://docs.python.org/3/whatsnew/3.6.html#deprecated-python-behavior > A backslash-character pair that is not a valid escape sequence now > generates a DeprecationWarning. Although this will eventually become a > SyntaxError, that will not be for several Python releases. Fixes #633
* | Merge pull request #640 from eddieantonio/fix-variable-annotationsIan Cordasco2017-06-092-2/+23
|\ \ | | | | | | Fix variable annotations
| * \ Merge branch 'master' into fix-variable-annotationsEddie Antonio Santos2017-06-074-54/+93
| |\ \ | |/ / |/| |
* | | Fix issue #643: Optimize noqa() with an lru_cache for Python 3.2+. (#644)Julien2017-06-031-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | Had to catch a "No signature found for builtin <built-in method search of _sre.SRE_Pattern object at 0x...>" in 3.4: In python3.4 the search was not detected as a function, now that it's wrapped in an lru_cache it is, yet it still has no signature (it has in 3.5+).
* | | Rename [wheel] section to [bdist_wheel] as the former is legacy (#653)Jon Dufresne2017-06-031-1/+1
| |/ |/| | | | | | | | | | | See: https://bitbucket.org/pypa/wheel/src/54ddbcc9cec25e1f4d111a142b8bfaa163130a61/wheel/bdist_wheel.py?fileviewer=file-view-default#bdist_wheel.py-119:125 http://pythonwheels.com/
* | Added .gitattributes to prevent auto-munging intentional line endingsKevin Cole2017-05-301-0/+1
| | | | | | Users' global .gitattributes files may attempt to auto-fix certain files.