Skip to content

Commit 923a022

Browse files
committed
Add black to pyproject.toml
Also exclude vendored conv_template.py from black style checks
1 parent cd508d5 commit 923a022

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ repos:
1919
rev: 25.1.0
2020
hooks:
2121
- id: black
22+
exclude: "_vendored/conv_template.py"
2223

2324
- repo: https://github.com/pycqa/flake8
2425
rev: 7.1.2

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ test = ["pytest"]
6666
Download = "http://github.com/IntelPython/mkl_fft"
6767
Homepage = "http://github.com/IntelPython/mkl_fft"
6868

69+
[tool.black]
70+
line-length = 80
71+
exclude = "_vendored/conv_template.py"
72+
6973
[tool.isort]
7074
ensure_newline_before_comments = true
7175
force_grid_wrap = 0

0 commit comments

Comments
 (0)