-
-
Notifications
You must be signed in to change notification settings - Fork 581
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
--skip
does not seem to work for specified subdirectories
#1685
Comments
This is where that logic is implemented (and the next 10 lines): Line 524 in f76ed04
Files are skipped using
I guess there are two ways to go here:
|
One pull request for each of the two options I mentioned. The one that changes the implementation would need some tests at least, and some Windows fixes, but leaving them for now... |
Seems like this has been fixed with documentation in #1689 so I'm gonna close this. |
Let's say you have a tree like this:
With contents of the files:
pyproject.toml
directory/subdirectory/file.py
When using a command
isort directory\subdirectory\file.py
, the filedirectory/subdirectory/file.py
gets fixed by isort.If you change
directory/subdirectory
inpyproject.toml
to be justdirectory
, isort does not touch thedirectory/subdirectory/file.py
, but I was unable to get isort to ignoredirectory/subdirectory
.As a workaround, you can use
skip_glob
withdirectory/subdirectory/*
pattern, but it does seem like a bug to me, considering that this work fine for top-level directories.The text was updated successfully, but these errors were encountered: