Skip to content

Commit

Permalink
CI: exclude exclude exclude
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Mars <[email protected]>
  • Loading branch information
upils committed Jul 22, 2024
1 parent 7eb3971 commit 1319472
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Expand Down

0 comments on commit 1319472

Please sign in to comment.