Skip to content
Snippets Groups Projects
  1. Nov 03, 2017
    • Ian Lee's avatar
      Inserting test case for GitHub #702 · f3c8eeb7
      Ian Lee authored
      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.
      f3c8eeb7
  2. Oct 25, 2017
  3. Oct 24, 2017
  4. Oct 22, 2017
  5. Oct 18, 2017
  6. Oct 17, 2017
  7. Oct 15, 2017
  8. Sep 27, 2017
  9. Sep 10, 2017
    • Jon Dufresne's avatar
      Add W605 warning for invalid escape sequences in string literals · 13d2bd20
      Jon Dufresne authored
      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
      13d2bd20
  10. Jun 10, 2017
  11. Jun 07, 2017
  12. Jun 04, 2017
  13. Jun 03, 2017
  14. May 30, 2017
  15. May 29, 2017
  16. May 14, 2017
  17. May 09, 2017
    • Julien Palard's avatar
      Avoid relying on inspect to list functions. · 7b98ff3a
      Julien Palard authored
      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
      7b98ff3a
  18. Apr 22, 2017
  19. Apr 15, 2017
  20. Apr 07, 2017
  21. Mar 23, 2017
  22. Mar 15, 2017
  23. Feb 25, 2017
  24. Feb 24, 2017
  25. Jan 30, 2017
Loading