Bump the dev-dependencies group with 2 updates by dependabot[bot] · Pull Request #112 · bretterer/rivian-python-client
Bumps the dev-dependencies group with 2 updates: mypy and ruff.
Updates mypy from 1.11.2 to 1.13.0
Changelog
Sourced from mypy's changelog.
Mypy Release Notes
Next release
Change to enum membership semantics
As per the updated typing specification for enums, enum members must be left unannotated.
class Pet(Enum): CAT = 1 # Member attribute DOG = 2 # Member attribute WOLF: int = 3 # New error: Enum members must be left unannotated species: str # Considered a non-member attributeIn particular, the specification change can result in issues in type stubs (
.pyifiles), since historically it was common to leave the value absent:# In a type stub (.pyi file) class Pet(Enum): # Change in semantics: previously considered members, now non-member attributes CAT: int DOG: int # Mypy will now issue a warning if it detects this situation in type stubs: # > Detected enum "Pet" in a type stub with zero members. # > There is a chance this is due to a recent change in the semantics of enum membership. # > If so, use `member = value` to mark an enum member, instead of `member: type` class Pet(Enum): # As per the specification, you should now do one of the following: DOG = 1 # Member attribute with value 1 and known type WOLF = cast(int, ...) # Member attribute with unknown value but known type LION = ... # Member attribute with unknown value and unknown typeContributed by Terence Honles in PR 17207 and Shantanu Jain in PR 18068.
Mypy 1.13
We’ve just uploaded mypy 1.13 to the Python Package Index (PyPI). Mypy is a static type checker for Python. You can install it as follows:
python3 -m pip install -U mypy
... (truncated)
Commits
eb31034Bump version to 1.13.02eeb588Update changelog for 1.12.1 (#17999)bc0386bChangelog for 1.13 (#18000)5c4d2dbAdd faster-cache extra, test in CI (#17978)854ad18Make is_sub_path faster (#17962)50aa4caSpeed up stubs suggestions (#17965)7c27808Use orjson instead of json, when available (#17955)2cd2406Use fast path in modulefinder more often (#17950)e20aaeeLet mypyc optimise os.path.join (#17949)159974cUse sha1 for hashing (#17953)- Additional commits viewable in compare view
Updates ruff from 0.6.8 to 0.7.2
Release notes
Sourced from ruff's releases.
0.7.2
Release Notes
Preview features
- Fix formatting of single with-item with trailing comment (#14005)
- [
pyupgrade] Add PEP 646Unpackconversion to*with fix (UP044) (#13988)Rule changes
- Regenerate
known_stdlibs.rswith stdlibs 2024.10.25 (#13963)- [
flake8-no-pep420] Skip namespace package enforcement for PEP 723 scripts (INP001) (#13974)Server
- Fix server panic when undoing an edit (#14010)
Bug fixes
- Fix issues in discovering ruff in pip build environments (#13881)
- [
flake8-type-checking] Fix false positive forsingledispatchmethod(TCH003) (#13941)- [
flake8-type-checking] Treat return type ofsingledispatchas runtime-required (TCH003) (#13957)Documentation
- [
flake8-simplify] Include caveats of enablingif-else-block-instead-of-if-exp(SIM108) (#14019)Install ruff 0.7.2
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/ruff/releases/download/0.7.2/ruff-installer.sh | shInstall prebuilt binaries via powershell script
powershell -ExecutionPolicy ByPass -c "irm https://github.com/astral-sh/ruff/releases/download/0.7.2/ruff-installer.ps1 | iex"Download ruff 0.7.2
File Platform Checksum ruff-aarch64-apple-darwin.tar.gz Apple Silicon macOS checksum ruff-x86_64-apple-darwin.tar.gz Intel macOS checksum ruff-aarch64-pc-windows-msvc.zip ARM64 Windows checksum ruff-i686-pc-windows-msvc.zip x86 Windows checksum ruff-x86_64-pc-windows-msvc.zip x64 Windows checksum
... (truncated)
Changelog
Sourced from ruff's changelog.
0.7.2
Preview features
- Fix formatting of single with-item with trailing comment (#14005)
- [
pyupgrade] Add PEP 646Unpackconversion to*with fix (UP044) (#13988)Rule changes
- Regenerate
known_stdlibs.rswith stdlibs 2024.10.25 (#13963)- [
flake8-no-pep420] Skip namespace package enforcement for PEP 723 scripts (INP001) (#13974)Server
- Fix server panic when undoing an edit (#14010)
Bug fixes
- Fix issues in discovering ruff in pip build environments (#13881)
- [
flake8-type-checking] Fix false positive forsingledispatchmethod(TCH003) (#13941)- [
flake8-type-checking] Treat return type ofsingledispatchas runtime-required (TCH003) (#13957)Documentation
- [
flake8-simplify] Include caveats of enablingif-else-block-instead-of-if-exp(SIM108) (#14019)0.7.1
Preview features
- Fix
E221andE222to flag missing or extra whitespace around==operator (#13890)- Formatter: Alternate quotes for strings inside f-strings in preview (#13860)
- Formatter: Join implicit concatenated strings when they fit on a line (#13663)
- [
pylint] Restrictiteration-over-setto only work on sets of literals (PLC0208) (#13731)Rule changes
- [
flake8-type-checking] Support auto-quoting when annotations contain quotes (#11811)Server
- Avoid indexing the workspace for single-file mode (#13770)
Bug fixes
- Make
ARG002compatible withEM101when raisingNotImplementedError(#13714)Other changes
- Introduce more Docker tags for Ruff (similar to uv) (#13274)
... (truncated)
Commits
11c3b52generate using cargo-dista388e49Temporary comment out certain release steps099f077[docs] Add rule short code to mkdocs tags (#14040)8574751Give non-existent files a durability of at least Medium (#14034)ddae741Switch touv publish(#14042)5053d2cDoc: markdown link fix (#14041)ef72fd7Bump version to 0.7.2 (#14039)658a51eFix typo for static method decorator (#14038)7c2da4fSync vendored typeshed stubs (#14030)48fa839Use named function in incremental red knot benchmark (#14033)- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore <dependency name> major versionwill close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)@dependabot ignore <dependency name> minor versionwill close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)@dependabot ignore <dependency name>will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)@dependabot unignore <dependency name>will remove all of the ignore conditions of the specified dependency@dependabot unignore <dependency name> <ignore condition>will remove the ignore condition of the specified dependency and ignore conditions