René's URL Explorer Experiment


Title: Update and adjust pre-commit hooks by EliahKagan · Pull Request #1953 · gitpython-developers/GitPython · GitHub

Open Graph Title: Update and adjust pre-commit hooks by EliahKagan · Pull Request #1953 · gitpython-developers/GitPython

X Title: Update and adjust pre-commit hooks by EliahKagan · Pull Request #1953 · gitpython-developers/GitPython

Description: This updates pre-commit hooks to their latest stable versions and adjusts exclusions and tool configuration to avoid false positives, as well as adding one more hook one of whose benefits is to catch problems from false positives of an existing hook. Bumping versions Ruff 0.6 has come out, with some improvements, so we may as well use it. Updating the hook for it achieves that, and while doing so, I think makes sense to update the others. Over time, hooks that are not updated will become more out of date, so that the number of breakages that have to be solved when a bug or feature consideration requires an update is greater. No changes were needed to accommodate Ruff 0.6. But more false positives occur with the newer version of codespell. This addresses them by adding some more explicitly ignored words in its pyproject.toml configuration. Avoiding symlink path corruption Separate from any changes introduced by those updates, there is a problem with the way the end-of-file-fixer operates. As covered in more detail in commit messages, on Windows, symlinks are often checked out as regular files. But these files should not have newlines appended to the end of them, because when such a change is committed, it is adding a newline to the end of the path the repository stores for the symlink. Then, when the symlink is actually checked out, it is broken. This excludes files named like licenses from being scanned and "fixed" by end-of-file-fixer, since that is both the current situation where the problem happens and the most likely way it would arise in the future without being detected through use of the repository. It also adds a pre-commit hook (not used in this repository before) to check all symlinks. This will never find that error in a local repository where it arises, because it only checks actual symlinks, but it will find it on CI after it arises if it ever does again. There may also be a further benefit to it, since dangling symlinks could be accidentally introduced in the future for other reasons.

Open Graph Description: This updates pre-commit hooks to their latest stable versions and adjusts exclusions and tool configuration to avoid false positives, as well as adding one more hook one of whose benefits is to cat...

X Description: This updates pre-commit hooks to their latest stable versions and adjusts exclusions and tool configuration to avoid false positives, as well as adding one more hook one of whose benefits is to cat...

Opengraph URL: https://github.com/gitpython-developers/GitPython/pull/1953

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:22eac4b4-693e-d16d-d96a-911f5c04ec94
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idED8A:1D70BE:9CFA44:D1A2EE:69699076
html-safe-nonce4b7720522fa0132c1d96337ec187bd9606650007cbd81998d813aa2cfe8c444f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFRDhBOjFENzBCRTo5Q0ZBNDQ6RDFBMkVFOjY5Njk5MDc2IiwidmlzaXRvcl9pZCI6IjgzMzE2NDkyOTIyNDUyNDE5NzQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac8d5518a9d4f44a9b197f705e6ce25a4fae6d43e0db4e32ccee4b011f4e41d9fc
hovercard-subject-tagpull_request:2022041271
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/gitpython-developers/GitPython/pull/1953/files
twitter:imagehttps://avatars.githubusercontent.com/u/1771172?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/1771172?s=400&v=4
og:image:altThis updates pre-commit hooks to their latest stable versions and adjusts exclusions and tool configuration to avoid false positives, as well as adding one more hook one of whose benefits is to cat...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None3542e147982176a7ebaa23dfb559c8af16f721c03ec560c68c56b64a0f35e751
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/gitpython-developers/GitPython git https://github.com/gitpython-developers/GitPython.git
octolytics-dimension-user_id503709
octolytics-dimension-user_logingitpython-developers
octolytics-dimension-repository_id1126087
octolytics-dimension-repository_nwogitpython-developers/GitPython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1126087
octolytics-dimension-repository_network_root_nwogitpython-developers/GitPython
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseaf80af7cc9e3de9c336f18b208a600950a3c187c
ui-targetcanary-2
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/gitpython-developers/GitPython/pull/1953/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgitpython-developers%2FGitPython%2Fpull%2F1953%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgitpython-developers%2FGitPython%2Fpull%2F1953%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=gitpython-developers%2FGitPython
Reloadhttps://github.com/gitpython-developers/GitPython/pull/1953/files
Reloadhttps://github.com/gitpython-developers/GitPython/pull/1953/files
Reloadhttps://github.com/gitpython-developers/GitPython/pull/1953/files
gitpython-developers https://github.com/gitpython-developers
GitPythonhttps://github.com/gitpython-developers/GitPython
Please reload this pagehttps://github.com/gitpython-developers/GitPython/pull/1953/files
Notifications https://github.com/login?return_to=%2Fgitpython-developers%2FGitPython
Fork 964 https://github.com/login?return_to=%2Fgitpython-developers%2FGitPython
Star 5k https://github.com/login?return_to=%2Fgitpython-developers%2FGitPython
Code https://github.com/gitpython-developers/GitPython
Issues 169 https://github.com/gitpython-developers/GitPython/issues
Pull requests 8 https://github.com/gitpython-developers/GitPython/pulls
Discussions https://github.com/gitpython-developers/GitPython/discussions
Actions https://github.com/gitpython-developers/GitPython/actions
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/gitpython-developers/GitPython/security
Please reload this pagehttps://github.com/gitpython-developers/GitPython/pull/1953/files
Insights https://github.com/gitpython-developers/GitPython/pulse
Code https://github.com/gitpython-developers/GitPython
Issues https://github.com/gitpython-developers/GitPython/issues
Pull requests https://github.com/gitpython-developers/GitPython/pulls
Discussions https://github.com/gitpython-developers/GitPython/discussions
Actions https://github.com/gitpython-developers/GitPython/actions
Security https://github.com/gitpython-developers/GitPython/security
Insights https://github.com/gitpython-developers/GitPython/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fgitpython-developers%2FGitPython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fgitpython-developers%2FGitPython%2Fissues%2Fnew%2Fchoose
Byronhttps://github.com/Byron
gitpython-developers:mainhttps://github.com/gitpython-developers/GitPython/tree/main
EliahKagan:pre-commithttps://github.com/EliahKagan/GitPython/tree/pre-commit
Conversation 5 https://github.com/gitpython-developers/GitPython/pull/1953
Commits 10 https://github.com/gitpython-developers/GitPython/pull/1953/commits
Checks 0 https://github.com/gitpython-developers/GitPython/pull/1953/checks
Files changed 2 https://github.com/gitpython-developers/GitPython/pull/1953/files
Update and adjust pre-commit hooks https://github.com/gitpython-developers/GitPython/pull/1953/files#top
Show all changes 10 commits https://github.com/gitpython-developers/GitPython/pull/1953/files
d1582d1 Update versions of pre-commit hooks EliahKagan Aug 15, 2024 https://github.com/gitpython-developers/GitPython/pull/1953/commits/d1582d181bfeb5138d9cae306b40dfa2fe87fe39
016fa44 Have codespell ignore words that cause new false positives EliahKagan Aug 15, 2024 https://github.com/gitpython-developers/GitPython/pull/1953/commits/016fa44a64ac244de2335b00338af67e3f8585ee
c82bb65 Fix a spelling error that codespell didn't catch EliahKagan Aug 15, 2024 https://github.com/gitpython-developers/GitPython/pull/1953/commits/c82bb65fd263603b374b925f61483efc47c2a264
9556f63 Drop suggestion to auto-fix spelling (many false positives) EliahKagan Aug 15, 2024 https://github.com/gitpython-developers/GitPython/pull/1953/commits/9556f63a965877db19002849d7bfeec71e84a2c7
7a138ee Fix small inconsistencies in test/fixtures/ exclusions EliahKagan Aug 15, 2024 https://github.com/gitpython-developers/GitPython/pull/1953/commits/7a138eea78fd922b21f6049d273aaeca5f02bfb0
53ec790 Fix inconsistent indentation EliahKagan Aug 15, 2024 https://github.com/gitpython-developers/GitPython/pull/1953/commits/53ec790e0dbc1ec9e4451394edb5c572c807b817
bdfa280 Temporarily let end-of-file-fixer break LICENSE-BSD symlink EliahKagan Aug 15, 2024 https://github.com/gitpython-developers/GitPython/pull/1953/commits/bdfa280f6dd412464419dd133ad02781cd27a312
965ea8b Enable check-symlinks pre-commit hook EliahKagan Aug 16, 2024 https://github.com/gitpython-developers/GitPython/pull/1953/commits/965ea8bebcd768f6cadbc6cae6b7fe65868f1fb6
e978248 Revert "Temporarily let end-of-file-fixer break LICENSE-BSD symlink" EliahKagan Aug 16, 2024 https://github.com/gitpython-developers/GitPython/pull/1953/commits/e9782487b8119147aa0c456c708f61ca7e3139e1
cae0d87 Don't fix end-of-file in files named like licenses EliahKagan Aug 16, 2024 https://github.com/gitpython-developers/GitPython/pull/1953/commits/cae0d8743a31fb0eda3c224a45c14de8cabd0d90
Clear filters https://github.com/gitpython-developers/GitPython/pull/1953/files
Please reload this pagehttps://github.com/gitpython-developers/GitPython/pull/1953/files
Please reload this pagehttps://github.com/gitpython-developers/GitPython/pull/1953/files
.pre-commit-config.yaml https://github.com/gitpython-developers/GitPython/pull/1953/files#diff-63a9c44a44acf85fea213a857769990937107cf072831e1a26808cfde9d096b9
pyproject.toml https://github.com/gitpython-developers/GitPython/pull/1953/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
.pre-commit-config.yamlhttps://github.com/gitpython-developers/GitPython/pull/1953/files#diff-63a9c44a44acf85fea213a857769990937107cf072831e1a26808cfde9d096b9
View file https://github.com/EliahKagan/GitPython/blob/cae0d8743a31fb0eda3c224a45c14de8cabd0d90/.pre-commit-config.yaml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/gitpython-developers/GitPython/pull/1953/{{ revealButtonHref }}
https://github.com/gitpython-developers/GitPython/pull/1953/files#diff-63a9c44a44acf85fea213a857769990937107cf072831e1a26808cfde9d096b9
pyproject.tomlhttps://github.com/gitpython-developers/GitPython/pull/1953/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
View file https://github.com/EliahKagan/GitPython/blob/cae0d8743a31fb0eda3c224a45c14de8cabd0d90/pyproject.toml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/gitpython-developers/GitPython/pull/1953/{{ revealButtonHref }}
https://github.com/gitpython-developers/GitPython/pull/1953/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.