Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects, and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
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 }}
pre-commit
pre-commit
Repository navigation
Code
Issues
17
(17)
Pull requests
8
(8)
Actions
Security and quality
Insights
More
items
Commits
Breadcrumbs
History for
pre-commit
pre_commit
util.py
on
v4.7.0
User selector
All users
Datepicker
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.