[pre-commit.ci] pre-commit autoupdate by pre-commit-ci[bot] · Pull Request #28003 · matplotlib/matplotlib
Below are all changelogs:
Mypy 1.8
We’ve just uploaded mypy 1.8 to the Python Package Index (PyPI). Mypy is a static type checker for Python. This release includes new features, performance improvements and bug fixes. You can install it as follows:
python3 -m pip install -U mypy
You can read the full documentation for this release on Read the Docs.
Type-checking Improvements
- Do not intersect types in isinstance checks if at least one is final (Christoph Tyralla, PR 16330)
- Detect that
@finalclass without__bool__cannot have falsey instances (Ilya Priven, PR 16566) - Do not allow
TypedDictclasses with extra keywords (Nikita Sobolev, PR 16438) - Do not allow class-level keywords for
NamedTuple(Nikita Sobolev, PR 16526) - Make imprecise constraints handling more robust (Ivan Levkivskyi, PR 16502)
- Fix strict-optional in extending generic TypedDict (Ivan Levkivskyi, PR 16398)
- Allow type ignores of PEP 695 constructs (Shantanu, PR 16608)
- Enable
type_check_onlysupport forTypedDictandNamedTuple(Nikita Sobolev, PR 16469)
Performance Improvements
- Add fast path to analyzing special form assignments (Jukka Lehtosalo, PR 16561)
Improvements to Error Reporting
- Don't show documentation links for plugin error codes (Ivan Levkivskyi, PR 16383)
- Improve error messages for
superchecks and add more tests (Nikita Sobolev, PR 16393) - Add error code for mutable covariant override (Ivan Levkivskyi, PR 16399)
Stubgen Improvements
- Preserve simple defaults in function signatures (Ali Hamdan, PR 15355)
- Include
__all__in output (Jelle Zijlstra, PR 16356) - Fix stubgen regressions with pybind11 and mypy 1.7 (Chad Dombrova, PR 16504)
Stubtest Improvements
- Improve handling of unrepresentable defaults (Jelle Zijlstra, PR 16433)
- Print more helpful errors if a function is missing from stub (Alex Waygood, PR 16517)
- Support
@type_check_onlydecorator (Nikita Sobolev, PR 16422) - Warn about missing
__del__(Shantanu, PR 16456) - Fix crashes with some uses of
finalanddeprecated(Shantanu, PR 16457)
Fixes to Crashes
- Fix crash with type alias to
Callable[[Unpack[Tuple[Any, ...]]], Any](Alex Waygood, PR 16541) - Fix crash on TypeGuard in
__call__(Ivan Levkivskyi, PR 16516) - Fix crash on invalid enum in method (Ivan Levkivskyi, PR 16511)
- Fix crash on unimported Any in TypedDict (Ivan Levkivskyi, PR 16510)
Documentation Updates
- Update soft-error-limit default value to -1 (Sveinung Gundersen, PR 16542)
- Support Sphinx 7.x (Michael R. Crusoe, PR 16460)
Other Notable Changes and Fixes
- Allow mypy to output a junit file with per-file results (Matthew Wright, PR 16388)
Typeshed Updates
Please see git log for full list of standard library typeshed stub changes.
Acknowledgements
Thanks to all mypy contributors who contributed to this release:
- Alex Waygood
- Ali Hamdan
- Chad Dombrova
- Christoph Tyralla
- Ilya Priven
- Ivan Levkivskyi
- Jelle Zijlstra
- Jukka Lehtosalo
- Marcel Telka
- Matthew Wright
- Michael R. Crusoe
- Nikita Sobolev
- Ole Peder Brandtzæg
- robjhornby
- Shantanu
- Sveinung Gundersen
- Valentin Stanciu
I’d also like to thank my employer, Dropbox, for supporting mypy development.
Posted by Wesley Collin Wright
flake8 7.0.0 -- 2024-01-04
You can view the 7.0.0 milestone on GitHub for more details.
Backwards Incompatible Changes
- Remove
--include-in-doctestand--exclude-from-doctestoptions.
(See also Remove--include-in-doctest/--exclude-from-doctestPyCQA/flake8#1747, remove --include-in-doctest and --exclude-in-doctest PyCQA/flake8#1854)
New Dependency Information
- Pyflakes has been updated to >= 3.2.0, < 3.3.0 (See also upgrade pyflakes to 3.2.x PyCQA/flake8#1906).
yamllint
1.35.1 (2024-02-16)
- Restore ignoration of files passed as command-line arguments
- Revert API change from version 1.35.0
1.35.0 (2024-02-15)
- Fix failure on broken symlinks that should be ignored
- API change:
linter.run(stream, config)doesn't filter files anymore - Docs: Restore official Read the Docs theme
1.34.0 (2024-02-06)
- Config: validate
ignore-from-fileinside rules - Rule
quoted-strings: fixonly-when-neededin flow maps and sequences - Rule
key-duplicates: addforbid-duplicated-merge-keysoption - Rule
quoted-strings: addcheck-keysoption - Docs: add GitLab CI example
- Rule
truthy: adapt forbidden values based on YAML version
1.33.0 (2023-11-09)
- Add support for Python 3.12, drop support for Python 3.7
- Rule
document-end: fix spurious "missing document end" - Rule
empty-values: addforbid-in-block-sequencesoption
1.32.0 (2023-05-22)
- Look for configuration file in parent directories
- Rule
anchors: add new optionforbid-unused-anchors
1.31.0 (2023-04-21)
- Build: migrate from
setup.pytopyproject.toml - Docs: update some outdated URLs
- Rule
colons: prevent error when space before is mandatory
1.30.0 (2023-03-22)
- Rule
anchors: add new rule to detect undeclared or duplicated anchors - Python API: prevent using
is_file_ignored()with nullfilepath - Docs: fix misleading Python API example
- Docs: fix plain text code snippet example
- Docs: update pre-commit hook example
check-jsonschema 0.28.1
- Update vendored schemas: buildkite, cloudbuild, dependabot, github-actions,
github-workflows, gitlab-ci, renovate, woodpecker-ci (2024-03-31)