Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita774182

Browse files
committed
Fix black exclusions to omit .gitignore dirs
This replaces "exclude" with "extend-exclude" in the blackconfiguration, so that it keeps its default exclusions, of whichall directories listed in .gitignore are automatically a part.That makes it possible to run "black ." to format just the filesthat should be formatted (git/ files, test/ files, and setup.py),while automatically omitting .venv/, .tox/, build/, and so on.This commit does not change how black is run yet, it just fixesthe way its exclusions are configured.
1 parent1256b16 commita774182

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ omit = ["*/git/ext/*"]
4545
[tool.black]
4646
line-length =120
4747
target-version = ['py37']
48-
exclude ="git/ext/gitdb"
48+
extend-exclude ="git/ext/gitdb"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp