Description
Questions and Help
Please note that this issue tracker is not a help form and this issue will be closed.
Please check here instead:
This question is about the mypy commandline, not about mypy configuration files.
The --exclude
documentation does not explain how to exclude multiple directories on mypy commandline.
Should there be a single --exclude
option with comma-separated terms or
should there be multiple --exclude
options whose terms would be additive?
mypy --ignore-missing-imports --exclude @mypy_failing_files.txt
# does not work as expected.
Given https://github.com/TheAlgorithms/Python we would like to exclude directories until they can be made mypy compatible. We currently have an include list that works but as our mypy compatibility increases, we would like to switch to a shorter exclude list
like:
mypy --ignore-missing-imports \
--exclude ./arithmetic_analysis/ \
--exclude ./ciphers/ \
--exclude ./compression/ \
--exclude ./conversions/ \
--exclude ./data_structures/ \
--exclude ./digital_image_processing/ \
--exclude ./dynamic_programming/ \
--exclude ./graphics/ \
--exclude ./graphs/ \
--exclude ./hashes/ \
--exclude ./linear_algebra/ \
--exclude ./maths/ \
--exclude ./matrix/ \
--exclude ./other/ \
--exclude ./project_euler/ \
--exclude ./scripts/ \
--exclude ./searches/ \
--exclude ./strings/ \
--exclude ./web_programming/ .