Skip to content

Commit 3dd6796

Browse files
committed
Introduce black & fix flake8
1 parent 54634ee commit 3dd6796

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

.pre-commit-config.yaml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
repos:
2+
- repo: https://github.com/psf/black
3+
rev: 23.9.1
4+
hooks:
5+
- id: black
6+
args:
7+
- --quiet
8+
9+
- repo: https://github.com/PyCQA/isort
10+
rev: 5.12.0
11+
hooks:
12+
- id: isort
13+
args:
14+
- --profile=black

setup.cfg

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
11
[metadata]
22
description-file = README.md
33

4+
[isort]
5+
profile=black
6+
7+
[flake8]
8+
# F401 - imported but unused
9+
extend-ignore = E203, E501, W503, F401
10+
max-line-length = 88

0 commit comments

Comments
 (0)