Skip to content

Commit 3a0bb76

Browse files
committed
Add black to pre-commit with pyproject config
1 parent bb7a4a9 commit 3a0bb76

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.pre-commit-config.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
repos:
2+
- repo: https://github.com/psf/black
3+
rev: 23.11.0
4+
hooks:
5+
- id: black
6+
27
- repo: https://github.com/PyCQA/isort
38
rev: 5.12.0
49
hooks:
510
- id: isort
611

712
- repo: https://github.com/PyCQA/flake8
8-
rev: 6.0.0
13+
rev: 6.1.0
914
hooks:
1015
- id: flake8
1116

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[tool.black]
2+
line-length = 88
3+
target-version = ["py38"]
4+
5+
[tool.isort]
6+
profile = "black"

0 commit comments

Comments
 (0)