.pre-commit-config.yaml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. repos:
  2. - repo: https://github.com/pre-commit/pre-commit-hooks
  3. rev: v4.0.1
  4. hooks:
  5. - id: check-yaml
  6. - id: end-of-file-fixer
  7. - id: trailing-whitespace
  8. - id: check-case-conflict
  9. - id: check-ast
  10. - id: check-added-large-files
  11. args: ["--maxkb=1000"]
  12. - repo: https://github.com/psf/black
  13. rev: 21.9b0
  14. hooks:
  15. - id: black
  16. - repo: https://github.com/pre-commit/mirrors-prettier
  17. rev: v2.3.2
  18. hooks:
  19. - id: prettier
  20. - repo: https://github.com/pycqa/isort
  21. rev: 5.8.0
  22. hooks:
  23. - id: isort
  24. name: isort (python)
  25. - repo: https://github.com/PyCQA/pydocstyle
  26. rev: 6.1.1
  27. hooks:
  28. - id: pydocstyle
  29. name: pydocstyle
  30. - repo: https://github.com/pre-commit/mirrors-mypy
  31. rev: v0.920
  32. hooks:
  33. - id: mypy
  34. name: mypy
  35. additional_dependencies: ["requests"]
  36. - repo: https://github.com/pycqa/pylint
  37. rev: v2.15.3
  38. hooks:
  39. - id: pylint
  40. types: [python]
  41. - repo: local
  42. hooks:
  43. - id: poetry-install
  44. name: Install project deps
  45. entry: poetry install
  46. language: system
  47. always_run: true
  48. pass_filenames: false
  49. - id: run-tests
  50. name: Run tests
  51. entry: poetry run pytest
  52. language: system
  53. always_run: true
  54. pass_filenames: false