René's URL Explorer Experiment


Title: Fix command normalization when a custom env is passed by taoufik07 · Pull Request #2677 · pre-commit/pre-commit · GitHub

Open Graph Title: Fix command normalization when a custom env is passed by taoufik07 · Pull Request #2677 · pre-commit/pre-commit

X Title: Fix command normalization when a custom env is passed by taoufik07 · Pull Request #2677 · pre-commit/pre-commit

Description: Custom envs can't be passed to normalize_cmd which causes find_executable to default to os.environ -- works as expected when injecting directly os.environ.

Open Graph Description: Custom envs can't be passed to normalize_cmd which causes find_executable to default to os.environ -- works as expected when injecting directly os.environ.

X Description: Custom envs can't be passed to normalize_cmd which causes find_executable to default to os.environ -- works as expected when injecting directly os.environ.

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:cba59af5-be64-f699-0dcf-56c0e385dc9c
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8C80:31785:11C382D:19B0014:6A58B8E0
html-safe-nonceb8b332c6cfd6068bdaa357e144c8d495dd45f5bd3a887e1cfe2b4f64bd46a0fb
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QzgwOjMxNzg1OjExQzM4MkQ6MTlCMDAxNDo2QTU4QjhFMCIsInZpc2l0b3JfaWQiOiI2Njg2NTI1MjAxMjUyMzk5MzI4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacd179fafebb67af8198c5fcb59ce590db31ab0bb894ddfcfd58afb9c6874d0d6f
hovercard-subject-tagpull_request:1186471206
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///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/pre-commit/pre-commit/pull/2677/files
twitter:imagehttps://avatars.githubusercontent.com/u/22898667?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/22898667?s=400&v=4
og:image:altCustom envs can't be passed to normalize_cmd which causes find_executable to default to os.environ -- works as expected when injecting directly os.environ.
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None5f2a0c7865178af3d91dd9f13b0cdfc3c73a2529c873d2780bb4c01271a57ec6
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/pre-commit/pre-commit git https://github.com/pre-commit/pre-commit.git
octolytics-dimension-user_id6943086
octolytics-dimension-user_loginpre-commit
octolytics-dimension-repository_id17689377
octolytics-dimension-repository_nwopre-commit/pre-commit
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id17689377
octolytics-dimension-repository_network_root_nwopre-commit/pre-commit
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
release8aae7b8d6caacacf5c66eaeb2702d8dc88d85b4a
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/pre-commit/pre-commit/pull/2677/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpre-commit%2Fpre-commit%2Fpull%2F2677%2Ffiles
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%2Fpull%2F2677%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=pre-commit%2Fpre-commit
Reloadhttps://github.com/pre-commit/pre-commit/pull/2677/files
Reloadhttps://github.com/pre-commit/pre-commit/pull/2677/files
Reloadhttps://github.com/pre-commit/pre-commit/pull/2677/files
Please reload this pagehttps://github.com/pre-commit/pre-commit/pull/2677/files
pre-commit https://github.com/pre-commit
pre-commithttps://github.com/pre-commit/pre-commit
Please reload this pagehttps://github.com/pre-commit/pre-commit/pull/2677/files
Notifications https://github.com/login?return_to=%2Fpre-commit%2Fpre-commit
Fork 986 https://github.com/login?return_to=%2Fpre-commit%2Fpre-commit
Star 15.4k https://github.com/login?return_to=%2Fpre-commit%2Fpre-commit
Code https://github.com/pre-commit/pre-commit
Issues 21 https://github.com/pre-commit/pre-commit/issues
Pull requests 10 https://github.com/pre-commit/pre-commit/pulls
Actions https://github.com/pre-commit/pre-commit/actions
Security and quality 0 https://github.com/pre-commit/pre-commit/security
Insights https://github.com/pre-commit/pre-commit/pulse
Code https://github.com/pre-commit/pre-commit
Issues https://github.com/pre-commit/pre-commit/issues
Pull requests https://github.com/pre-commit/pre-commit/pulls
Actions https://github.com/pre-commit/pre-commit/actions
Security and quality https://github.com/pre-commit/pre-commit/security
Insights https://github.com/pre-commit/pre-commit/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpre-commit%2Fpre-commit%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpre-commit%2Fpre-commit%2Fissues%2Fnew%2Fchoose
asottilehttps://github.com/asottile
pre-commit:mainhttps://github.com/pre-commit/pre-commit/tree/main
taoufik07:fix_cmd_norm_envhttps://github.com/taoufik07/pre-commit/tree/fix_cmd_norm_env
Conversation 5 https://github.com/pre-commit/pre-commit/pull/2677
Commits 1 https://github.com/pre-commit/pre-commit/pull/2677/commits
Checks 0 https://github.com/pre-commit/pre-commit/pull/2677/checks
Files changed https://github.com/pre-commit/pre-commit/pull/2677/files
Please reload this pagehttps://github.com/pre-commit/pre-commit/pull/2677/files
Fix command normalization when a custom env is passed https://github.com/pre-commit/pre-commit/pull/2677/files#top
Show all changes 1 commit https://github.com/pre-commit/pre-commit/pull/2677/files
bf1a1fa Fix command normalization when a custom env is passed taoufik07 Jan 5, 2023 https://github.com/pre-commit/pre-commit/pull/2677/commits/bf1a1fa5fd6de3633b033847964b51a60ffbd0d5
Clear filters https://github.com/pre-commit/pre-commit/pull/2677/files
Please reload this pagehttps://github.com/pre-commit/pre-commit/pull/2677/files
Please reload this pagehttps://github.com/pre-commit/pre-commit/pull/2677/files
parse_shebang.py https://github.com/pre-commit/pre-commit/pull/2677/files#diff-6536c1c27810ee3cfac0b2ffdd3b7bf4aeed2f96b92ce0098b876bab4f8bdc9e
util.py https://github.com/pre-commit/pre-commit/pull/2677/files#diff-d48e69578a2191ec6bfcd73cc3a1e83eba58ae132633c5924b5ff84d9a1cee19
install_uninstall_test.py https://github.com/pre-commit/pre-commit/pull/2677/files#diff-810931f96e5f27eb8a12b893d5a58553e6d6aa5bffa120102ac338e0efca9f5f
rust_test.py https://github.com/pre-commit/pre-commit/pull/2677/files#diff-2fa21c9368e2adc355f89a0a28d5a7b3fdd6dabf0f83c60ec2a1f798089844c9
parse_shebang_test.py https://github.com/pre-commit/pre-commit/pull/2677/files#diff-9d64e3da6b7925fe79ebe72f3b0608dc0f0030832213f99e3cb002e4824b5e7d
pre_commit/parse_shebang.pyhttps://github.com/pre-commit/pre-commit/pull/2677/files#diff-6536c1c27810ee3cfac0b2ffdd3b7bf4aeed2f96b92ce0098b876bab4f8bdc9e
View file https://github.com/taoufik07/pre-commit/blob/bf1a1fa5fd6de3633b033847964b51a60ffbd0d5/pre_commit/parse_shebang.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/pre-commit/pre-commit/pull/2677/{{ revealButtonHref }}
https://github.com/pre-commit/pre-commit/pull/2677/files#diff-6536c1c27810ee3cfac0b2ffdd3b7bf4aeed2f96b92ce0098b876bab4f8bdc9e
https://github.com/pre-commit/pre-commit/pull/2677/files#diff-6536c1c27810ee3cfac0b2ffdd3b7bf4aeed2f96b92ce0098b876bab4f8bdc9e
https://github.com/pre-commit/pre-commit/pull/2677/files#diff-6536c1c27810ee3cfac0b2ffdd3b7bf4aeed2f96b92ce0098b876bab4f8bdc9e
pre_commit/util.pyhttps://github.com/pre-commit/pre-commit/pull/2677/files#diff-d48e69578a2191ec6bfcd73cc3a1e83eba58ae132633c5924b5ff84d9a1cee19
View file https://github.com/taoufik07/pre-commit/blob/bf1a1fa5fd6de3633b033847964b51a60ffbd0d5/pre_commit/util.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/pre-commit/pre-commit/pull/2677/{{ revealButtonHref }}
https://github.com/pre-commit/pre-commit/pull/2677/files#diff-d48e69578a2191ec6bfcd73cc3a1e83eba58ae132633c5924b5ff84d9a1cee19
https://github.com/pre-commit/pre-commit/pull/2677/files#diff-d48e69578a2191ec6bfcd73cc3a1e83eba58ae132633c5924b5ff84d9a1cee19
tests/commands/install_uninstall_test.pyhttps://github.com/pre-commit/pre-commit/pull/2677/files#diff-810931f96e5f27eb8a12b893d5a58553e6d6aa5bffa120102ac338e0efca9f5f
View file https://github.com/taoufik07/pre-commit/blob/bf1a1fa5fd6de3633b033847964b51a60ffbd0d5/tests/commands/install_uninstall_test.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/pre-commit/pre-commit/pull/2677/{{ revealButtonHref }}
https://github.com/pre-commit/pre-commit/pull/2677/files#diff-810931f96e5f27eb8a12b893d5a58553e6d6aa5bffa120102ac338e0efca9f5f
https://github.com/pre-commit/pre-commit/pull/2677/files#diff-810931f96e5f27eb8a12b893d5a58553e6d6aa5bffa120102ac338e0efca9f5f
https://github.com/pre-commit/pre-commit/pull/2677/files#diff-810931f96e5f27eb8a12b893d5a58553e6d6aa5bffa120102ac338e0efca9f5f
https://github.com/pre-commit/pre-commit/pull/2677/files#diff-810931f96e5f27eb8a12b893d5a58553e6d6aa5bffa120102ac338e0efca9f5f
tests/languages/rust_test.pyhttps://github.com/pre-commit/pre-commit/pull/2677/files#diff-2fa21c9368e2adc355f89a0a28d5a7b3fdd6dabf0f83c60ec2a1f798089844c9
View file https://github.com/taoufik07/pre-commit/blob/bf1a1fa5fd6de3633b033847964b51a60ffbd0d5/tests/languages/rust_test.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/pre-commit/pre-commit/pull/2677/{{ revealButtonHref }}
https://github.com/pre-commit/pre-commit/pull/2677/files#diff-2fa21c9368e2adc355f89a0a28d5a7b3fdd6dabf0f83c60ec2a1f798089844c9
https://github.com/pre-commit/pre-commit/pull/2677/files#diff-2fa21c9368e2adc355f89a0a28d5a7b3fdd6dabf0f83c60ec2a1f798089844c9
https://github.com/pre-commit/pre-commit/pull/2677/files#diff-2fa21c9368e2adc355f89a0a28d5a7b3fdd6dabf0f83c60ec2a1f798089844c9
https://github.com/pre-commit/pre-commit/pull/2677/files#diff-2fa21c9368e2adc355f89a0a28d5a7b3fdd6dabf0f83c60ec2a1f798089844c9
tests/parse_shebang_test.pyhttps://github.com/pre-commit/pre-commit/pull/2677/files#diff-9d64e3da6b7925fe79ebe72f3b0608dc0f0030832213f99e3cb002e4824b5e7d
View file https://github.com/taoufik07/pre-commit/blob/bf1a1fa5fd6de3633b033847964b51a60ffbd0d5/tests/parse_shebang_test.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/pre-commit/pre-commit/pull/2677/{{ revealButtonHref }}
https://github.com/pre-commit/pre-commit/pull/2677/files#diff-9d64e3da6b7925fe79ebe72f3b0608dc0f0030832213f99e3cb002e4824b5e7d
https://github.com/pre-commit/pre-commit/pull/2677/files#diff-9d64e3da6b7925fe79ebe72f3b0608dc0f0030832213f99e3cb002e4824b5e7d
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.