Skip to content
  1. Aug 26, 2020
    • Jerome Berthier's avatar
      tools/pyflakes.sh: allow to override PYFILES from environment variable · c1d0e3c6
      Jerome Berthier authored and hydrargyrum's avatar hydrargyrum committed
      Useful when using with a pre-push hook, it is useless to run flakes
      on the whole code base every time you push.
      
      Example of pre-push hook using this feature:
      
      ref=$(git rev-list --boundary HEAD...master | grep "^-" | cut -c2-)
      PYFILES="$(git diff ${ref} --name-only | grep -E "*.py$" | xargs)" $PWD/tools/pyflakes.sh
      if [ "$?" -ne "0" ]; then
          echo >&2 "Flakes error"
          exit 1
      fi
      c1d0e3c6
  2. May 07, 2020
  3. Nov 20, 2019
  4. Mar 16, 2019
  5. Jan 06, 2019
  6. Jun 09, 2018
  7. Apr 27, 2018
    • hydrargyrum's avatar
      tools/pyflakes.sh: fix bashism · 0616f497
      hydrargyrum authored
      The $'xxx' syntax is not standard shell syntax so it wasn't interpreted
      correctly, causing pyflakes to spit a lot of errors.
      This is after porting shebang to plain sh.
      0616f497
  8. Apr 26, 2018
  9. Apr 23, 2018
  10. Mar 05, 2018
  11. Oct 29, 2017
  12. Aug 30, 2017
  13. Jul 22, 2017
  14. Jul 16, 2017
  15. Jul 11, 2017
  16. Jul 08, 2017
  17. Jun 19, 2017
  18. Aug 28, 2016
  19. Jan 17, 2016
  20. Nov 28, 2014
  21. Oct 07, 2014
  22. Oct 06, 2014
  23. Jun 18, 2014
  24. Mar 13, 2014
  25. Aug 12, 2013
  26. Jul 27, 2013
  27. Jul 23, 2013
  28. Jul 21, 2013
  29. Jul 20, 2013
  30. Apr 05, 2013
  31. Apr 03, 2013
  32. Mar 15, 2013
  33. Mar 09, 2013
  34. Dec 19, 2012
  35. Nov 24, 2012
    • Laurent Bachelier's avatar
      Use flake8 if available instead of pyflakes · 541d080c
      Laurent Bachelier authored
      With flake8, we can check for more issues and ignore those who are not
      real issues.
      
      This allowed me to find genuine errors in:
      - modules/boursorama/pages/account_history.py
      - modules/ing/pages/login.py
      - weboob/tools/application/qt/qt.py
      I left one in weboob/tools/browser/browser.py for the time being.
      
      Some PEP8 fixes on other files.
      541d080c
  36. Jan 17, 2012
  37. Mar 01, 2011