--sg is not skipping expected files
Author: govindraiCreated May 5, 2022Updated Aug 3, 2026
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 filesI'm using v. 5.10.1. I used this glob tester service to ensure my glob pattern is valid.
Source: PyCQA/isort