From edd1f03a0246e9ab3436a4fc0b17b704ceadcc1a Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Fri, 19 Mar 2021 10:50:37 +0100 Subject: [PATCH 1/5] Add GitHub Action mypy.yml --- .github/workflows/mypy.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/mypy.yml diff --git a/.github/workflows/mypy.yml b/.github/workflows/mypy.yml new file mode 100644 index 000000000000..188bc15373db --- /dev/null +++ b/.github/workflows/mypy.yml @@ -0,0 +1,25 @@ +name: mypy + +on: [push, pull_request] + +jobs: + pre-commit: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - run: python3 -m pip install mypy + - 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 From d31fdcb5c4fc618ab06a882d119a913e187de313 Mon Sep 17 00:00:00 2001 From: github-actions <${GITHUB_ACTOR}@users.noreply.github.com> Date: Fri, 19 Mar 2021 09:51:11 +0000 Subject: [PATCH 2/5] updating DIRECTORY.md --- DIRECTORY.md | 1 + 1 file changed, 1 insertion(+) diff --git a/DIRECTORY.md b/DIRECTORY.md index dfb673dea829..136825e41976 100644 --- a/DIRECTORY.md +++ b/DIRECTORY.md @@ -472,6 +472,7 @@ * [Runge Kutta](https://github.com/TheAlgorithms/Python/blob/master/maths/runge_kutta.py) * [Segmented Sieve](https://github.com/TheAlgorithms/Python/blob/master/maths/segmented_sieve.py) * Series + * [Arithmetic Mean](https://github.com/TheAlgorithms/Python/blob/master/maths/series/arithmetic_mean.py) * [Geometric Mean](https://github.com/TheAlgorithms/Python/blob/master/maths/series/geometric_mean.py) * [Geometric Series](https://github.com/TheAlgorithms/Python/blob/master/maths/series/geometric_series.py) * [Harmonic Series](https://github.com/TheAlgorithms/Python/blob/master/maths/series/harmonic_series.py) From 6ff1d8c9b816823291cf6d0e371cc36322f7d910 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Fri, 19 Mar 2021 10:53:17 +0100 Subject: [PATCH 3/5] Update mypy.yml --- .github/workflows/mypy.yml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/mypy.yml b/.github/workflows/mypy.yml index 188bc15373db..63db18e3c0ba 100644 --- a/.github/workflows/mypy.yml +++ b/.github/workflows/mypy.yml @@ -3,23 +3,23 @@ name: mypy on: [push, pull_request] jobs: - pre-commit: + mypy: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - run: python3 -m pip install mypy - - 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 \ + - 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 From 9740873df702de08b3626d09acc1eb9c3c0c656a Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Fri, 19 Mar 2021 10:55:35 +0100 Subject: [PATCH 4/5] Update mypy.yml --- .github/workflows/mypy.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/mypy.yml b/.github/workflows/mypy.yml index 63db18e3c0ba..54d9c16bb99a 100644 --- a/.github/workflows/mypy.yml +++ b/.github/workflows/mypy.yml @@ -8,6 +8,7 @@ jobs: steps: - uses: actions/checkout@v2 - run: python3 -m pip install mypy + # FIXME: fix mypy errors in other directories and add them here - run: python3 -m mypy --ignore-missing-imports arithmetic_analysis backtracking From 710fd8ffc66d6a66e4a33d4e27d146bee593ff2e Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Fri, 19 Mar 2021 11:26:19 +0100 Subject: [PATCH 5/5] Update mypy.yml --- .github/workflows/mypy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/mypy.yml b/.github/workflows/mypy.yml index 54d9c16bb99a..78badf82b586 100644 --- a/.github/workflows/mypy.yml +++ b/.github/workflows/mypy.yml @@ -8,7 +8,7 @@ jobs: steps: - uses: actions/checkout@v2 - run: python3 -m pip install mypy - # FIXME: fix mypy errors in other directories and add them here + # FIXME: #4052 fix mypy errors in other directories and add them here - run: python3 -m mypy --ignore-missing-imports arithmetic_analysis backtracking