Skip to content

[pre-commit.ci] pre-commit autoupdate #28003

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 1, 2024
Merged

Conversation

updates:
- [github.com/pre-commit/mirrors-mypy: v1.8.0 → v1.9.0](pre-commit/mirrors-mypy@v1.8.0...v1.9.0)
- [github.com/pycqa/flake8: 6.1.0 → 7.0.0](PyCQA/flake8@6.1.0...7.0.0)
- [github.com/adrienverge/yamllint: v1.29.0 → v1.35.1](adrienverge/yamllint@v1.29.0...v1.35.1)
- [github.com/python-jsonschema/check-jsonschema: 0.28.0 → 0.28.1](python-jsonschema/check-jsonschema@0.28.0...0.28.1)
@QuLogic
Copy link
Member

QuLogic commented Apr 1, 2024

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 @final class without __bool__ cannot have falsey instances (Ilya Priven, PR 16566)
  • Do not allow TypedDict classes 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_only support for TypedDict and NamedTuple (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 super checks 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_only decorator (Nikita Sobolev, PR 16422)
  • Warn about missing __del__ (Shantanu, PR 16456)
  • Fix crashes with some uses of final and deprecated (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

New Dependency Information

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-file inside rules
  • Rule quoted-strings: fix only-when-needed in flow maps and sequences
  • Rule key-duplicates: add forbid-duplicated-merge-keys option
  • Rule quoted-strings: add check-keys option
  • 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: add forbid-in-block-sequences option

1.32.0 (2023-05-22)

  • Look for configuration file in parent directories
  • Rule anchors: add new option forbid-unused-anchors

1.31.0 (2023-04-21)

  • Build: migrate from setup.py to pyproject.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 null filepath
  • 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)

Copy link
Member

@QuLogic QuLogic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything appears to pass.

@ksunden ksunden merged commit acfef85 into main Apr 1, 2024
53 of 55 checks passed
@ksunden ksunden deleted the pre-commit-ci-update-config branch April 1, 2024 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants