René's URL Explorer Experiment


Title: Fix blank lines in file-contents-sorter plugin by RoelAdriaans · Pull Request #944 · pre-commit/pre-commit-hooks · GitHub

Open Graph Title: Fix blank lines in file-contents-sorter plugin by RoelAdriaans · Pull Request #944 · pre-commit/pre-commit-hooks

X Title: Fix blank lines in file-contents-sorter plugin by RoelAdriaans · Pull Request #944 · pre-commit/pre-commit-hooks

Description: Some out-of-the-box hooks for pre-commit. Contribute to pre-commit/pre-commit-hooks development by creating an account on GitHub.

Open Graph Description: As stated in the documentation: Note that this hook WILL remove blank lines. Previously this hook would always add blank a blank line. With this fix, if the file is empty, a newline will not be add...

X Description: As stated in the documentation: Note that this hook WILL remove blank lines. Previously this hook would always add blank a blank line. With this fix, if the file is empty, a newline will not be add...

Opengraph URL: https://github.com/pre-commit/pre-commit-hooks/pull/944

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:59111022-a0a7-1c79-f07a-c549a52d3c10
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9B74:7C5C7:FBF18F:153AF96:6A556C0E
html-safe-nonceb94c4f5a8185b215e8927c476b92290bbdaf0233d823c4044c9baf138defabaa
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Qjc0OjdDNUM3OkZCRjE4RjoxNTNBRjk2OjZBNTU2QzBFIiwidmlzaXRvcl9pZCI6Ijg0NzIyMTY3MTcwOTA5NzQ3MzQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacdf824da8eab9334ee828b232556ff365b716a2632a6cffd6ef1571e01f9abb4e
hovercard-subject-tagpull_request:1463950756
github-keyboard-shortcutsrepository,commits,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/pre-commit/pre-commit-hooks/944/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/c2038373dc0cac76570bd74fa81f51a9f7faff5ac2d7b639ba75f994e27568d0/pre-commit/pre-commit-hooks/pull/944
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/c2038373dc0cac76570bd74fa81f51a9f7faff5ac2d7b639ba75f994e27568d0/pre-commit/pre-commit-hooks/pull/944
og:image:altAs stated in the documentation: Note that this hook WILL remove blank lines. Previously this hook would always add blank a blank line. With this fix, if the file is empty, a newline will not be add...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameRoelAdriaans
hostnamegithub.com
expected-hostnamegithub.com
Noneb5665c84831ed9ac4fb79519c16c9c5580ba8092fb8bb6e3e72972ec7197348e
turbo-cache-controlno-cache
go-importgithub.com/pre-commit/pre-commit-hooks git https://github.com/pre-commit/pre-commit-hooks.git
octolytics-dimension-user_id6943086
octolytics-dimension-user_loginpre-commit
octolytics-dimension-repository_id17714713
octolytics-dimension-repository_nwopre-commit/pre-commit-hooks
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id17714713
octolytics-dimension-repository_network_root_nwopre-commit/pre-commit-hooks
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasea90bd2a4a25feb75544d06b89350dcf95d9c46e0
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/pre-commit/pre-commit-hooks/pull/944#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpre-commit%2Fpre-commit-hooks%2Fpull%2F944
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
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
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
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/enterprise/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%2Fpre-commit%2Fpre-commit-hooks%2Fpull%2F944
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%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=pre-commit%2Fpre-commit-hooks
Reloadhttps://github.com/pre-commit/pre-commit-hooks/pull/944
Reloadhttps://github.com/pre-commit/pre-commit-hooks/pull/944
Reloadhttps://github.com/pre-commit/pre-commit-hooks/pull/944
Please reload this pagehttps://github.com/pre-commit/pre-commit-hooks/pull/944
pre-commit https://github.com/pre-commit
pre-commit-hookshttps://github.com/pre-commit/pre-commit-hooks
Please reload this pagehttps://github.com/pre-commit/pre-commit-hooks/pull/944
Notifications https://github.com/login?return_to=%2Fpre-commit%2Fpre-commit-hooks
Fork 792 https://github.com/login?return_to=%2Fpre-commit%2Fpre-commit-hooks
Star 6.6k https://github.com/login?return_to=%2Fpre-commit%2Fpre-commit-hooks
Code https://github.com/pre-commit/pre-commit-hooks
Issues 6 https://github.com/pre-commit/pre-commit-hooks/issues
Pull requests 1 https://github.com/pre-commit/pre-commit-hooks/pulls
Actions https://github.com/pre-commit/pre-commit-hooks/actions
Security and quality 0 https://github.com/pre-commit/pre-commit-hooks/security
Insights https://github.com/pre-commit/pre-commit-hooks/pulse
Code https://github.com/pre-commit/pre-commit-hooks
Issues https://github.com/pre-commit/pre-commit-hooks/issues
Pull requests https://github.com/pre-commit/pre-commit-hooks/pulls
Actions https://github.com/pre-commit/pre-commit-hooks/actions
Security and quality https://github.com/pre-commit/pre-commit-hooks/security
Insights https://github.com/pre-commit/pre-commit-hooks/pulse
asottilehttps://github.com/asottile
pre-commit:mainhttps://github.com/pre-commit/pre-commit-hooks/tree/main
Conversationhttps://github.com/pre-commit/pre-commit-hooks/pull/944
Commits1 (1)https://github.com/pre-commit/pre-commit-hooks/pull/944/commits
Checkshttps://github.com/pre-commit/pre-commit-hooks/pull/944/checks
Files changedhttps://github.com/pre-commit/pre-commit-hooks/pull/944/files
Fix blank lines in file-contents-sorter pluginhttps://github.com/pre-commit/pre-commit-hooks/pull/944#top
asottilehttps://github.com/asottile
pre-commit:mainhttps://github.com/pre-commit/pre-commit-hooks/tree/main
https://github.com/RoelAdriaans
RoelAdriaanshttps://github.com/RoelAdriaans
Aug 5, 2023https://github.com/pre-commit/pre-commit-hooks/pull/944#issue-1837937109
#935https://github.com/pre-commit/pre-commit-hooks/issues/935
Please reload this pagehttps://github.com/pre-commit/pre-commit-hooks/pull/944
https://github.com/RoelAdriaans
Fix blank lineshttps://github.com/pre-commit/pre-commit-hooks/pull/944/commits/fdbaeb81fa95240c840741cf1192bcdf1cddebf3
fdbaeb8https://github.com/pre-commit/pre-commit-hooks/pull/944/commits/fdbaeb81fa95240c840741cf1192bcdf1cddebf3
#935https://github.com/pre-commit/pre-commit-hooks/issues/935
https://github.com/asottile
asottilehttps://github.com/asottile
Aug 5, 2023 https://github.com/pre-commit/pre-commit-hooks/pull/944#pullrequestreview-1564015404
View reviewed changes https://github.com/pre-commit/pre-commit-hooks/pull/944/files/fdbaeb81fa95240c840741cf1192bcdf1cddebf3
asottilehttps://github.com/asottile
https://github.com/pre-commit/pre-commit-hooks/pull/944#pullrequestreview-1564015404
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
https://camo.githubusercontent.com/0728cb6b74397fd13f8093c1ee760a5f029ef0a7b602a16da09a0abdc998ba33/68747470733a2f2f692e666c756666792e63632f6236776c426264566b5838334348704c5778485a773734574a784856516339532e676966
Please reload this pagehttps://github.com/pre-commit/pre-commit-hooks/pull/944
https://github.com/asottile
asottilehttps://github.com/asottile
61b5f7ehttps://github.com/pre-commit/pre-commit-hooks/commit/61b5f7e6f73c8308fc77c9fcfd10005ab7d14b80
Aug 5, 2023https://github.com/pre-commit/pre-commit-hooks/pull/944#event-10016080093
https://github.com/szepeviktor
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpre-commit%2Fpre-commit-hooks%2Fpull%2F944
https://github.com/pre-commit
pre-commithttps://github.com/pre-commit
Aug 5, 2023https://github.com/pre-commit/pre-commit-hooks/pull/944#event-10016081978
https://github.com/RoelAdriaans
RoelAdriaanshttps://github.com/RoelAdriaans
August 5, 2023 21:04https://github.com/pre-commit/pre-commit-hooks/pull/944#event-10016082260
https://github.co/hiddenchars
https://github.com/pre-commit/pre-commit-hooks/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpre-commit%2Fpre-commit-hooks%2Fpull%2F944
https://github.com/asottile
asottile https://github.com/asottile
https://github.com/pre-commit/pre-commit-hooks/pull/944/files/fdbaeb81fa95240c840741cf1192bcdf1cddebf3
file-contents-sorter adds an extra blank line if the file to be sorted is empty https://github.com/pre-commit/pre-commit-hooks/issues/935
Please reload this pagehttps://github.com/pre-commit/pre-commit-hooks/pull/944
https://github.com/RoelAdriaans
https://github.com/szepeviktor
https://github.com/asottile
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.