summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Inserting test case for GitHub #702gh-702Ian Lee2017-11-031-0/+5
| | | | | | | This is interesting though in that, at least for me in Python 3.6 run via tox locally, it doesnt actually fail as would be expected based on the report, and my own re-creation manually with a test file... More investigation is needed.
* 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.
* | Merge pull request #625 from scop/py36escseqIan Cordasco2017-05-291-1/+1
|\ \ | | | | | | Python 3.6 invalid escape sequence deprecation fix
| * | Python 3.6 invalid escape sequence deprecation fixVille Skyttä2017-02-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | https://docs.python.org/3/whatsnew/3.6.html#deprecated-python-behavior "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."
* | | Merge pull request #648 from JulienPalard/bisectIan Cordasco2017-05-141-4/+6
|\ \ \ | | | | | | | | Use bisect instead of iterating over every offsets.
| * | | Use bisect instead of iterating over every offsets.Julien Palard2017-05-141-4/+6
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As the offsets looks already sorted (which looks logical so I assumed they always are), using a bisection if faster than iterating over all of them. On a specific test I encontered, I got nice enhancement with this patch: $ time python3 ./pycodestyle.py ~/Downloads/PmagPy/PmagPy/coefficients-552K.py > /dev/null real 1m16.405s $ time python3 ./pycodestyle.py ~/Downloads/PmagPy/PmagPy/coefficients-552K.py > /dev/null real 0m3.318s
* | | Merge pull request #647 from JulienPalard/avoid_inspectIan Cordasco2017-05-131-45/+64
|\ \ \ | | | | | | | | Avoid relying on inspect to list functions.
| * | | Avoid relying on inspect to list functions.Julien Palard2017-05-091-45/+64
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allow to run python3 -m cProfile ./pycodestyle.py …. Otherwise, as cProfile looks to wrap every functions (in a way I did not studied in depth), the inspection of test function found no function, and no test were run while running under cProfile, meaning that: $ time python3 ./pycodestyle.py coefficients-148K.py [loads and loads of errors properly reported] real 0m4.712s user 0m4.684s sys 0m0.024s $ time python3 -m cProfile ./pycodestyle.py /home/mdk/Downloads/pystyle/stats/git-clones/PmagPy/PmagPy/coefficients-148K.py [no error reported as no check were found by inspection] real 0m0.447s user 0m0.436s sys 0m0.008s With this patch: $ time python3 -m cProfile ./pycodestyle.py /home/mdk/Downloads/pystyle/stats/git-clones/PmagPy/PmagPy/coefficients-148K.py [loads and loads of errors properly reported] real 0m4.889s user 0m4.852s sys 0m0.032s
* | | Merge pull request #630 from asottile/correct_e501_first_line_docstring_622Ian Cordasco2017-04-222-2/+9
|\ \ \ | | | | | | | | Correctly report E501 when the first line of a docstring is too long
| * | | Correctly report E501 when the first line of a docstring is too longAnthony Sottile2017-03-152-2/+9
|/ / / | | | | | | | | | Resolves #622
| | * Make identifiers camel-case; remove redundant space.Eddie Antonio Santos2017-04-151-11/+12
| | |
| | * Fix erroneous regex repetition.Eddie Antonio Santos2017-04-151-1/+1
| | |
| | * update testsRach Belaid2017-04-061-0/+10
| | |
| | * update patchRach Belaid2017-04-061-2/+2
| | |
| | * Add test when variable with annotation start with a keywordRach Belaid2017-03-221-1/+11
| | |
| | * Support variable annotation when variable start by a keywordRach Belaid2017-03-221-1/+1
| |/ |/| | | | | | | | | | | Support case when the variable name start by a keyword, eg: ``` class Test: formula: str = None ```
* | Merge pull request #626 from scop/spellingIan Cordasco2017-02-242-2/+2
|\ \ | |/ |/| Spelling fixes
| * Spelling fixesVille Skyttä2017-02-242-2/+2
|/
* Bump version for 2.3.12.3.1Ian Cordasco2017-01-302-1/+8
| | | | Add release notes for 2.3.1 as well
* Merge pull request #620 from sigmavirus24/bug/619Ian Cordasco2017-01-301-0/+4
|\ | | | | Add regression test for nested definitions
| * Add regression test for nested definitionsIan Cordasco2017-01-301-0/+4
|/ | | | | | | The bug was already fixed since it also affected E302 but this adds a test to ensure it doesn't regress for nested definitions either. Closes gh-619
* Merge pull request #618 from sigmavirus24/bug/617Ian Cordasco2017-01-302-1/+4
|\ | | | | Fix regression in E302 detection
| * Allow for multiple spaces in top level regexIan Cordasco2017-01-301-1/+1
| |
| * Fix regression in E302 detectionIan Cordasco2017-01-302-1/+4
|/ | | | | | | | This was similar to an issue we had with E306 in which we were only checking that a line started with "def" or "class" which catches global vars like "defaults" or "classification". Closes gh-617
* Merge pull request #616 from sigmavirus24/release/2.32.3.0Ian Cordasco2017-01-282-1/+17
|\ | | | | Prepare 2.3.0 release
| * Prepare 2.3.0 releaseIan Cordasco2017-01-272-1/+17
|/
* Merge pull request #613 from sigmavirus24/pr/523Ian Cordasco2017-01-252-1/+12
|\ | | | | Allow all dunder variables above imports
| * Allow all dunder variables above importsSimon Gomizelj2017-01-252-1/+12
|/ | | | Closes #394
* Merge pull request #541 from sigmavirus24/use-tox-with-travisIan Cordasco2017-01-252-18/+29
|\ | | | | Switch Travis to use tox
| * Switch Travis to use toxIan Cordasco2017-01-252-18/+29
|/ | | | | | | | | | This reduces confusion about how travis runs tests versus a local developer. Unfortunately, pypy3 on Travis is stuck to a version that only implements Python 3.2. There is no convenient work around for that version so we remove it from our matrix until Travis updates their images.
* Merge pull request #610 from khairihafsham/e306-docIan Cordasco2017-01-241-0/+1
|\ | | | | added function doc to blank_lines() for E306