.pre-commit-config.yaml 758 B

12345678910111213141516171819202122232425262728
  1. - repo: git://github.com/pre-commit/pre-commit-hooks
  2. sha: 'v0.9.1'
  3. hooks:
  4. - id: check-added-large-files
  5. - id: check-docstring-first
  6. - id: check-merge-conflict
  7. - id: check-yaml
  8. - id: check-json
  9. - id: debug-statements
  10. - id: end-of-file-fixer
  11. - id: flake8
  12. - id: name-tests-test
  13. exclude: 'tests/(integration/testcases\.py|helpers\.py)'
  14. - id: requirements-txt-fixer
  15. - id: trailing-whitespace
  16. - repo: git://github.com/asottile/reorder_python_imports
  17. sha: v1.3.4
  18. hooks:
  19. - id: reorder-python-imports
  20. language_version: 'python3.7'
  21. args:
  22. - --py3-plus
  23. - repo: https://github.com/asottile/pyupgrade
  24. rev: v2.1.0
  25. hooks:
  26. - id: pyupgrade
  27. args:
  28. - --py3-plus