diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c8f58ae..bd9bdd1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -21,6 +21,13 @@ repos: - repo: local hooks: + - id: python_format + name: Python format + entry: sh -c 'pwd && ls && ls client/trailbase-py && ls client/trailbase-py/pyproject.toml && poetry --version && poetry -C client/trailbase-py run black --version && poetry -C client/trailbase-py run black --config client/trailbase-py/pyproject.toml --check .' + language: system + types: [file] + files: .*\.(py)$ + pass_filenames: false ### Rust ### - id: cargofmt name: Cargo Format @@ -128,13 +135,6 @@ repos: pass_filenames: false ### Python client - - id: python_format - name: Python format - entry: poetry -C client/trailbase-py run black --check . - language: system - types: [file] - files: .*\.(py)$ - pass_filenames: false - id: python_check name: Python check