- Fixed cache closing logic on older mypy versions, #188
- Fixed
sqlite3mypy's cache contamination, #186
- Breaking: Errors are now ignored in site-packages by default. The
--mypy-only-local-stubflag has been removed and replaced with--mypy-no-silence-site-packageswhich can be used to restore the previous behavior if needed. This change was made to avoid errors being raised when enabling certain mypy options, e.g. theexplicit-overrideerror code or the--disallow-subclassing-anyflag, which resulted in violations due to these not being supported with the stubs provided by typeshed for the standard library. In addition, this affected other error codes or flags for some third-party libraries in django-stubs. - Breaking: When running in a subprocess (the default),
PYTHONPATHis no longer set. With the above change, violations would still be raised in the main module for a test case, but those that were flagged in imported modules would no longer be raised. This was because these modules were being added toPYTHONPATHwhich caused mypy to treat them as belonging in site-packages and not as part of the first-party package. The new--mypy-modify-pythonpathflag can be used to revert to the previous behavior if needed.
- Drops
python3.9supports - Adds official
python3.14support - Allow
--mypy-testing-baseto be relative by resolvingexecution_pathbeforecd, #168
- Fixes how
__line__attribute is set, #181 - Remove cache files created for namespace packages, #180
- Drops
python3.8support - Adds official
python3.13support
- Fixes regex for colon output
:, #155 - Fixes internal error with
TraceLastReprEntry, #154
- Fix joining
tomlconfigs with[[mypy.overrides]]
- Make sure that schema is open by default: only check existing fields
- Add
--mypy-schema-closedoption to check schemas with no extra fields
- Add
python3.12support - Add
mypy@1.8.0support - Add schema definition
- Breaking: Drop python3.7 support
- Add
pyproject.tomlconfig file support with--mypy-pyproject-toml-fileoption
- Add
tox.inifile tosdistpackage - Add
requirements.txtfile tosdistpackage - Add
pyproject.tomlfile tosdistpackage
- Use
jinja2instead ofchevronfor templating - Allow parametrizing
mypy_configfield in tests - Bump minimal
mypyandpytestversions
- Also include
mypy.iniandpytest.initosdistpackage
- Adds
tests/subfolder tosdistpackage
- Adds
python3.11support and promise aboutpython3.12support - Removes
pkg_resourcesto usepackaginginstead
- Removes unused depenencies for
python < 3.7 - Fixes compatibility with pytest 7.2, broken due to a private import from
py._path.
- Changes how
mypy>=0.970handlesMYPYPATH - Bumps minimal
mypyversion tomypy>=0.970 - Drops
python3.6support
- Fixes
DeprecationWarningfor usingpy.LocalPathforpytest>=7.0#89
- Removes usages of
distutils#71 - Fixes multiline messages #66
- Fixes that empty output test cases was almost ignored #63
- Fixes output formatting for expected messages #66
- Fixes that
regexanddataclassesdependencies were not listed insetup.py
- Adds
regexsupport in matching test output - Adds a flag for expected failures
- Replaces deprecated
pystachewithchevron
- Updates
mypy
We missed this released by mistake.
- Adds
--mypy-only-local-stubCLI flag to ignore errors in site-packages
- Changes how
MYPYPATHandPYTHONPATHare calcualted. We now expand$PWDvariable and also include relative paths specified inenv:section
- Adds
python3.9support - Bumps required version of
pytestto>=6.0 - Bumps required version of
mypyto>=0.790
- Moves from Travis to Github Actions
- Adds
PYTHONPATHandMYPYPATHspecial handling