Permalink
Commits on Dec 11, 2017
  1. Merge pull request #714 from hugovk/patch-2

    sigmavirus24 committed Dec 11, 2017
    Add Python 3.6 to test list in dev docs
  2. Add Python 3.6

    hugovk committed Dec 11, 2017
    Plus Travis CI typo
Commits on Nov 18, 2017
  1. Merge pull request #663 from mjsir911/merge

    sigmavirus24 committed Nov 18, 2017
    Allow continuation of verbosity level
Commits on Oct 25, 2017
  1. Merge pull request #699 from Wilfred/patch-1

    IanLee1521 committed Oct 25, 2017
    Fix space in flag name
  2. Fix space in flag name

    Wilfred committed Oct 25, 2017
    Previously, the line break in the source would result in
    `--hang- closing` (note the space) being rendered in the HTML.
Commits on Oct 24, 2017
  1. Merge pull request #697 from dirkmueller/master

    IanLee1521 committed Oct 24, 2017
    Fix missed quoting in E722 check
  2. Fix missed quoting in E722 check

    dirkmueller committed Oct 24, 2017
    The warning looks fairly odd:
    
    E722 do not use bare except'
    
    change this to
    
    E722 do not use bare 'except'
Commits on Oct 22, 2017
  1. Merge pull request #654 from jdufresne/trove-py-versions

    sigmavirus24 committed Oct 22, 2017
    Document all supported Python versions as trove classifiers
Commits on Oct 18, 2017
  1. Merge pull request #695 from jdufresne/cache

    IanLee1521 committed Oct 18, 2017
    Enable pip cache in Travis CI
  2. Enable pip cache in Travis CI

    jdufresne committed Oct 18, 2017
    Can speed up builds and reduce load on PyPI servers.
    
    For more information, see:
    
    https://docs.travis-ci.com/user/caching/#pip-cache
Commits on Oct 17, 2017
  1. Merge pull request #694 from jdufresne/wheel-license

    IanLee1521 committed Oct 17, 2017
    Include license file in the generated wheel package
  2. Include license file in the generated packages

    jdufresne committed Oct 16, 2017
    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
Commits on Oct 15, 2017
  1. Merge pull request #693 from annp89/add-examples

    sigmavirus24 committed Oct 15, 2017
    Add examples
  2. Maintain alphabetical ordering

    annp89 committed Oct 15, 2017
Commits on Sep 27, 2017
  1. Merge pull request #676 from jdufresne/invalid-escape

    sigmavirus24 committed Sep 27, 2017
    Add W605 warning for invalid escape sequences in string literals
Commits on Sep 10, 2017
  1. Add W605 warning for invalid escape sequences in string literals

    jdufresne committed Aug 19, 2017
    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
Commits on Jul 9, 2017
Commits on Jun 10, 2017
  1. Merge pull request #640 from eddieantonio/fix-variable-annotations

    sigmavirus24 committed Jun 10, 2017
    Fix variable annotations
Commits on Jun 7, 2017
Commits on Jun 4, 2017
  1. Fix issue #643: Optimize noqa() with an lru_cache for Python 3.2+. (#644

    JulienPalard committed with sigmavirus24 Jun 4, 2017
    )
    
    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+).
Commits on Jun 3, 2017
  1. Document all supported Python versions as trove classifiers

    jdufresne committed Jun 3, 2017
    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.
Commits on May 30, 2017
  1. Added .gitattributes to prevent auto-munging intentional line endings

    kjcole committed with sigmavirus24 May 30, 2017
    Users' global .gitattributes files may attempt to auto-fix certain files.
Commits on May 29, 2017
  1. Merge pull request #625 from scop/py36escseq

    sigmavirus24 committed May 29, 2017
    Python 3.6 invalid escape sequence deprecation fix
Commits on May 14, 2017
  1. Merge pull request #648 from JulienPalard/bisect

    sigmavirus24 committed May 14, 2017
    Use bisect instead of iterating over every offsets.
  2. Use bisect instead of iterating over every offsets.

    JulienPalard committed May 6, 2017
    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
  3. Merge pull request #647 from JulienPalard/avoid_inspect

    sigmavirus24 committed May 14, 2017
    Avoid relying on inspect to list functions.
Commits on May 9, 2017
  1. Avoid relying on inspect to list functions.

    JulienPalard committed May 6, 2017
    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
Commits on Apr 22, 2017
  1. Merge pull request #630 from asottile/correct_e501_first_line_docstri…

    sigmavirus24 committed Apr 22, 2017
    …ng_622
    
    Correctly report E501 when the first line of a docstring is too long
Commits on Apr 15, 2017