Skip to content

Commit e36f3bf

Browse files
committed
Update black configuration
Allow line lengths of 100 for black and remove flake8's config on length. flake8 is already configured to ignore line length violations. Reasoning of 100: A line length of 88 is the default which is 8 more than PEP-8 recommendations. This comes from the default recommendation plus two indents worth which amount to a class and method. 100 allows for three more indents. The goal here is not to encourage deeper nesting but to encourage more verbose naming without trying to trim those few characteres. Overall expectation is to keep using a visual guide of 88 characters.
1 parent fdce998 commit e36f3bf

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.flake8

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@
44
extend-ignore =
55
E501
66
E203
7-
max-line-length = 88

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ homepage = "https://github.com/[ORG NAME]/[REPO NAME]"
3838
# [project.scripts]
3939
# python-src-example = "module_name.sample:main"
4040

41+
[tool.black]
42+
line-length = 100
43+
target-version = ['py39']
44+
4145
[tool.setuptools.package-data]
4246
"module_name" = ["py.typed"]
4347

0 commit comments

Comments
 (0)