René's URL Explorer Experiment


Title: Be able to run pre-commit check on file removal (for languages which not file-limited, but dir-limited) · Issue #3048 · pre-commit/pre-commit · GitHub

Open Graph Title: Be able to run pre-commit check on file removal (for languages which not file-limited, but dir-limited) · Issue #3048 · pre-commit/pre-commit

X Title: Be able to run pre-commit check on file removal (for languages which not file-limited, but dir-limited) · Issue #3048 · pre-commit/pre-commit

Description: search you tried in the issue tracker file removal describe your actual problem I'm maintainer of Terraform pre-commit hooks, and Terraform during checks and execution, merges all *.tf, *.tfvars, and few other file extensions in one fold...

Open Graph Description: search you tried in the issue tracker file removal describe your actual problem I'm maintainer of Terraform pre-commit hooks, and Terraform during checks and execution, merges all *.tf, *.tfvars, a...

X Description: search you tried in the issue tracker file removal describe your actual problem I'm maintainer of Terraform pre-commit hooks, and Terraform during checks and execution, merges all *.tf, *.tfvar...

Opengraph URL: https://github.com/pre-commit/pre-commit/issues/3048

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Be able to run pre-commit check on file removal (for languages which not file-limited, but dir-limited)","articleBody":"### search you tried in the issue tracker\r\n\r\nfile removal\r\n\r\n### describe your actual problem\r\n\r\nI'm maintainer of Terraform pre-commit hooks, and Terraform during checks and execution, merges all *.tf, *.tfvars, and few other file extensions in one folder in one big configuration and checks that across all these files everything is OK.\r\n\r\nFor example, we have 2 files in one directory:\r\n\r\n`vars.tf`\r\n```tf\r\nvariable \"kms_enabled\" {\r\n  description = \"Enable creation of app-specific KMS key. Required if S3 or RDS is enabled.\"\r\n  type        = bool\r\n  default     = false\r\n}\r\n```\r\n\r\n`outputs.tf`\r\n```tf\r\noutput \"kms_enabled\" {\r\n  description = \"Is KMS used\"\r\n  value       = var.kms_enabled\r\n}\r\n```\r\n\r\nIf everything that I do in the folder - removes `vars.tf` - pre-commit will skip any checks which means that we commit invalid code.\r\n\r\nIn terraform hooks, we get all the changed file paths, extract dir paths and execute hooks on dirs.\r\nhttps://github.com/antonbabenko/pre-commit-terraform/blob/7122298824a9530e8f9c48e5de4281cca6301d67/hooks/_common.sh#L245C27-L253 \r\n\r\nIs there any possibility of forcing pre-commit to not skip deleted file paths from the list of files that need to be checked?\r\n\r\n### pre-commit --version\r\n\r\npre-commit 3.2.1","author":{"url":"https://github.com/MaxymVlasov","@type":"Person","name":"MaxymVlasov"},"datePublished":"2023-11-01T13:03:56.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/3048/pre-commit/issues/3048"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:ac1a4b7c-82d0-ba73-336d-4123bdde50e7
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idEBEC:53D51:8CF046:C4C8A3:6A4C96B7
html-safe-nonce44d372e295fff942704de0033ae2474ae1b277718891cfe49aa3fdb8fe7885f5
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQkVDOjUzRDUxOjhDRjA0NjpDNEM4QTM6NkE0Qzk2QjciLCJ2aXNpdG9yX2lkIjoiMzA0MzI0OTQ0MjE1MDcxNzExMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac84f43d7222d78ca4b1953833b9169b578ff2c4e8607f4e4005a2e78aede9f2ca
hovercard-subject-tagissue:1972341633
github-keyboard-shortcutsrepository,issues,commits,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/pre-commit/pre-commit/3048/issue_layout
twitter:imagehttps://opengraph.githubassets.com/926397c2bd10f953f30fd9546ac90b1fcb1b44c3b1ec5ec06c6e58091a2f3a3a/pre-commit/pre-commit/issues/3048
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/926397c2bd10f953f30fd9546ac90b1fcb1b44c3b1ec5ec06c6e58091a2f3a3a/pre-commit/pre-commit/issues/3048
og:image:altsearch you tried in the issue tracker file removal describe your actual problem I'm maintainer of Terraform pre-commit hooks, and Terraform during checks and execution, merges all *.tf, *.tfvars, a...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameMaxymVlasov
hostnamegithub.com
expected-hostnamegithub.com
None3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c
turbo-cache-controlno-preview
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
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release7a2dede45637df6b92ddcfe2a557e67d4b5854ae
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/pre-commit/pre-commit/issues/3048#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpre-commit%2Fpre-commit%2Fissues%2F3048
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/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/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/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%2Fissues%2F3048
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%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=pre-commit%2Fpre-commit
Reloadhttps://github.com/pre-commit/pre-commit/issues/3048
Reloadhttps://github.com/pre-commit/pre-commit/issues/3048
Reloadhttps://github.com/pre-commit/pre-commit/issues/3048
Please reload this pagehttps://github.com/pre-commit/pre-commit/issues/3048
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/issues/3048
Notifications https://github.com/login?return_to=%2Fpre-commit%2Fpre-commit
Fork 983 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 22 https://github.com/pre-commit/pre-commit/issues
Pull requests 12 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
Be able to run pre-commit check on file removal (for languages which not file-limited, but dir-limited)https://github.com/pre-commit/pre-commit/issues/3048#top
https://github.com/MaxymVlasov
MaxymVlasovhttps://github.com/MaxymVlasov
on Nov 1, 2023https://github.com/pre-commit/pre-commit/issues/3048#issue-1972341633
https://github.com/antonbabenko/pre-commit-terraform/blob/7122298824a9530e8f9c48e5de4281cca6301d67/hooks/_common.sh#L245C27-L253https://github.com/antonbabenko/pre-commit-terraform/blob/7122298824a9530e8f9c48e5de4281cca6301d67/hooks/_common.sh#L245C27-L253
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.