Skip to content

Commit 956bf39

Browse files
Add .ipynb_checkpoints to DEFAULT_EXCLUDES (#3293)
Jupyter creates a checkpoint file every single time you create an .ipynb file, and then it updates the checkpoint file every single time you manually save your progress for the initial .ipynb. These checkpoints are stored in a directory named `.ipynb_checkpoints`. Co-authored-by: Batuhan Taskaya <[email protected]>
1 parent 141291a commit 956bf39

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGES.md

+2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727

2828
<!-- Changes to how Black can be configured -->
2929

30+
- `.ipynb_checkpoints` directories are now excluded by default (#3293)
31+
3032
### Packaging
3133

3234
<!-- Changes to how Black is packaged, such as dependency requirements -->

src/black/const.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
DEFAULT_LINE_LENGTH = 88
2-
DEFAULT_EXCLUDES = r"/(\.direnv|\.eggs|\.git|\.hg|\.mypy_cache|\.nox|\.tox|\.venv|venv|\.svn|_build|buck-out|build|dist|__pypackages__)/" # noqa: B950
2+
DEFAULT_EXCLUDES = r"/(\.direnv|\.eggs|\.git|\.hg|\.mypy_cache|\.nox|\.tox|\.venv|venv|\.svn|\.ipynb_checkpoints|_build|buck-out|build|dist|__pypackages__)/" # noqa: B950
33
DEFAULT_INCLUDES = r"(\.pyi?|\.ipynb)$"
44
STDIN_PLACEHOLDER = "__BLACK_STDIN_FILENAME__"

0 commit comments

Comments
 (0)