Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pyproject.toml: Fix black excludes #428

Merged
merged 1 commit into from
Jun 30, 2023
Merged

Conversation

bkeryan
Copy link
Collaborator

@bkeryan bkeryan commented Jun 29, 2023

What does this Pull Request accomplish?

Change the tools.black extend_exclude field to use the correct format.

Why should this Pull Request be merged?

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.

What testing has been done?

poetry run black . no longer reformats files that it shouldn't.

`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]>
@bkeryan bkeryan merged commit dd96c2c into master Jun 30, 2023
@bkeryan bkeryan deleted the users/bkeryan/fix-black-excludes branch June 30, 2023 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants