From a53fecb7670e111bd88262e7df92101d8a00b8d5 Mon Sep 17 00:00:00 2001 From: T Sparrow <793763+sparrowt@users.noreply.github.com> Date: Thu, 7 May 2026 15:17:32 +0100 Subject: [PATCH] Remove references to defunct `git_ignore` config It raises `UnsupportedSettings` because e16806990ed862ac2bdc3125060d1a35741c1e83 removed it without removing the documentation that refers to it. The remaining config option that still works is `skip_gitignore`. --- docs/configuration/options.md | 10 ---------- scripts/build_config_option_docs.py | 1 - 2 files changed, 11 deletions(-) diff --git a/docs/configuration/options.md b/docs/configuration/options.md index 9281ad2c..076d576b 100644 --- a/docs/configuration/options.md +++ b/docs/configuration/options.md @@ -1629,16 +1629,6 @@ Forces star imports above others to avoid overriding directly imported variables - --star-first -## Git Ignore - -If `True` isort will honor ignores within locally defined .git_ignore files. - -**Type:** Dict -**Default:** `{}` -**Config default:** `{}` -**Python & Config File Name:** git_ignore -**CLI Flags:** **Not Supported** - ## Format Error Override the format used to print errors. diff --git a/scripts/build_config_option_docs.py b/scripts/build_config_option_docs.py index 12862a9e..cad2329c 100755 --- a/scripts/build_config_option_docs.py +++ b/scripts/build_config_option_docs.py @@ -128,7 +128,6 @@ def __str__(self): "auto_identify_namespace_packages": "Automatically determine local namespace packages, generally by lack of any src files before a src containing directory.", "namespace_packages": "Manually specify one or more namespace packages.", "follow_links": "If `True` isort will follow symbolic links when doing recursive sorting.", - "git_ignore": "If `True` isort will honor ignores within locally defined .git_ignore files.", "formatting_function": "The fully qualified Python path of a function to apply to format code sorted by isort.", "group_by_package": "If `True` isort will automatically create section groups by the top-level package they come from.", "indented_import_headings": "If `True` isort will apply import headings to indented imports the same way it does unindented ones.",