-
Notifications
You must be signed in to change notification settings - Fork 654
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
Strip ./ from discover_lintables results #1837
Strip ./ from discover_lintables results #1837
Conversation
94ec64a
to
fadda4a
Compare
I'm not sure what's the best way to make mypy happy. |
Head branch was pushed to by a user without write access
d299190
to
2a900ef
Compare
Thanks for the feedback. I refactored the code as suggested with a separate function and a set comprehension. That also obsoleted the import of |
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.
The changes in src/ansiblelint/file_utils.py look good to me.
I'm not sure what the other changes are about though. They seem to be unrelated to this PR.
5155d8e
to
116015f
Compare
Now rebase on updated main. Looks better :) |
calling WcMatch('.', ...) causes the resulting file names to be prefixed with `./`. If the tests are run in a git-repository, this is not an issue, as git is preferred of WcMatch in the code. Therefore remove the `./` prefix from the WcMatch return value to get the identical expected output. fixes ansible#1836
116015f
to
f881ebf
Compare
... and now also fixed this check fail:
|
calling WcMatch('.', ...) causes the resulting file names to be prefixed
with
./
.If the tests are run in a git-repository, this is not an issue, as git
is preferred of WcMatch in the code.
Therefore remove the
./
prefix from the WcMatch return value to getthe identical expected output.
fixes #1836