diff options
author | Manuel Jacob <me@manueljacob.de> | 2023-02-16 19:39:53 +0100 |
---|---|---|
committer | Manuel Jacob <me@manueljacob.de> | 2023-02-21 10:12:10 +0100 |
commit | 8f7a24834fac5639cd1ec18fb3b2b46a7a173119 (patch) | |
tree | 374cc1f3baff864683cbe5bd8855ea11af13d305 | |
parent | 78a2d8ce7e8742bf975c5fecd6d1bbe3a1007afd (diff) | |
download | isort-8f7a24834fac5639cd1ec18fb3b2b46a7a173119.tar.gz |
Skip .pytype directory by default.
Pytype stores .pyi files in .pytype that isort shouldn’t check or touch.
-rw-r--r-- | docs/configuration/options.md | 2 | ||||
-rw-r--r-- | isort/settings.py | 1 |
2 files changed, 2 insertions, 1 deletions
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 @@ DEFAULT_SKIP: FrozenSet[str] = frozenset( ".direnv", "node_modules", "__pypackages__", + ".pytype", } ) |