build(deps): bump the test-and-lint-dependencies group across 1 directory with 3 updates
Type: Pull Request
State: Open
Association: Contributor
Comments: 2
(11 months ago)
(10 months ago)
dependencies python
Bumps the test-and-lint-dependencies group with 3 updates in the / directory: ruff, mypy and zizmor.
Updates ruff from 0.12.0 to 0.12.3
Release notes
Sourced from ruff's releases.
0.12.3
Release Notes
Preview features
- [
flake8-bugbear] Support non-context-manager calls inB017(#19063)- [
flake8-use-pathlib] Add autofixes forPTH100,PTH106,PTH107,PTH108,PTH110,PTH111,PTH112,PTH113,PTH114,PTH115,PTH117,PTH119,PTH120(#19213)- [
flake8-use-pathlib] Add autofixes forPTH203,PTH204,PTH205(#18922)Bug fixes
- [
flake8-return] Fix false-positive for variables used inside nested functions inRET504(#18433)- Treat form feed as valid whitespace before a line continuation (#19220)
- [
flake8-type-checking] Fix syntax error introduced by fix (TC008) (#19150)- [
pyupgrade] Keyword arguments insupershould suppress theUP008fix (#19131)Documentation
- [
flake8-pyi] Make example error out-of-the-box (PYI007,PYI008) (#19103)- [
flake8-simplify] Make example error out-of-the-box (SIM116) (#19111)- [
flake8-type-checking] Make example error out-of-the-box (TC001) (#19151)- [
flake8-use-pathlib] Make example error out-of-the-box (PTH210) (#19189)- [
pycodestyle] Make example error out-of-the-box (E272) (#19191)- [
pycodestyle] Make example not raise unnecessarySyntaxError(E114) (#19190)- [
pydoclint] Make example error out-of-the-box (DOC501) (#19218)- [
pylint,pyupgrade] Fix syntax errors in examples (PLW1501,UP028) (#19127)- [
pylint] Updatemissing-maxsplit-argdocs and error to suggest proper usage (PLC0207) (#18949)- [
flake8-bandit] Make example error out-of-the-box (S412) (#19241)Contributors
... (truncated)
Changelog
Sourced from ruff's changelog.
0.12.3
Preview features
- [
flake8-bugbear] Support non-context-manager calls inB017(#19063)- [
flake8-use-pathlib] Add autofixes forPTH100,PTH106,PTH107,PTH108,PTH110,PTH111,PTH112,PTH113,PTH114,PTH115,PTH117,PTH119,PTH120(#19213)- [
flake8-use-pathlib] Add autofixes forPTH203,PTH204,PTH205(#18922)Bug fixes
- [
flake8-return] Fix false-positive for variables used inside nested functions inRET504(#18433)- Treat form feed as valid whitespace before a line continuation (#19220)
- [
flake8-type-checking] Fix syntax error introduced by fix (TC008) (#19150)- [
pyupgrade] Keyword arguments insupershould suppress theUP008fix (#19131)Documentation
- [
flake8-pyi] Make example error out-of-the-box (PYI007,PYI008) (#19103)- [
flake8-simplify] Make example error out-of-the-box (SIM116) (#19111)- [
flake8-type-checking] Make example error out-of-the-box (TC001) (#19151)- [
flake8-use-pathlib] Make example error out-of-the-box (PTH210) (#19189)- [
pycodestyle] Make example error out-of-the-box (E272) (#19191)- [
pycodestyle] Make example not raise unnecessarySyntaxError(E114) (#19190)- [
pydoclint] Make example error out-of-the-box (DOC501) (#19218)- [
pylint,pyupgrade] Fix syntax errors in examples (PLW1501,UP028) (#19127)- [
pylint] Updatemissing-maxsplit-argdocs and error to suggest proper usage (PLC0207) (#18949)- [
flake8-bandit] Make example error out-of-the-box (S412) (#19241)0.12.2
Preview features
- [
flake8-pyi] ExpandOptional[A]toA | None(PYI016) (#18572)- [
pyupgrade] MarkUP008fix safe if no comments are in range (#18683)Bug fixes
- [
flake8-comprehensions] FixC420to prepend whitespace when needed (#18616)- [
perflint] FixPERF403panic on attribute or subscription loop variable (#19042)- [
pydocstyle] FixD413infinite loop for parenthesized docstring (#18930)- [
pylint] FixPLW0108autofix introducing a syntax error when the lambda's body contains an assignment expression (#18678)- [
refurb] Fix false positive on empty tuples (FURB168) (#19058)- [
ruff] Allow morefieldcalls fromattrs(RUF009) (#19021)- [
ruff] Fix syntax error introduced for an empty string followed by a u-prefixed string (UP025) (#18899)Rule changes
... (truncated)
Commits
5bc81f2Bump 0.12.3 (#19279)6908e26Filterruff_linter::VERSIONout of SARIF output tests (#19280)25c4295[ty] Avoid stale diagnostics for open files diagnostic mode (#19273)426fa4b[ty] Add signature help provider to playground (#19276)b0b65c2[ty] Initial implementation of signature help provider (#19194)08bc6d2Add simple integration tests for all output formats (#19265)f2ae12b[flake8-return] Fix false-positive for variables used inside nested functio...965f415[ty] Add a--quietmode (#19233)83b5bbfTreat form feed as valid whitespace before a line continuation (#19220)87f6f08[ty] Makecheck_filea salsa query (#19255)- Additional commits viewable in compare view
Updates mypy from 1.16.1 to 1.17.0
Changelog
Sourced from mypy's changelog.
Mypy Release Notes
Next Release
Mypy 1.17
We’ve just uploaded mypy 1.17 to the Python Package Index (PyPI). Mypy is a static type checker for Python. This release includes new features and bug fixes. You can install it as follows:
python3 -m pip install -U mypyYou can read the full documentation for this release on Read the Docs.
Optionally Check That Match Is Exhaustive
Mypy can now optionally generate an error if a match statement does not match exhaustively, without having to use
assert_never(...). Enable this by using--enable-error-code exhaustive-match.Example:
# mypy: enable-error-code=exhaustive-matchimport enum
class Color(enum.Enum): RED = 1 BLUE = 2
def show_color(val: Color) -> None: # error: Unhandled case for values of type "Literal[Color.BLUE]" match val: case Color.RED: print("red")
This feature was contributed by Donal Burns (PR 19144).
Further Improvements to Attribute Resolution
This release includes additional improvements to how attribute types and kinds are resolved. These fix many bugs and overall improve consistency.
- Handle corner case: protocol/class variable/descriptor (Ivan Levkivskyi, PR 19277)
- Fix a few inconsistencies in protocol/type object interactions (Ivan Levkivskyi, PR 19267)
- Refactor/unify access to static attributes (Ivan Levkivskyi, PR 19254)
- Remove inconsistencies in operator handling (Ivan Levkivskyi, PR 19250)
- Make protocol subtyping more consistent (Ivan Levkivskyi, PR 18943)
... (truncated)
Commits
0260991Update version string3901aa2Updates to 1.17 changelog (#19436)7d13396Initial changelog for 1.17 release (#19427)a182decCombine the revealed types of multiple iteration steps in a more robust manne...ab4fd57Improve the handling of "iteration dependent" errors and notes in finally cla...09ba1f6[mypyc] Fix exception swallowing in async try/finally blocks with await (#19353)5c65e33[mypyc] Fix AttributeError in async try/finally with mixed return paths (#19361)934ec50Lessen dmypy suggest path limitations for Windows machines (#19337)a4801f9Type ignore comments erroneously marked as unused by dmypy (#15043)c3bfa0dHandle corner case: protocol vs classvar vs descriptor (#19277)- Additional commits viewable in compare view
Updates zizmor from 1.9.0 to 1.11.0
Release notes
Sourced from zizmor's releases.
v1.11.0
New Features 🌈🔗
- zizmor now has experimental support for IDE/editor integrations via zizmor --lsp; see the IDE integration documentation for more information (#984)
Enhancements 🌱🔗
- The bot-conditions audit now supports auto-fixes for many findings (#921)
- The bot-conditions audit now produces findings on triggers other than pull_request_target (#921)
Bug Fixes 🐛🔗
- Fixed a bug where zizmor would crash when attempting to extract subfeatures from features containing non-ASCII codepoints (#989)
v1.10.0
This is a huge new release, with multiple new features, enhancements, and bugfixes!
New Features 🌈🔗
New audit: anonymous-definition detects unnamed workflows and actions. Definitions without a name: field appear anonymously in the GitHub Actions UI, making them harder to distinguish (#937)
Many thanks to
@andrewpollackfor implementing this audit!Auto-fix mode: zizmor now experimentally supports --fix=[MODE], which enables the brand new auto-fix mode. This mode can automatically fix a subset of zizmor's findings. For this experimental release, auto-fixes are available for findings from the following audits:
artipacked: zizmor will attempt to add persist-credentials: false to actions/checkout steps that do not already have it.
template-injection: zizmor will attempt to rewrite run: blocks containing ${{ foo.bar }} to use ${FOO_BAR} instead, and will add an appropriate env: block to set FOO_BAR to the expression's evaluation.
Read more about the new auto-fix mode in the documentation.
Many thanks to
@mostafafor implementing this feature!Enhancements 🌱🔗
- The artipacked audit now produces findings on composite action definitions, rather than just workflow definitions (#896)
- The use-trusted-publishing audit now produces findings on composite action definitions, rather than just workflow definitions (#899)
- The bot-conditions audit now detects more spoofable actor checks, including checks against well-known user IDs for bot accounts (#905)
- The template-injection and other audits now produce more precise findings when analyzing env context accesses for static-ness (#911)
- The template-injection audit now produces more precise findings when analyzing inputs context accesses (#919)
- zizmor now produces more descriptive error messages when it fails to parse a workflow or action definition (#956)
- The bot-conditions audit now returns precise spans for flagged actor checks, instead of flagging the entire if: value (#949)
- The template-injection audit now returns precise spans for flagged contexts and expressions, instead of flagging the entire script block (#958)
- The obfuscation audit now returns precise spans for flagged expressions (#969)
- The obfuscation audit now detects computed indices (e.g. inputs.foo[inputs.bar]) as a potentially obfuscatory pattern (#969)
Bug Fixes 🐛🔗
- The template-injection audit no longer crashes when attempting to evaluate the static-ness of an environment context within a composite action uses: step (#887)
- The bot-conditions audit now correctly analyzes index-style contexts, e.g. github['actor'] (#905)
- Fixed a bug where zizmor would fail to parse expressions that contained >= or <= (#916)
- Fixed a bug where zizmor would fail to parse expressions containing contexts with interstitial whitespace (#958)
Changelog
Sourced from zizmor's changelog.
1.11.0
New Features 🌈
zizmornow has experimental support for IDE/editor integrations viazizmor --lsp; see the IDE integration documentation for more information (#984)Enhancements 🌱
- The [bot-conditions] audit now supports auto-fixes for many findings (#921)
- The [bot-conditions] audit now produces findings on triggers other than
pull_request_target(#921)Bug Fixes 🐛
- Fixed a bug where
zizmorwould crash when attempting to extract subfeatures from features containing non-ASCII codepoints (#989)1.10.0
This is a huge new release, with multiple new features, enhancements, and bugfixes!
New Features 🌈
New audit: [anonymous-definition] detects unnamed workflows and actions. Definitions without a
name:field appear anonymously in the GitHub Actions UI, making them harder to distinguish (#937)Many thanks to
@andrewpollackfor implementing this audit!Auto-fix mode:
zizmornow experimentally supports--fix=[MODE], which enables the brand new auto-fix mode. This mode can automatically fix a subset ofzizmor's findings. For this experimental release, auto-fixes are available for findings from the following audits:
[artipacked]:
zizmorwill attempt to add#!yaml persist-credentials: falsetoactions/checkoutsteps that do not already have it.[template-injection]:
zizmorwill attempt to rewrite#!yaml run:blocks containing${{ foo.bar }}to use${FOO_BAR}instead, and will add an appropriate#!yaml env:block to setFOO_BARto the expression's evaluation.Read more about the new auto-fix mode in the documentation.
Many thanks to
@mostafafor implementing this feature!Enhancements 🌱
... (truncated)
Commits
1cc8f93chore: release 1.11.0 (#993)44a27e2feat: LSP skeleton code from #607 (#984)5495af9chore(deps): bump the github-actions group with 3 updates (#990)86c4489chore(deps): bump the cargo group with 3 updates (#991)ac6f6e2bugfix: repro, #988 (#989)b98dcb1chore: remove descriptions from fixes (#985)42862ebAdd Fix for bot-conditions audit rule (#921)b7500d1refactor: move audit registration into AuditRegistry (#983)e90af3achore(deps): bump http-cache-reqwest to 0.16.0 (#982)ab905e1chore(deps): bump http-cache-reqwest to 0.15.2 (#980)- 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
Pull Request Statistics
0
0
+0
-0
Technical Details
| ID: | 3379550 |
| UUID: | 3230475790 |
| Node ID: | PR_kwDOAHkylc6e5NHY |
| Host: | GitHub |
| Repository: | theupdateframework/python-tuf |