diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b19aa548..2ddeb922 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -32,12 +32,12 @@ jobs: - name: Ruff run: | - python -m ruff check . - python -m ruff format --check . + python -m ruff check + python -m ruff format --check - name: Type Check run: | - python -m mypy testtools + python -m mypy test: runs-on: ubuntu-latest diff --git a/pyproject.toml b/pyproject.toml index 68e9ea15..27385f02 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -69,6 +69,10 @@ warn_unused_ignores = false # FIXME(stephenfin): We should remove this implicit_reexport = true exclude = 'doc' +files = [ + "testtools", + "tests", +] [[tool.mypy.overrides]] module = [ diff --git a/tox.ini b/tox.ini index 6cf33bac..7af1deb1 100644 --- a/tox.ini +++ b/tox.ini @@ -14,11 +14,11 @@ commands = deps = ruff commands = - ruff check --fix . - ruff format . + ruff check --fix + ruff format [testenv:mypy] deps = mypy commands = - mypy --cache-dir="{envdir}/mypy_cache" {posargs:testtools} + mypy --cache-dir="{envdir}/mypy_cache" {posargs}