Skip to content

Commit

Permalink
Run pytype
Browse files Browse the repository at this point in the history
  • Loading branch information
dseomn committed Sep 23, 2023
1 parent 8467c12 commit 6a07e98
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,13 @@ addopts = """\
--cov-report=term-missing \
"""

[tool.pytype]
inputs = ["."]
exclude = [
"**/*_pb2.pyi",
]
jobs = "auto"

[tool.setuptools-protobuf]
protobufs = [
"rock_paper_sand/proto/config.proto",
Expand Down

0 comments on commit 6a07e98

Please sign in to comment.