Closed
Description
#11825 seems related but slightly different as that one causes a crash -- I believe this was broken in #11329
Bug Report
for example: (this is reduced from a larger example just to demonstrate a minimal example)
# mypy.ini
[mypy]
exclude=(?x)
^(
setup\.py$
)
To Reproduce
set up a configuration above and run mypy
Expected Behavior
in mypy 0.920 this excluded all setup.py
files
Actual Behavior
this appears to exclude all files:
$ mypy .
There are no .py[i] files in directory '.'
Your Environment
- Mypy version used: 0.930
- Mypy command-line flags: (see above)
- Mypy configuration options from
mypy.ini
(and other config files): (see above) - Python version used: 3.8.10
- Operating system and version: ubuntu 20.04