From ece6ebe43c5be5e0e4c423f527a66b5b7c0ead70 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 11 Jun 2024 12:46:51 +0000 Subject: [PATCH] Apply updates from cookiecutter This automated commit applies the latest updates from our cookiecutters [1] to this repo. [1]: https://github.com/hypothesis/cookiecutters --- .github/workflows/ci.yml | 10 ++++++++++ Makefile | 2 +- pyproject.toml | 18 ++++++++++++++++++ 3 files changed, 29 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e15fb56..68e1c9d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,6 +35,16 @@ jobs: python-version: '3.9' - run: python -m pip install 'tox<4' - run: tox -e lint + Typecheck: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Install Python + uses: actions/setup-python@v4 + with: + python-version: '3.9' + - run: python -m pip install 'tox<4' + - run: tox -e typecheck Tests: runs-on: ubuntu-latest strategy: diff --git a/Makefile b/Makefile index 99eff75..90b0863 100644 --- a/Makefile +++ b/Makefile @@ -65,7 +65,7 @@ functests-py38: python $(call help,make sure,"make sure that the formatting$(comma) linting and tests all pass") sure: python sure: - @pyenv exec tox --parallel -qe 'checkformatting,lint,tests,py{38}-tests,coverage,functests,py{38}-functests' + @pyenv exec tox --parallel -qe 'checkformatting,lint,typecheck,tests,py{38}-tests,coverage,functests,py{38}-functests' .PHONY: template $(call help,make template,"update from the latest cookiecutter template") diff --git a/pyproject.toml b/pyproject.toml index 65e7482..0a31f5e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -139,6 +139,24 @@ good-names = [ output-format = "colorized" score = "no" +[tool.mypy] +warn_unused_configs = true +warn_redundant_casts = true +warn_unused_ignores = true + +disable_error_code = [ + # https://mypy.readthedocs.io/en/stable/error_code_list.html#code-import-untyped + "import-untyped", +] + +[[tool.mypy.overrides]] +module= [ + # Don't try to typecheck the tests for now + "tests.*", +] +ignore_errors = true + + [tool.hdev] project_name = "pyramid-googleauth" project_type = "library"