Skip to content

Commit

Permalink
style: Add black linter options and line length set to 100
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyThomsonMonash committed Feb 8, 2024
1 parent fcbd262 commit e16410a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .flake8
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
12 changes: 12 additions & 0 deletions pyproject.toml
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

0 comments on commit e16410a

Please sign in to comment.