You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some of our projects attempt to exclude the same files in both tools.black and tools.ni-python-styleguide. However, the extend_exclude key has a different format for each tool: black uses a regex and ni-python-styleguide uses a comma-separated list of fnmatch patterns.
because we have flake8-black in play, anyone running "black ." may have files get formatted that ni-python-styleguide would ignore if they don't configure black.
Workarounds:
provide extend_exclude to both tools, in seperate formats
only ever run ni-python-styleguide fix and NOT call black directly.
bkeryan
added a commit
to ni/nidaqmx-python
that referenced
this issue
Jun 29, 2023
`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]>
`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]>
Some of our projects attempt to exclude the same files in both
tools.black
andtools.ni-python-styleguide
. However, theextend_exclude
key has a different format for each tool:black
uses a regex andni-python-styleguide
uses a comma-separated list offnmatch
patterns.In
nidaqmx-python
, we tried to keep these in sync, but copying theni-python-styleguide
format to thetools.black
section results in a regex that doesn't match anything.https://github.com/ni/nidaqmx-python/blob/master/pyproject.toml#L82
The text was updated successfully, but these errors were encountered: