From db62e1ad3118cae014ba177a61102814acf46a18 Mon Sep 17 00:00:00 2001 From: David Mandelberg Date: Sat, 23 Sep 2023 00:48:55 -0400 Subject: [PATCH] Run pytype --- .github/workflows/test.yaml | 6 ++++++ pyproject.toml | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 5c96949..70ec79d 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -51,6 +51,12 @@ jobs: run: | pip install black black --check --diff . + - name: Check types + # TODO(https://github.com/google/pytype/issues/1308): Remove condition. + if: matrix.python-version != '3.11' + run: | + pip install pytype + pytype - name: Test run: | pip install pytest pytest-cov diff --git a/pyproject.toml b/pyproject.toml index c9d7bc8..5ce3dba 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -33,6 +33,10 @@ addopts = """\ --cov-report=term-missing \ """ +[tool.pytype] +inputs = ["."] +jobs = "auto" + [tool.setuptools-protobuf] protobufs = [ "rock_paper_sand/proto/config.proto",