Skip to content

Commit 8bcbdff

Browse files
committed
Add config settings for black
It is *not* added to pre-commit yet, to allow for updating the code piecemeal.
1 parent 2229468 commit 8bcbdff

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

.flake8

+3
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
[flake8]
22
max-line-length = 100
3+
# See https://black.readthedocs.io/en/stable/faq.html#why-are-flake8-s-e203-and-w503-violated
4+
extend-ignore = E203, W503
5+
extend-select = W504

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/PyCQA/isort
3-
rev: 5.10.1
3+
rev: "5.10.1"
44
hooks:
55
- id: isort
66
- repo: https://github.com/PyCQA/flake8

pyproject.toml

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
[build-system]
22
requires = ["setuptools", "wheel", "katversion"]
33

4+
[tool.black]
5+
line-length = 100
6+
target-version = ["py38"]
7+
48
[tool.isort]
59
profile = "black"
610
line_length = 100

0 commit comments

Comments
 (0)