Description
My project directory structure is something like:
.
├── feecc_spoke
│ ├── __init__.py
...
│ └── waveshare_epd
...
│ ├── epd2in13d.py
│ ├── epdconfig.py
│ └── __init__.py
...
├── main.py
└── pyproject.toml
"waveshare_epd" is a third party module which is not published on PyPi, so I had to include it's files directly into the project folder. However, it generates a lot of errors which ruin my CI so I want to exclude those files from checking.
For that I use the "exclude" option in my configuration file (pyproject.toml).
The issue is that none of the regular expressions I've tried putting into the exclude option actually work.
I have tried: "waveshare_epd", ".*/waveshare_epd/", "feecc_spoke/waveshare_epd/.*", ".*epd.*", "[epd2in13d\.py|epdconfig\.py]"
and many more patterns.
I have tried putting in the patterns via: command line arguments, mypy.ini file, pyproject.toml file. None of the options had any effect - the files still get included into the report.
My current configuration (a section in the pyproject.toml file) looks like this:
[tool.mypy]
strict = true
exclude = ".*epd.*"
ignore_missing_imports = true
allow_subclassing_any = true
allow_untyped_calls = true
At this point I have spent hours at this issue over the course of multiple days and still can't find any fix for the problem.
I am using MyPy v.0.910 inside of a Poetry generated venv with base interpreter being Python 3.9.6 on a Linux system.