-
Notifications
You must be signed in to change notification settings - Fork 479
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Behavior of --skip with files list #1528
Comments
It seems it's just because we only check the skip if it's a directory. Should be a fairly easy fix. |
I might be able to take a look at this if you'd like? |
Feel free if you want to @rkm . Some TDD would be good, i.e. add a test that breaks it and confirm the CI catches it, then apply the fix. I think globs can muddy the water a bit as the shell may well expand them before passing them to codespell. Although I must admit when I did a few tests of skip adding it into our action it seemed to behave in some rather odd ways to me. |
Also these should all work the same:
We also need to check if |
hi, sorry for the inactivity on this. I started to add some tests as you suggested, but not had much time recently. Looking at the actual source, I'm also not clear on how to best implement the changes. I think we'll have to modify the |
No worries @rkm .
I think a chunk of the basic stuff will be fixed by just adding a:
Before the For the other stuff its probably a good start to write some simple standalone tests of our GlobMatch class. There's also this module, but it treats hidden files differently which might not be exactly the behaviour we want: |
Hi @rkm , Have you had any more time to look at this? What you've got in master...rkm:issue/1528-skip-files looks promising! |
Apologies, going to have to un-assign myself from this :( |
No worries @rkm , thanks for what you've done, we should be able to build on those test and get somewhere hopefully. |
Hi I have a fix in |
Thanks for fixing the first two @bwitt:
As far as I'm aware you've not touched these ones (or not added tests for them) at least:
So I've created #1915 to track that. Do you fancy adding tests for them (and fixing if required)? |
This was partially discussed in #1498.
Attempting to
--skip
a single file which is also present in the file list or is matched by the glob pattern causes the file to be checked anyway:Is this the intended behavior or a bug? If this is intentional, can it be made more obvious in the documentation? Thanks!
The text was updated successfully, but these errors were encountered: