Commit 15868c3
committed
test: style: fix black ignoring
When `black` is passed multiple directories, it will try to look for
`pyproject.toml` in the common ancestor of those paths. In our cases,
since we pass it `tests`, `.buildkite` and `tools`, that would be the
repository root. However, our pyproject.toml sits in `tests`, and thus
the `exclude` rule it defines is ignored (and it is this `exclude` rules
that overwrites the default behavior of excluding directories called
`build`).
Fix this by explicitly passing in a `--config` argument. Since `isort`
does not support this argument, pass it in a quite ugly via by adding it
to the pytest parameters.
Fixes: 4f55e49
Signed-off-by: Patrick Roy <[email protected]>integration_test/build directory1 parent eb26211 commit 15868c3
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
0 commit comments