-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Update .pre-commit-config.yaml #991
Merged
Merged
Changes from 1 commit
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
d69c52e
Update .pre-commit-config.yaml
lee1043 44e4097
Update build_workflow.yml
lee1043 b89d759
Update build_workflow.yml
lee1043 b1f4e22
Move most `setup.cfg` configs to `pyproject.toml`
tomvothecoder 7e6bbe8
Fix `pre-commit` exclude skipping all files
tomvothecoder 1401dc2
Update pyproject.toml
tomvothecoder File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix
pre-commit
exclude skipping all files
- Loading branch information
commit 7e6bbe87582b1b5afffa62d4dc6fe00385fc670c
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lee1043 and @acordonez, I isolated the issue of
pre-commit
skipping files to the.md
substring in theexclude
config. I'm not sure ifpre-commit
can handle file extensions or not (.tox
is a not a file extension). I tried quickly Googling but didn't find any results.I updated
.md
toREADME.md
and nowpre-commit
runs locally and on CI/CD. Nowpre-commit run --all-files
picks up some issues that need to be fixed.Let me know if
pre-commit
is working for you locally as well.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tomvothecoder this is also working locally for me now when I run
pre-commit run --all-files
. Thanks for looking into this!There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tomvothecoder thank you very much for figuring this out! At some point I added .md assuming it was for file extensions because I was annoyed by pre-commit complaining for extra space at the end of line in .md files. My bad. I appreciate you figured this out!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@acordonez and @lee1043 great and no problem!
Feel free to merge after you fix the new
pre-commit
issues. You can rebase your dev branches on the latestmain
to getpre-commit
working again.