Skip to content

Commit c49fa08

Browse files
dhruvmanilacclauss
andauthored
feat: Add mypy configuration file (TheAlgorithms#4315)
* feat: Add mypy config file * refactor: Remove mypy options from build workflow * Remove linear_algebra Co-authored-by: Christian Clauss <cclauss@me.com>
1 parent 8c29860 commit c49fa08

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.github/workflows/build.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ jobs:
2121
run: |
2222
python -m pip install --upgrade pip setuptools six wheel
2323
python -m pip install mypy pytest-cov -r requirements.txt
24-
# FIXME: #4052 fix mypy errors in the exclude directories and remove them below
25-
- run: mypy --ignore-missing-imports
26-
--exclude '(data_structures|digital_image_processing|dynamic_programming|graphs|maths|matrix|other|project_euler|scripts|searches|strings*)/$' .
24+
- run: mypy .
2725
- name: Run tests
2826
run: pytest --doctest-modules --ignore=project_euler/ --ignore=scripts/ --cov-report=term-missing:skip-covered --cov=. .
2927
- if: ${{ success() }}

mypy.ini

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[mypy]
2+
ignore_missing_imports = True
3+
4+
; FIXME: #4052 fix mypy errors in the exclude directories and remove them below
5+
exclude = (data_structures|digital_image_processing|dynamic_programming|graphs|maths|matrix|other|project_euler|scripts|searches|strings*)/$

0 commit comments

Comments
 (0)