Skip to content

Update pre-commit config to use file, type and type_or instead of exc…#248

Open
samaloney wants to merge 4 commits intosunpy:mainfrom
samaloney:switch-pre-commit-scope
Open

Update pre-commit config to use file, type and type_or instead of exc…#248
samaloney wants to merge 4 commits intosunpy:mainfrom
samaloney:switch-pre-commit-scope

Conversation

@samaloney
Copy link
Member

@samaloney samaloney commented Feb 19, 2026

Switch to specifying the type and file we want the checks to run on rather than excluding those that we don't. I think this is more explicit and I think marginally more maintainable. If we add .md files just need to add markdown to the types or types_or

Need to agree the type which checks should run on closes #247

Comment on lines +53 to +54
# Uncomment to make sure the ecludes match something
# - id: check-useless-excludes
Copy link
Member Author

@samaloney samaloney Feb 26, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In newly minted repo (hence test) this would fail because there are no files in extern or data

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pre-commit check scopes

1 participant