diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,30 +5,34 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. repos: -- repo: https://github.com/pre-commit/pre-commit-hooks - rev: v2.3.0 - hooks: - - id: check-yaml - - id: end-of-file-fixer - - id: trailing-whitespace -- repo: https://github.com/asottile/reorder_python_imports - rev: v2.7.1 - hooks: - - id: reorder-python-imports -- repo: https://github.com/psf/black - rev: 22.3.0 - hooks: - - id: black - # It is recommended to specify the latest version of Python - # supported by your project here, or alternatively use - # pre-commit's default_language_version, see - # https://pre-commit.com/#top_level-default_language_version - language_version: python3.8 -- repo: local - hooks: - - id: pytest-check - name: pytest-check - entry: poetry run pytest - language: system - pass_filenames: false - always_run: true + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v2.3.0 + hooks: + - id: check-yaml + - id: end-of-file-fixer + - id: trailing-whitespace + - repo: https://github.com/asottile/reorder_python_imports + rev: v2.7.1 + hooks: + - id: reorder-python-imports + - repo: https://github.com/psf/black + rev: 22.3.0 + hooks: + - id: black + # It is recommended to specify the latest version of Python + # supported by your project here, or alternatively use + # pre-commit's default_language_version, see + # https://pre-commit.com/#top_level-default_language_version + language_version: python3.8 + - repo: https://github.com/python-poetry/poetry + rev: "1.3.2" + hooks: + - id: poetry-check # Double-check the config formatting + - repo: local + hooks: + - id: pytest-check + name: pytest-check + entry: poetry run pytest + language: system + pass_filenames: false + always_run: true