Skip to content

Commit

Permalink
Add black to pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
bmerry committed Aug 2, 2023
1 parent f5d0033 commit dadf9ad
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ repos:
hooks:
- id: isort
name: isort
- repo: https://github.com/psf/black
rev: 23.7.0
hooks:
- id: black
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
Expand Down
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,7 @@ profile = "black"
combine_as_imports = true
line_length = 100
py_version = 38

[tool.black]
line-length = 100
target-versions = ["py38", "py39", "py310", "py311", "py312"]

0 comments on commit dadf9ad

Please sign in to comment.