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 }}
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
util.py
on
main
User selector
All users
All time
Commit history
Commits on Oct 9, 2025
py310+
Show description for f415f6c
asottile
committed
f415f6c
View commit details
Copy full SHA for f415f6c
View code at this point
Browse repository at this point
Commits on Jul 29, 2024
[pre-commit.ci] auto fixes from pre-commit.com hooks
Show description for 917e210
pre-commit-ci[bot]
committed
917e210
View commit details
Copy full SHA for 917e210
View code at this point
Browse repository at this point
Commits on Jul 28, 2024
fixes for mypy 1.11
asottile
committed
a68a19d
View commit details
Copy full SHA for a68a19d
View code at this point
Browse repository at this point
Commits on Apr 30, 2024
adjust _handle_readonly for typeshed updates
asottile
committed
0d4c6da
View commit details
Copy full SHA for 0d4c6da
View code at this point
Browse repository at this point
Commits on Dec 9, 2023
Address deprecation warning in `shutil.rmtree(onerror=...)`
edgarrmondragon
authored and
asottile
committed
cffabe5
View commit details
Copy full SHA for cffabe5
View code at this point
Browse repository at this point
Commits on Oct 28, 2023
3.13 removed the simpler importlib.resources api
asottile
committed
75f2710
View commit details
Copy full SHA for 75f2710
View code at this point
Browse repository at this point
python3.9+
asottile
committed
7f15dc7
View commit details
Copy full SHA for 7f15dc7
View code at this point
Browse repository at this point
Commits on Mar 4, 2023
prefer `sys.platform` over `os.name` when checking for windows OS
m-rsha
committed
5ce4a54
View commit details
Copy full SHA for 5ce4a54
View code at this point
Browse repository at this point
Commits on Feb 21, 2023
fix trailing whitespace in CalledProcessError output
asottile
committed
4ded56e
View commit details
Copy full SHA for 4ded56e
View code at this point
Browse repository at this point
resources_bytesio is only used by ruby
asottile
committed
8d84a7a
View commit details
Copy full SHA for 8d84a7a
View code at this point
Browse repository at this point
Commits on Jan 6, 2023
Fix command normalization when a custom env is passed
taoufik07
authored and
asottile
committed
bf1a1fa
View commit details
Copy full SHA for bf1a1fa
View code at this point
Browse repository at this point
Commits on Jan 2, 2023
add pre_commit.yaml module
asottile
committed
8529a0c
View commit details
Copy full SHA for 8529a0c
View code at this point
Browse repository at this point
Commits on Jan 1, 2023
Merge pull request #2665 from pre-commit/move-parse-version
Show description for 017fa5c
asottile
authored
017fa5c
View commit details
Copy full SHA for 017fa5c
View code at this point
Browse repository at this point
move parse_version to pre_commit.clientlib
asottile
committed
5425c75
View commit details
Copy full SHA for 5425c75
View code at this point
Browse repository at this point
special rmtree is not needed for TemporaryDirectory in 3.8+
asottile
committed
0a0754e
View commit details
Copy full SHA for 0a0754e
View code at this point
Browse repository at this point
Commits on Oct 30, 2022
Remove `expected_returncode` from `CalledProcessError`
m-rsha
committed
42102a1
View commit details
Copy full SHA for 42102a1
View code at this point
Browse repository at this point
Change `cmd_output_b`s `retcode` arg to a boolean `check`
marsha
committed
84b38f7
View commit details
Copy full SHA for 84b38f7
View code at this point
Browse repository at this point
Commits on May 14, 2022
Switch pty use to fix solaris
Show description for a84136d
gaige
committed
a84136d
View commit details
Copy full SHA for a84136d
View code at this point
Browse repository at this point
Commits on Jan 18, 2022
drop python 3.6 support
Show description for 04de6a2
asottile
committed
04de6a2
View commit details
Copy full SHA for 04de6a2
View code at this point
Browse repository at this point
Commits on Nov 30, 2021
improve coverage pragmas with covdefaults 2.1
Show description for 270b539
asottile
committed
270b539
View commit details
Copy full SHA for 270b539
View code at this point
Browse repository at this point
Commits on Aug 29, 2021
add support for dart as a hook language
asottile
committed
f8e21cb
View commit details
Copy full SHA for f8e21cb
View code at this point
Browse repository at this point
Commits on Dec 6, 2020
util: use set instead of tuple in errno check
Show description for c598785
fsouza
and
paulhfischer
authored
c598785
View commit details
Copy full SHA for c598785
View code at this point
Browse repository at this point
util: also run chmod on EPERM
Show description for bb0d957
fsouza
committed
bb0d957
View commit details
Copy full SHA for bb0d957
View code at this point
Browse repository at this point
Commits on Oct 28, 2020
Replace EnvironT with MutableMapping[str, str]
asottile
committed
24dfeed
View commit details
Copy full SHA for 24dfeed
View code at this point
Browse repository at this point
Commits on May 5, 2020
Maintain scalar quoting style when autoupdate re-writes rev
Show description for 98d8a3d
mjay-taskize
authored and
asottile
committed
98d8a3d
View commit details
Copy full SHA for 98d8a3d
View code at this point
Browse repository at this point
Commits on Mar 12, 2020
Don't crash out on OSErrors in subprocess calls
asottile
committed
03617b2
View commit details
Copy full SHA for 03617b2
View code at this point
Browse repository at this point
Commits on Feb 29, 2020
Use covdefaults to handle coveragerc
asottile
committed
67c1beb
View commit details
Copy full SHA for 67c1beb
View code at this point
Browse repository at this point
Commits on Feb 1, 2020
Replace aspy.yaml with sort_keys=False
asottile
committed
a64fa6d
View commit details
Copy full SHA for a64fa6d
View code at this point
Browse repository at this point
Commits on Jan 12, 2020
keyword only arguments in some places
asottile
committed
5779f93
View commit details
Copy full SHA for 5779f93
View code at this point
Browse repository at this point
unrelated cleanup
asottile
committed
34c3a15
View commit details
Copy full SHA for 34c3a15
View code at this point
Browse repository at this point
Remove noop_context
asottile
committed
49cf490
View commit details
Copy full SHA for 49cf490
View code at this point
Browse repository at this point
mkdirp -> os.makedirs(..., exist_ok=True)
asottile
committed
2a9893d
View commit details
Copy full SHA for 2a9893d
View code at this point
Browse repository at this point
Remove pre_commit.five
asottile
committed
67c2dcd
View commit details
Copy full SHA for 67c2dcd
View code at this point
Browse repository at this point
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
Previous
Next
You can’t perform that action at this time.