Skip to content
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_glob seems to ignore !(ab|cd|ef) syntax #1955

Open
m-dz opened this issue Jul 25, 2022 · 0 comments
Open

skip_glob seems to ignore !(ab|cd|ef) syntax #1955

m-dz opened this issue Jul 25, 2022 · 0 comments

Comments

@m-dz
Copy link

m-dz commented Jul 25, 2022

Related to #885 and #1927 , Python 3.8.10, isort 5.10.1, pattern works in the glob tester here https://www.digitalocean.com/community/tools/glob (and https://globster.xyz/ I think, but the output is... odd).

Project structure:

.
├── (Various config files, including:)
├── setup.cfg with `[tool:isort]`
├── src
│   ├── scripts
│   │   ├── zzz.yyy.py
│   │   ├── zzz.aaa.py
│   │   ├── zzz.bbb.py
│   │   └── zzz.ccc.py

I am trying to skan all **/zzz.* except zzz.yyy.py with the following:

  1. skip_glob=**/zzz.* - skips all 4 files;
  2. skip_glob=**/zzz.!(yyy.py) - (working in glob testers above) does not skip anything.

Is this !(ab|cd|ef) syntax supported by isort?

Edit 26/07: Fixed the second skip_glob example, I forgot to "obfuscate" it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant