From 378c5246c54509cc23eb2f1d2e7e83229dd7f148 Mon Sep 17 00:00:00 2001 From: Albert Wang Date: Mon, 10 Jul 2023 00:36:15 -0700 Subject: [PATCH] Configure mypy in pyproject --- .drone.yml | 2 +- README.md | 2 +- pyproject.toml | 7 +++++++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index d8b3293..e2b75fb 100644 --- a/.drone.yml +++ b/.drone.yml @@ -11,7 +11,7 @@ steps: - python setup.py develop - pip install -r requirements-test.txt - ruff check . - - mypy . --strict --ignore-missing-imports --exclude build + - mypy . - cc-test-reporter before-build - coverage run -m unittest - exitcode="$?" diff --git a/README.md b/README.md index 079cfe8..8f7f0c2 100644 --- a/README.md +++ b/README.md @@ -96,7 +96,7 @@ Development python setup.py develop pip install -r requirements-test.txt ruff check . -mypy . --strict --ignore-missing-imports +mypy . coverage run -m unittest coverage report -m ``` diff --git a/pyproject.toml b/pyproject.toml index ab16bf9..e117392 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,2 +1,9 @@ [tool.ruff] select = ["E", "F", "B"] + +[tool.mypy] +strict = true +ignore_missing_imports = true +exclude = [ + "build", +]