| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- repos:
- - repo: https://github.com/pre-commit/pre-commit-hooks
- rev: v4.0.1
- hooks:
- - id: check-yaml
- - id: end-of-file-fixer
- - id: trailing-whitespace
- - id: check-case-conflict
- - id: check-ast
- - id: check-added-large-files
- args: ["--maxkb=1000"]
- - repo: https://github.com/psf/black
- rev: 21.9b0
- hooks:
- - id: black
- - repo: https://github.com/pre-commit/mirrors-prettier
- rev: v2.3.2
- hooks:
- - id: prettier
- - repo: https://github.com/pycqa/isort
- rev: 5.8.0
- hooks:
- - id: isort
- name: isort (python)
- # - repo: https://github.com/PyCQA/pydocstyle
- # rev: 6.1.1
- # hooks:
- # - id: pydocstyle
- # name: pydocstyle
- - repo: https://github.com/pre-commit/mirrors-mypy
- rev: v0.920
- hooks:
- - id: mypy
- name: mypy
- additional_dependencies: ["requests"]
- - repo: local
- hooks:
- - id: poetry-install
- name: Install project deps
- entry: poetry install
- language: python
- additional_dependencies: [pre-commit, poetry]
- always_run: true
- pass_filenames: false
- - id: run-tests
- name: Run tests
- entry: poetry run pytest
- language: python
- additional_dependencies: [pre-commit, poetry]
- always_run: true
- pass_filenames: false
|