Skip to content

Commit

Permalink
pyproject.toml: Fix black excludes (#428)
Browse files Browse the repository at this point in the history
`black` and `ni-python-styleguide` have different formats for `extend_exclude`:
- `black` uses a single regex
- `ni-python-styleguide` uses a comma-separated list of `fnmatch` patterns

See ni/python-styleguide#134 for more info.

Signed-off-by: Brad Keryan <[email protected]>
  • Loading branch information
bkeryan authored Jun 30, 2023
1 parent 8e6a88d commit dd96c2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ tox = [

[tool.black]
line-length = 100
extend_exclude = ".tox,docs,generated,src/codegen/metadata,src/codegen/templates"
extend_exclude = ".tox/|docs/|generated/|src/codegen/metadata/|src/codegen/templates/|src/handwritten/"

[tool.ni-python-styleguide]
extend_exclude = ".tox,docs,generated,src/codegen/metadata,src/codegen/templates,src/handwritten"
Expand Down

0 comments on commit dd96c2c

Please sign in to comment.