diff options
author | Timothy Edmund Crosley <timothy.crosley@gmail.com> | 2023-02-22 01:50:16 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-22 01:50:16 -0800 |
commit | 3a72e069635a865a92b8a0273aa829f630cbcd6f (patch) | |
tree | bbee3bec66dec896141f203277e43eea335b7fad | |
parent | 7024ceb49f4cef9fb23fd2f54d9789324cfeae79 (diff) | |
parent | 8f7a24834fac5639cd1ec18fb3b2b46a7a173119 (diff) | |
download | isort-3a72e069635a865a92b8a0273aa829f630cbcd6f.tar.gz |
Merge pull request #2098 from manueljacob/skip-.pytype_directory
Skip .pytype directory by default.
-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 500275f7..2c6b94bc 100644 --- a/isort/settings.py +++ b/isort/settings.py @@ -89,6 +89,7 @@ DEFAULT_SKIP: FrozenSet[str] = frozenset( ".direnv", "node_modules", "__pypackages__", + ".pytype", } ) |