-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
fix(config): handle mixed relative and absolute paths #427
fix(config): handle mixed relative and absolute paths #427
Conversation
# Only check the cases where we are providing more than one path | ||
if len(files_relpath) == 1: | ||
return |
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.
I'm sure there's a better way to do this 😬
1c7a9ab
to
d387bc1
Compare
The failure on Windows was because |
We need to call `absolute()` to convert a relative path to an absolute path before trying to compare parents, as `parents` is (per the docs), 'a purely lexical operation'.
d387bc1
to
b4c9620
Compare
I'm assuming the coverage failure is because this PR is from a fork?
|
yes, don't worry about that one |
@smcgivern Thanks so much for contributing! |
This turned out to be the wrong solution; |
I am on macOS and However, I see what you mean about click. You can set Line 158 in 96ed116
|
We need to call
absolute()
to convert a relative path to an absolute path before trying to compare parents, asparents
is (per the docs), 'a purely lexical operation'.Fixes #426.