Closed madwort closed 3 months ago
It appears to be passing the filename of files modified in the proposed commit as recipe names to just - it probably doesn't need to do this.
just
(.venv) tom@MadBook3 ehrql % just check => ruff format --diff --quiet . => ruff check --output-format=full . All checks passed! => docker run --rm -i ghcr.io/hadolint/hadolint:v2.12.0-alpine < Dockerfile (.venv) tom@MadBook3 ehrql % git commit -a check....................................................................Failed - hook id: check - exit code: 1 error: Justfile does not contain recipe `tests/generative/ignored_errors.py`. trim trailing whitespace.................................................Passed fix end of files.........................................................Passed debug statements (python)................................................Passed check python ast.........................................................Passed check json...........................................(no files to check)Skipped check toml...........................................(no files to check)Skipped check yaml...........................................(no files to check)Skipped detect private key.......................................................Passed (.venv) tom@MadBook3 ehrql % just check => ruff format --diff --quiet . => ruff check --output-format=full . All checks passed! => docker run --rm -i ghcr.io/hadolint/hadolint:v2.12.0-alpine < Dockerfile (.venv) tom@MadBook3 ehrql % just check tests/generative/ignored_errors.py error: Justfile does not contain recipe `tests/generative/ignored_errors.py`.
@evansd says
You can disable pre-commit for a single repo using: git config core.hooksPath /dev/null
git config core.hooksPath /dev/null
It appears to be passing the filename of files modified in the proposed commit as recipe names to
just
- it probably doesn't need to do this.