mypy: Use a --exclude list (#4296)

* mypy: Use a --exclude list

* Graphics works on my machine

* A few more...

* A few more...

* Update build.yml
This commit is contained in:
Christian Clauss 2021-03-31 05:02:25 +02:00 committed by GitHub
parent 35901eb6fe
commit c22c7d503b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,29 +21,9 @@ jobs:
run: |
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
# FIXME: #4052 fix mypy errors in the exclude directories and remove them below
- run: mypy --ignore-missing-imports
backtracking
bit_manipulation
blockchain
boolean_algebra
cellular_automata
compression
computer_vision
divide_and_conquer
electronics
file_transfer
fractals
fuzzy_logic
genetic_algorithm
geodesy
knapsack
machine_learning
networking_flow
neural_network
quantum
scheduling
sorts
--exclude '(arithmetic_analysis|ciphers|conversions|data_structures|digital_image_processing|dynamic_programming|graphs|hashes|linear_algebra|maths|matrix|other|project_euler|scripts|searches|strings|web_programming*)/$' .
- name: Run tests
run: pytest --doctest-modules --ignore=project_euler/ --ignore=scripts/ --cov-report=term-missing:skip-covered --cov=. .
- if: ${{ success() }}