Skip to content

handling of exclude configuration changed in an incompatible way in 0.930 #11830

Closed
@asottile

Description

@asottile

#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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugmypy got something wrong

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions