Skip to content

mypy: Exclude only 20 files that are still failing #5608

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 23 commits into from
Nov 6, 2021
Merged
Show file tree
Hide file tree
Changes from 22 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
run: |
python -m pip install --upgrade pip setuptools six wheel
python -m pip install mypy pytest-cov -r requirements.txt
- run: mypy --install-types --non-interactive .
- run: mypy . # See `mypy.ini` for configuration settings.
- name: Run tests
run: pytest --doctest-modules --ignore=project_euler/ --ignore=scripts/validate_solutions.py --cov-report=term-missing:skip-covered --cov=. .
- if: ${{ success() }}
Expand Down
6 changes: 3 additions & 3 deletions mypy.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[mypy]
ignore_missing_imports = True

; FIXME: #4052 fix mypy errors in the exclude directories and remove them below
exclude = (data_structures|graphs|maths|matrix|other|searches)/$
install_types = True
non_interactive = True
exclude = /(data_structures/stacks/next_greater_element\.py|graphs/boruvka\.py|graphs/breadth_first_search\.py|graphs/breadth_first_search_2\.py|graphs/check_cycle\.py|graphs/finding_bridges\.py|graphs/greedy_min_vertex_cover\.py|graphs/random_graph_generator\.py|maths/average_mode\.py|maths/gamma_recursive\.py|maths/proth_number\.py|maths/series/geometric_series\.py|maths/series/p_series\.py|matrix/matrix_operation\.py|other/fischer_yates_shuffle\.py|other/least_recently_used\.py|other/lfu_cache\.py|other/lru_cache\.py|searches/simulated_annealing\.py|searches/ternary_search\.py)$