Skip to content

Commit

Permalink
Add black config
Browse files Browse the repository at this point in the history
  • Loading branch information
youtux committed Sep 22, 2024
1 parent e1476f8 commit f473cbe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 0 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@ repos:
hooks:
- id: black
files: "^python/"

7 changes: 7 additions & 0 deletions python/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[tool.black]
# Using `(python/)?` to match both `gherkin/parser.py` and `python/gherkin/parser.py`.
# This is needed to be able to run `black` as a pre-commit hook, and also to run it manually.
force-exclude = """(
(python/)?gherkin/parser.py
)"""
target-version = ["py38", "py39", "py310", "py311", "py312", "py313"]

0 comments on commit f473cbe

Please sign in to comment.