diff --git a/.github/workflows/autofix.yml b/.github/workflows/autofix.yml index 05d966e3d..d769b1209 100644 --- a/.github/workflows/autofix.yml +++ b/.github/workflows/autofix.yml @@ -40,7 +40,7 @@ jobs: - run: autoflake --in-place --remove-all-unused-imports --exclude mitmproxy/contrib -r . - uses: install-pinned/black@91bfc65283b1e8e9abac5d9e2a092c03c2ffddb8 - - run: black --extend-exclude mitmproxy/contrib . + - run: black . - name: Run prettier run: | diff --git a/pyproject.toml b/pyproject.toml index f65311927..47bd72ff8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -157,6 +157,9 @@ ignore_errors = true module = "test.*" ignore_errors = true +[tool.black] +extend_exclude = "mitmproxy/contrib/" + [tool.tox] legacy_tox_ini = """ [tox]