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 9381924
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
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 = ["rock_paper_sand"]
exclude = [
"**/*_pb2.py",
]
jobs = "auto"

[tool.setuptools-protobuf]
protobufs = [
"rock_paper_sand/proto/config.proto",
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ python-dateutil
pyyaml
requests
setuptools
setuptools-protobuf
setuptools-protobuf[mypy]
urllib3

0 comments on commit 9381924

Please sign in to comment.