Some out-of-the-box hooks for pre-commit. Using pre-commit-hooks with pre-commit. Instead of loading the files, simply parse them for syntax. A syntax-only check enables extensions and unsafe constructs which would otherwise be forbidden. Using this option removes all guarantees of portability to other yaml implementations. Detect symlinks which are changed to regular files with a content of a path that that symlink was pointing to. This usually happens on Windows when a user clones a repository that has symlinks but they do not have permission to create symlinks. Limits checked files to those indicated as staged for addition by git. Check all listed files not just those staged for addition.

Features

  • Prevent giant files from being committed
  • Simply check whether files parse as valid python
  • Check for files with names that would conflict on a case-insensitive filesystem like MacOS HFS+ or Windows FAT
  • Checks for a common error of placing code before the docstring
  • Attempts to load all json files to verify syntax
  • Check for files that contain merge conflict strings

Project Samples

Project Activity

See All Activity >

Categories

Git

License

MIT License

Follow pre-commit-hooks

pre-commit-hooks Web Site

Other Useful Business Software
Vibes don’t ship, Retool does Icon
Vibes don’t ship, Retool does

Start from a prompt and build production-ready apps on your data—with security, permissions, and compliance built in.

Vibe coding tools create cool demos, but Retool helps you build software your company can actually use. Generate internal apps that connect directly to your data—deployed in your cloud with enterprise security from day one. Build dashboards, admin panels, and workflows with granular permissions already in place. Stop prototyping and ship on a platform that actually passes security review.
Build apps that ship
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of pre-commit-hooks!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

Python

Related Categories

Python Git Software

Registered

2022-12-15