Skip to content

issues Search Results · repo:pre-commit/pre-commit-hooks language:Python

Filter by

533 results
 (62 ms)

533 results

inpre-commit/pre-commit-hooks (press backspace or delete to remove)

When the project files and the tmp directory are on different volumens, trailing-whitespace fails to run $ prek run -a trim trailing whitespace.................................................error: Failed ...
  • davidolrik
  • 1
  • Opened 
    10 days ago
  • #1187

Summary Create a dedicated pre-commit hook check-lfs-file-size to enforce size limits specifically on Git LFS-tracked files. Motivation The existing check-added-large-files hook explicitly filters out ...
  • eliemada
  • 1
  • Opened 
    on Jul 22
  • #1184

Summary Add a boolean flag to control whether files tracked by Git LFS should be filtered out from large file size checks. Current Behavior The find_large_added_files function currently always calls ...
  • eliemada
  • 3
  • Opened 
    on Jul 22
  • #1183

Currently, check-merge-conflicts only runs on text files. However, it would be useful to extend this to LFS files to identify conflicts. Currently, it is a surprise when these conflicts are not checked. ...
  • George-Ogden
  • 1
  • Opened 
    on Jul 16
  • #1181

Hello, it will be nice if end-of-file-fixer could display files which need to be fixed Because precommit raises git commit -m docs: cleanup --tool trim trailing whitespace.................................................Passed ...
  • s-celles
  • 1
  • Opened 
    on Jul 15
  • #1180

Rust inner attributes use #! and when you want to apply them to the entire file, they are added to the first line (by convention). This causes false positives for https://github.com/pre-commit/pre-commit-hooks/blob/582b9c66e0791980685c8b80bb11e6a3df1a06ef/pre_commit_hooks/check_executables_have_shebangs.py#L57-L61. ...
  • hofbi
  • 2
  • Opened 
    on Jul 11
  • #1179

For some reason, in our codebase, git does not convert CRLF to LF before committing in certain files (for me, it s *.sql), so I decided to enable mixed-line-ending. But it also replaces CRLF with LF in ...
  • PerchunPak
  • 1
  • Opened 
    on Jul 8
  • #1178

file-contents-sorter is great, it would be useful to have an additional hook that can sort specific parts of code, particularly arrays but it can apply to anything. Example fruits = [ # pre-commit-sort-lines ...
  • fregante
  • 3
  • Opened 
    on Jul 8
  • #1177

Apparently setuptools complains about deprecated metadata, which means that at some point in the future, the installation might fail due to them: setuptools.warnings.SetuptoolsDeprecationWarning: License ...
  • ssbarnea
  • 1
  • Opened 
    on Jun 18
  • #1172

Can we clarify that https://github.com/pre-commit/pre-commit-hooks/blob/main/README.md#check-added-large-files that the size of --maxkb is kilobytes in the wording? Yes I aware this would be assumed by ...
  • cmlh
  • 1
  • Opened 
    on Jun 15
  • #1170
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Restrict your search to the title by using the in:title qualifier.
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Restrict your search to the title by using the in:title qualifier.
Issue search results · GitHub