From 8f7a24834fac5639cd1ec18fb3b2b46a7a173119 Mon Sep 17 00:00:00 2001 From: Manuel Jacob Date: Thu, 16 Feb 2023 19:39:53 +0100 Subject: [PATCH] Skip .pytype directory by default. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Pytype stores .pyi files in .pytype that isort shouldn’t check or touch. --- docs/configuration/options.md | 2 +- isort/settings.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/configuration/options.md b/docs/configuration/options.md index 94d9c958..c9065a6a 100644 --- a/docs/configuration/options.md +++ b/docs/configuration/options.md @@ -60,7 +60,7 @@ Force specific imports to the top of their appropriate section. Files that isort should skip over. If you want to skip multiple files you should specify twice: `--skip file1 --skip file2`. Values can be file names, directory names or file paths. To skip all files in a nested path, use [`--skip-glob`](#skip-glob). To even skip matching files that have been specified on the command line, use [`--filter-files`](#filter-files). **Type:** List of Strings -**Default:** `('.bzr', '.direnv', '.eggs', '.git', '.hg', '.mypy_cache', '.nox', '.pants.d', '.svn', '.tox', '.venv', '__pypackages__', '_build', 'buck-out', 'build', 'dist', 'node_modules', 'venv')` +**Default:** `('.bzr', '.direnv', '.eggs', '.git', '.hg', '.mypy_cache', '.nox', '.pants.d', '.pytype' '.svn', '.tox', '.venv', '__pypackages__', '_build', 'buck-out', 'build', 'dist', 'node_modules', 'venv')` **Config default:** `['.bzr', '.direnv', '.eggs', '.git', '.hg', '.mypy_cache', '.nox', '.pants.d', '.svn', '.tox', '.venv', '__pypackages__', '_build', 'buck-out', 'build', 'dist', 'node_modules', 'venv']` **Python & Config File Name:** skip **CLI Flags:** diff --git a/isort/settings.py b/isort/settings.py index 24de2337..3d8e1875 100644 --- a/isort/settings.py +++ b/isort/settings.py @@ -89,6 +89,7 @@ ".direnv", "node_modules", "__pypackages__", + ".pytype", } )