PyCQA / PyCQA/isort

--sg is not skipping expected files

Open
#1,927 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
7k
Forks
687
Avg merge
4h 56m
Merged PRs (30d)
2

Description

I run the following command and expect none of those files to show up in the output:

> isort -c  --sg **/marketplace/content/store/models/v*/** marketplace/content/store 
ERROR: /Users/govind.rai/Projects/all-the-things/marketplace/content/store/models/marketplace/content/store/models/v1/messages_pb2.py Imports are incorrectly sorted and/or formatted.
ERROR: /Users/govind.rai/Projects/all-the-things/marketplace/content/store/models/marketplace/content/store/models/v1/messages_pb2.pyi Imports are incorrectly sorted and/or formatted.
ERROR: /Users/govind.rai/Projects/all-the-things/marketplace/content/store/models/marketplace/content/store/models/v1/messages_pb2.py Imports are incorrectly sorted and/or formatted.
ERROR: /Users/govind.rai/Projects/all-the-things/marketplace/content/store/models/marketplace/content/store/models/v1/messages_pb2.pyi Imports are incorrectly sorted and/or formatted.
Skipped 5 files

I'm using v. 5.10.1. I used this glob tester service to ensure my glob pattern is valid.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the isort 5.10.1 command using --sg and the provided glob pattern, then trace how the CLI handles skip-glob matching. Done means files matching /marketplace/content/store/models/v/* are omitted from output while the remaining marketplace/content/store files are still checked.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.