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
Accelerator
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 }}
Uh oh!
There was an error while loading.
Please reload this page
.
precommit
/
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
on
master
User selector
All users
Datepicker
All time
Commit history
Commits on May 2, 2020
Add dummy go.mod for local "empty" installs
scop
committed
e2ed732
View commit details
Copy full SHA for e2ed732
View code at this point
Browse repository at this point
Commits on Feb 1, 2020
Add perl additional dependencies test
scop
committed
04471f7
View commit details
Copy full SHA for 04471f7
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 Dec 21, 2019
Support for conda as a language
xhochy
authored and
asottile
committed
4ff23b4
View commit details
Copy full SHA for 4ff23b4
View code at this point
Browse repository at this point
Commits on Oct 28, 2019
Added new versions of rbenv and ruby-build
John Cooper
committed
1bd745e
View commit details
Copy full SHA for 1bd745e
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 14, 2018
Replace resources with importlib_resources
asottile
committed
9f60561
View commit details
Copy full SHA for 9f60561
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 May 25, 2018
Make local hooks work
chriskuehl
committed
5ac2ba0
View commit details
Copy full SHA for 5ac2ba0
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 Jan 24, 2018
Properly detect if commit is a root commit
Show description for 1bfd108
samskiter
authored
1bfd108
View commit details
Copy full SHA for 1bfd108
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
Previous
Next
You can’t perform that action at this time.