Skip to content

Commit 9d1bd78

Browse files
committed
configure black flake in .pre-commit-config.yaml
1 parent 15bf46e commit 9d1bd78

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.pre-commit-config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,15 @@ repos:
44
hooks:
55
- id: black
66
language_version: python3
7+
exclude: '(^|/)(README\.md|.*\.svg|.*\.html)$'
8+
args: ["--line-length=120", "--target-version=py38"]
79
- repo: https://github.com/pycqa/flake8
810
rev: 7.0.0 # Use the latest stable version or pin as needed
911
hooks:
1012
- id: flake8
1113
language_version: python3
14+
exclude: '(^|/)(README\.md|.*\.svg|.*\.html)$'
15+
args: ["--max-line-length=120", "--extend-ignore=E203,W503"]
1216
- repo: https://github.com/pre-commit/pre-commit-hooks
1317
rev: v4.5.0
1418
hooks:

0 commit comments

Comments
 (0)