-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
style: Add black linter options and line length set to 100
- Loading branch information
1 parent
fcbd262
commit e16410a
Showing
2 changed files
with
13 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
[flake8] | ||
max-line-length = 88 | ||
max-line-length = 100 | ||
extend-ignore = E501 | ||
; extend-ignore = E203, E501, E231, E731, E741 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[tool.black] | ||
line-length = 100 | ||
skip-string-normalization = true | ||
target-version = ['py39'] | ||
exclude='\.eggs|\.git|\.mypy_cache|\.tox|\.venv|_build|buck-out|build|dist|node_modules' | ||
skip-magic-trailing-comma = true | ||
|
||
# Add an option to remove the trailing comma of separated lists | ||
# but it doesn't exist because python devs don't like beautiful code. | ||
# black specifically adds trailing commas due to git diff lengths | ||
# which is an insufficient reason to destroy beautiful code making | ||
# it look like an unfinished thought or an incomplete |