From f1ce275a4fb1594c5b6c099aeac8a6cc8fd180b1 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sat, 20 Mar 2021 06:33:38 +0100 Subject: [PATCH 1/4] build.yml: Run mypy --ignore-missing-imports --- .github/workflows/build.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9e15d18ade8e..1a9a224eb10f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,6 +21,22 @@ jobs: run: | python -m pip install --upgrade pip setuptools six wheel python -m pip install pytest-cov -r requirements.txt + # FIXME: #4052 fix mypy errors in other directories and add them here + - run: python3 -m mypy --ignore-missing-imports + arithmetic_analysis + backtracking + bit_manipulation + blockchain + boolean_algebra + cellular_automata + computer_vision + digital_image_processing + fuzzy_logic + genetic_algorithm + geodesy + knapsack + networking_flow + scheduling sorts - name: Run tests run: pytest --doctest-modules --ignore=project_euler/ --ignore=scripts/ --cov-report=term-missing:skip-covered --cov=. . - if: ${{ success() }} From eceae1197188504b7dde61d199b888cf6bd7f332 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sat, 20 Mar 2021 06:35:06 +0100 Subject: [PATCH 2/4] pip install mypy --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1a9a224eb10f..a449b8814267 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,7 +20,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip setuptools six wheel - python -m pip install pytest-cov -r requirements.txt + python -m pip install mypy pytest-cov -r requirements.txt # FIXME: #4052 fix mypy errors in other directories and add them here - run: python3 -m mypy --ignore-missing-imports arithmetic_analysis From e578d9de772da72da27b11c1a394fc79278ff3df Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sat, 20 Mar 2021 06:39:48 +0100 Subject: [PATCH 3/4] Remove failing directories --- .github/workflows/build.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a449b8814267..487ac5cd96a0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,14 +23,12 @@ jobs: python -m pip install mypy pytest-cov -r requirements.txt # FIXME: #4052 fix mypy errors in other directories and add them here - run: python3 -m mypy --ignore-missing-imports - arithmetic_analysis backtracking bit_manipulation blockchain boolean_algebra cellular_automata computer_vision - digital_image_processing fuzzy_logic genetic_algorithm geodesy From 88049565150b346c016d66e1d8144ad426b94cd6 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sat, 20 Mar 2021 06:51:38 +0100 Subject: [PATCH 4/4] Add fractals and drop python-m --- .github/workflows/build.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 487ac5cd96a0..1e8d04126002 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,13 +22,14 @@ jobs: python -m pip install --upgrade pip setuptools six wheel python -m pip install mypy pytest-cov -r requirements.txt # FIXME: #4052 fix mypy errors in other directories and add them here - - run: python3 -m mypy --ignore-missing-imports + - run: mypy --ignore-missing-imports backtracking bit_manipulation blockchain boolean_algebra cellular_automata computer_vision + fractals fuzzy_logic genetic_algorithm geodesy