From 4242ab593def5e8743fa2ae2ab5d8ae463867f73 Mon Sep 17 00:00:00 2001 From: Wayne Manselle Date: Wed, 12 Jun 2024 22:08:15 -0700 Subject: [PATCH] Update readme, add mypy to tests --- .github/workflows/test.yaml | 3 +++ README.md | 1 + 2 files changed, 4 insertions(+) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 6fb2aa0..6b87cb9 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -27,6 +27,9 @@ jobs: run: | ruff check src/grpc_requests/*.py src/tests/*.py --statistics --config ruff.toml ruff format src/grpc_requests/*.py src/tests/*.py --check --config ruff.toml + - name: Typecheck src with mypy + run: | + mypy src/grpc_requests/*.py - name: Test with pytest run: | pytest --cov-report=xml --cov=src/grpc_requests diff --git a/README.md b/README.md index b11a0e8..33a2cbe 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # grpc_requests [![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff) +[![Checked with mypy](https://www.mypy-lang.org/static/mypy_badge.svg)](https://mypy-lang.org/) [![PyPI](https://img.shields.io/pypi/v/grpc-requests?style=flat-square)](https://pypi.org/project/grpc-requests) [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/grpc-requests?style=flat-square)](https://pypi.org/project/grpc-requests) [![PyPI download month](https://img.shields.io/pypi/dm/grpc-requests?style=flat-square)](https://pypi.org/project/grpc-requests)