From 8ce1f14249a3448f065270c66419b1365c5db212 Mon Sep 17 00:00:00 2001 From: AshSta512 Date: Wed, 7 Aug 2024 21:28:21 -0400 Subject: [PATCH 1/2] Add default exclusions and inclusions to docs --- docs/usage_and_configuration/the_basics.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/usage_and_configuration/the_basics.md b/docs/usage_and_configuration/the_basics.md index 7b5da98879f..68abb0cce4c 100644 --- a/docs/usage_and_configuration/the_basics.md +++ b/docs/usage_and_configuration/the_basics.md @@ -296,6 +296,11 @@ recursive searches. An empty value means no paths are excluded. Use forward slas directories on all platforms (Windows, too). By default, Black also ignores all paths listed in `.gitignore`. Changing this value will override all default exclusions. +Default Exclusions: `['.direnv', '.eggs', '.git', '.hg', '.ipynb_checkpoints', +'.mypy_cache', '.nox', '.pytest_cache', '.ruff_cache', '.tox', '.svn', '.venv', '.vscode', +'__pypackages__', '_build', 'buck-out', 'build', 'dist', 'venv'] +` + If the regular expression contains newlines, it is treated as a [verbose regular expression](https://docs.python.org/3/library/re.html#re.VERBOSE). This is typically useful when setting these options in a `pyproject.toml` configuration file; @@ -324,6 +329,8 @@ recursive searches. An empty value means all files are included regardless of th Use forward slashes for directories on all platforms (Windows, too). Overrides all exclusions, including from `.gitignore` and command line options. +Default Inclusions: `['.pyi', '.ipynb']` + #### `-W`, `--workers` When _Black_ formats multiple files, it may use a process pool to speed up formatting. From 8eef97be1f9c3120af81f42ac1dc4e37fad39451 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 8 Aug 2024 01:45:52 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- docs/usage_and_configuration/the_basics.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/docs/usage_and_configuration/the_basics.md b/docs/usage_and_configuration/the_basics.md index 68abb0cce4c..ab3a1ff6def 100644 --- a/docs/usage_and_configuration/the_basics.md +++ b/docs/usage_and_configuration/the_basics.md @@ -296,10 +296,8 @@ recursive searches. An empty value means no paths are excluded. Use forward slas directories on all platforms (Windows, too). By default, Black also ignores all paths listed in `.gitignore`. Changing this value will override all default exclusions. -Default Exclusions: `['.direnv', '.eggs', '.git', '.hg', '.ipynb_checkpoints', -'.mypy_cache', '.nox', '.pytest_cache', '.ruff_cache', '.tox', '.svn', '.venv', '.vscode', -'__pypackages__', '_build', 'buck-out', 'build', 'dist', 'venv'] -` +Default Exclusions: +`['.direnv', '.eggs', '.git', '.hg', '.ipynb_checkpoints', '.mypy_cache', '.nox', '.pytest_cache', '.ruff_cache', '.tox', '.svn', '.venv', '.vscode', '__pypackages__', '_build', 'buck-out', 'build', 'dist', 'venv'] ` If the regular expression contains newlines, it is treated as a [verbose regular expression](https://docs.python.org/3/library/re.html#re.VERBOSE). This