Skip to content

Commit

Permalink
Add black to pre-commit with pyproject config
Browse files Browse the repository at this point in the history
  • Loading branch information
peymanslh committed Dec 3, 2023
1 parent bb7a4a9 commit 3a0bb76
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
repos:
- repo: https://github.com/psf/black
rev: 23.11.0
hooks:
- id: black

- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
- id: isort

- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
rev: 6.1.0
hooks:
- id: flake8

Expand Down
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[tool.black]
line-length = 88
target-version = ["py38"]

[tool.isort]
profile = "black"

0 comments on commit 3a0bb76

Please sign in to comment.