You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.3 KiB

  1. repos:
  2. - repo: git@github.com:pre-commit/pre-commit-hooks.git
  3. rev: v1.4.0
  4. hooks:
  5. - id: autopep8-wrapper
  6. language_version: python2
  7. args:
  8. - --in-place
  9. - --aggressive
  10. - --aggressive
  11. - --ignore=E731
  12. - --max-line-length=131
  13. - id: check-added-large-files
  14. language_version: python2
  15. - id: check-ast
  16. language_version: python2
  17. - id: check-case-conflict
  18. language_version: python2
  19. - id: check-docstring-first
  20. language_version: python2
  21. - id: debug-statements
  22. language_version: python2
  23. - id: double-quote-string-fixer
  24. language_version: python2
  25. - id: end-of-file-fixer
  26. language_version: python2
  27. exclude_types: [batch, lua]
  28. - id: fix-encoding-pragma
  29. language_version: python2
  30. - id: flake8
  31. language_version: python2
  32. args:
  33. - --max-complexity=10
  34. - --max-line-length=131
  35. - --ignore=E402,E731
  36. - --exclude=bin/autojump_argparse.py
  37. - id: name-tests-test
  38. language_version: python2
  39. - id: requirements-txt-fixer
  40. language_version: python2
  41. - id: trailing-whitespace
  42. language_version: python2
  43. - repo: git@github.com:asottile/reorder_python_imports.git
  44. rev: v1.1.1
  45. hooks:
  46. - id: reorder-python-imports
  47. language_version: python2
  48. - repo: git@github.com:asottile/add-trailing-comma
  49. rev: v0.7.0
  50. hooks:
  51. - id: add-trailing-comma