Skip to content

pre-commt run --all-files only runs on what is staged still #1394

@pip9ball

Description

@pip9ball

When I run .git_hooks/pre-commit run --all-files, pre-commit still only runs on what is staged. Infact, passing any options to pre-commit doesn't seem to have any affect on what is executed.

git_hooks/pre-commit run --all-files
Trim Trailing Whitespace.............................(no files to check)Skipped
Fix End of Files.....................................(no files to check)Skipped
Check Yaml...........................................(no files to check)Skipped
Check for added large files..........................(no files to check)Skipped
Check JSON...........................................(no files to check)Skipped
Check Xml............................................(no files to check)Skipped
Check for merge conflicts............................(no files to check)Skipped
Pretty format JSON...................................(no files to check)Skipped
.git_hooks/pre-commit flake8
Trim Trailing Whitespace.............................(no files to check)Skipped
Fix End of Files.....................................(no files to check)Skipped
Check Yaml...........................................(no files to check)Skipped
Check for added large files..........................(no files to check)Skipped
Check JSON...........................................(no files to check)Skipped
Check Xml............................................(no files to check)Skipped
Check for merge conflicts............................(no files to check)Skipped
Pretty format JSON...................................(no files to check)Skipped

Wondering if my install is somehow incorrect?

Thx,
Phil

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions