Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
pythonhubdev
/
pre-commit
Public
forked from
pre-commit/pre-commit
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Commits
Breadcrumbs
History for
pre-commit
pre_commit
resources
hook-tmpl
on
main
User selector
All users
Datepicker
All time
Commit history
Commits on Oct 30, 2021
fix indent in hook-tmpl
asottile
committed
087541c
View commit details
Copy full SHA for 087541c
View code at this point
Browse repository at this point
Commits on Oct 29, 2021
silence the output of `command -v`
asottile
committed
0b87867
View commit details
Copy full SHA for 0b87867
View code at this point
Browse repository at this point
Commits on Sep 27, 2021
port hook template to bash
Show description for e622f79
asottile
committed
e622f79
View commit details
Copy full SHA for e622f79
View code at this point
Browse repository at this point
Commits on Jan 22, 2020
Move most of the actual hook script into `pre-commit hook-impl`
asottile
committed
95b8d71
View commit details
Copy full SHA for 95b8d71
View code at this point
Browse repository at this point
Commits on Jan 16, 2020
Move test to install_uninstall test so environment variables apply
asottile
committed
0bb8a8f
View commit details
Copy full SHA for 0bb8a8f
View code at this point
Browse repository at this point
Push remote env var details
David Martinez Barreiro
authored and
asottile
committed
57cc814
View commit details
Copy full SHA for 57cc814
View code at this point
Browse repository at this point
Commits on Jan 12, 2020
Some manual .format() -> f-strings
asottile
committed
9000e9d
View commit details
Copy full SHA for 9000e9d
View code at this point
Browse repository at this point
Clean up calls to .encode() / .decode()
asottile
committed
aefbe71
View commit details
Copy full SHA for aefbe71
View code at this point
Browse repository at this point
Add types to pre-commit
asottile
committed
327ed92
View commit details
Copy full SHA for 327ed92
View code at this point
Browse repository at this point
mypy passes with check_untyped_defs
asottile
committed
fa536a8
View commit details
Copy full SHA for fa536a8
View code at this point
Browse repository at this point
upgrade hooks, pyupgrade pre-commit
asottile
committed
30c1e82
View commit details
Copy full SHA for 30c1e82
View code at this point
Browse repository at this point
Commits on Dec 27, 2019
support pre-merge-commit
asottile
committed
c699e25
View commit details
Copy full SHA for c699e25
View code at this point
Browse repository at this point
Commits on May 13, 2019
Fix handling of SIGINT in hook script
asottile
committed
fb15fa6
View commit details
Copy full SHA for fb15fa6
View code at this point
Browse repository at this point
Commits on Apr 21, 2019
Adds support for prepare-commit-msg hooks
Show description for e60f541
mjay-taskize
committed
e60f541
View commit details
Copy full SHA for e60f541
View code at this point
Browse repository at this point
Commits on Mar 30, 2019
Merge pull request #981 from tristan0x/fix/infinite-process-recursion
Show description for 03ac3b0
asottile
authored
03ac3b0
View commit details
Copy full SHA for 03ac3b0
View code at this point
Browse repository at this point
Produce slightly more helpful message
asottile
committed
bbc3130
View commit details
Copy full SHA for bbc3130
View code at this point
Browse repository at this point
Specify env python explicitly.
tim77
committed
9f0cfed
View commit details
Copy full SHA for 9f0cfed
View code at this point
Browse repository at this point
Commits on Mar 29, 2019
assert that the pre-commit script being executed is not the legacy
Tristan Carel
committed
ec72cb7
View commit details
Copy full SHA for ec72cb7
View code at this point
Browse repository at this point
Commits on Mar 27, 2019
Do not run legacy script again when this is the one being executed
Tristan Carel
committed
cd61269
View commit details
Copy full SHA for cd61269
View code at this point
Browse repository at this point
Commits on Oct 11, 2018
fix pushing to new branch not identifying all commits
asottile
committed
3181b46
View commit details
Copy full SHA for 3181b46
View code at this point
Browse repository at this point
Commits on Jul 24, 2018
Work around sys.executable issue using brew python on macos
Show description for 7e69d11
asottile
committed
7e69d11
View commit details
Copy full SHA for 7e69d11
View code at this point
Browse repository at this point
Commits on Jul 2, 2018
Fix force-push without fetch
asottile
committed
c294be5
View commit details
Copy full SHA for c294be5
View code at this point
Browse repository at this point
Commits on Feb 4, 2018
Rewrite the hook template in python
asottile
committed
5c90c1a
View commit details
Copy full SHA for 5c90c1a
View code at this point
Browse repository at this point
Commits on Jan 30, 2018
Fix legacy commit-msg hooks
asottile
committed
49dc689
View commit details
Copy full SHA for 49dc689
View code at this point
Browse repository at this point
Commits on Sep 21, 2017
Use some bash best practices and simplify hook template
asottile
committed
916ca72
View commit details
Copy full SHA for 916ca72
View code at this point
Browse repository at this point
Use pipes.quote for executable path
asottile
committed
873dd17
View commit details
Copy full SHA for 873dd17
View code at this point
Browse repository at this point
Commits on Sep 5, 2017
Merge pull request #606 from pre-commit/minor-hook-tmpl-fixups
Show description for bfa23f1
asottile
authored
bfa23f1
View commit details
Copy full SHA for bfa23f1
View code at this point
Browse repository at this point
Fix error message during pre-push / commit-msg
asottile
committed
7c59607
View commit details
Copy full SHA for 7c59607
View code at this point
Browse repository at this point
Also add run to the other invocations
asottile
committed
95f356d
View commit details
Copy full SHA for 95f356d
View code at this point
Browse repository at this point
Add test for custom config installation
asottile
committed
eb7c9f4
View commit details
Copy full SHA for eb7c9f4
View code at this point
Browse repository at this point
Fix specify config file not work while installing
Show description for f9a849a
coldnight
committed
f9a849a
View commit details
Copy full SHA for f9a849a
View code at this point
Browse repository at this point
Commits on Jul 24, 2017
Add support for commit-msg git hook
asottile
committed
d0b268c
View commit details
Copy full SHA for d0b268c
View code at this point
Browse repository at this point
Commits on Feb 23, 2017
Minor fixups
asottile
committed
dbd131f
View commit details
Copy full SHA for dbd131f
View code at this point
Browse repository at this point
Add `--allow-missing-config` option to install
Show description for 2f41998
philipgian
committed
2f41998
View commit details
Copy full SHA for 2f41998
View code at this point
Browse repository at this point
Commits on Feb 15, 2017
hook-tmpl doesn't need executable bit, we set it
asottile
committed
36cfeac
View commit details
Copy full SHA for 36cfeac
View code at this point
Browse repository at this point
Previous
Next
You can’t perform that action at this time.