Skip to content

Commit 57484d1

Browse files
committed
improve: black and flake8 configs
1 parent 2b4995b commit 57484d1

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

.flake8

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[flake8]
2+
max-line-length = 80
3+
select = C,E,F,W,B,B950
4+
extend-ignore = E203, E501

pyproject.toml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,25 @@ black = "^20.8b1"
3030
[build-system]
3131
requires = ["poetry-core>=1.0.0"]
3232
build-backend = "poetry.core.masonry.api"
33+
34+
[tool.black]
35+
line-length = 88
36+
target-version = ['py38']
37+
include = '\.pyi?$'
38+
exclude = '''
39+
40+
(
41+
/(
42+
\.eggs
43+
| \.git
44+
| \.hg
45+
| \.mypy_cache
46+
| \.tox
47+
| \.venv
48+
| _build
49+
| buck-out
50+
| build
51+
| dist
52+
)/
53+
)
54+
'''

0 commit comments

Comments
 (0)