From 1319472297ed72891f317d02df120edf003d80bc Mon Sep 17 00:00:00 2001 From: Paul Mars Date: Mon, 22 Jul 2024 17:12:37 +0200 Subject: [PATCH] CI: exclude exclude exclude Signed-off-by: Paul Mars --- pyproject.toml | 1 + tox.ini | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index ee1e492b..6bf76f0c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -146,6 +146,7 @@ namespaces = false [tool.black] target-version = ["py312"] +extend-exclude = "tests/lib/external/" [tool.codespell] ignore-words-list = "buildd,crate,keyserver,comandos,ro,dedent,dedented" diff --git a/tox.ini b/tox.ini index 53c2abe5..4c62f22a 100644 --- a/tox.ini +++ b/tox.ini @@ -95,14 +95,14 @@ commands_pre = mypy: mkdir -p {tox_root}/.mypy_cache commands = pyright: pyright {posargs} - mypy: mypy --install-types --non-interactive --exclude docs/ tests/lib/ {posargs:.} + mypy: mypy --install-types --non-interactive --exclude docs/ --exclude tests/lib/external/ {posargs:.} [testenv:format-{black,ruff,codespell}] description = Automatically format source code base = testenv, lint labels = format commands = - black: black {tty:--color} {posargs} . + black: black {tty:--color} --extend-exclude='tests\/lib\/external\/' {posargs} . ruff: ruff check --fix --respect-gitignore {posargs} . codespell: codespell --toml {tox_root}/pyproject.toml --write-changes {posargs}