Skip to content

build(deps-dev): bump the dev group with 3 updates - #234

Merged
thorsten-klein merged 3 commits into
mainfrom
dependabot/uv/dev-d56162aa7d
Nov 22, 2026
Merged

thorsten-klein merged 3 commits into
mainfrom
dependabot/uv/dev-d56162aa7d

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 22, 2026

Copy link
Copy Markdown
Contributor

Bumps the dev group with 3 updates: complexipy, ruff and types-pyyaml.

Updates complexipy from 8.3.0 to 9.0.0

Release notes

Sourced from complexipy's releases.

9.0.0

Major release: scores follow more of the cognitive complexity paper. Comprehensions, loop and try else, mixed boolean operators, nested definitions, the decorator exception, recursion cycles, and conditional expressions anywhere in an expression are now scored as the paper prescribes. On the django source tree, 1,946 of 30,813 functions change score: 1,481 go down and 465 go up, and the total drops by 7%. The release also adds editor quick fixes, workspace-wide diagnostics, --fix for C005, --explain, rule groups, --force-exclude, and --output -. --plain lines now carry the line number, and every warning goes to stderr. Re-run complexipy after upgrading, review your thresholds and snapshots, and check the migration guide.

Added

  • --diff, --diff-only, and --staged list, below the diff table, each function that an ignore comment hides now but did not hide at the reference, as path:line function score, the score taken with the comment disregarded. The list never changes the exit code, and --quiet hides it. (#327)
  • Each JSON entry carries line_start, line_end, and line_complexities: the lines that add to the score, one entry per line in line order, whose complexity values sum to the function's complexity. Two functions with one name in one file are now told apart by their lines. CSV, GitLab, and SARIF output do not change. (#325)
  • --output - writes the report to stdout when exactly one --output-format is selected, so complexipy . --output-format json --output - | jq . works. stdout then holds only the report: the console output is suppressed as with --quiet, and warnings and errors go to stderr. The exit code is the same as with a file. With two or more formats, --output - fails before the analysis runs. (#324)
  • The language server answers textDocument/codeAction with one code action per refactoring suggestion of each function over the threshold in the requested range. A suggestion --fix would apply is a quick fix that rewrites the buffer in one edit built by the same fix engine; any other suggestion is a disabled refactor action with its help text as the reason, and never edits. Each title states the reduction, or says it is not measured. The threshold diagnostic now links to its documentation through codeDescription. (#254)
  • --select, --ignore, and the select and ignore configuration keys accept a rule group: complexity or readability. A group stands for every refactoring rule of that category, and mixes with rule ids, as in --select complexity,C007. A group name prints no unknown-rule warning. (#205)
  • The language server publishes diagnostics for files that are not open when [lsp] workspace-diagnostics = true. It scans each workspace folder with the same file discovery and exclusion as complexipy, and refreshes a file when it is closed or changes on disk. The setting is off by default. A client that supports dynamic file watching now also reports .py changes to the server, which ignores them while the setting is off. (#256)
  • --explain <rule> prints a refactoring rule's id, name, category, applicability, description, and documentation link, and exits without running an analysis. An unknown rule id exits with an error that lists the valid ids. (#207)
  • --fix applies C005 (extract predicate). It inserts the helper above the module-level def or class that holds the function and rewrites the condition into a call. It does so only when every name the condition reads is sure to be bound; other conditions keep the snippet for hand application. C005 reduction is measured when the fix applies. CodeSuggestion gains insertions, a list of the new CodeInsertion type, and the JSON output gains the insertions key. (#263)
  • --force-exclude, also force-exclude = true in the configuration, applies exclude patterns to files passed explicitly as arguments. Without it, an explicit file is analyzed as before. Pass it under pre-commit, which names each changed file, so the configured exclude applies there. (#293)
  • The configuration schema is in the SchemaStore catalog, so a TOML language server such as Taplo completes and validates complexipy.toml, .complexipy.toml, and [tool.complexipy] in pyproject.toml with no #:schema line. (#270)

Changed (scoring)

  • Comprehension for and if clauses add nothing and no longer raise the nesting level, since a comprehension is shorthand for a loop. else on for, while, and try adds +1 with no nesting increment, and its body raises the nesting level, like else after if: the paper's hybrid increment. Mixed boolean operators are read left to right, so a or b and c or d scores 3 instead of 2. Scores drop for code with comprehensions and rise for loop and try else. Some mixed conditions score higher and some lower: (a or (b and c)) and d goes from 3 to 2. (#342, #351)
  • Each function in a recursion cycle adds +1: indirect cycles (a calls b, b calls a), methods that call self.m() or cls.m(), and nested functions, whose +1 goes to the enclosing function, as the paper prescribes. Calls resolve within one file, by the rules in Understanding Complexity Scores. A method that calls a bare name equal to its own, such as def get(self): return get(x), no longer scores as recursive. (#340)
  • A call through the class name, such as K.s() in a static method of K, now counts toward a recursion cycle when K names exactly one class of the file and no other binding of K can replace it. (#354, #363)
  • A bare-name call no longer counts as recursion when another binding hides the function, such as a parameter, an assignment, or an import, so def f(f): return f() scores 0. When a scope binds the name both by def and another way, the call counts only if the other binding always runs first: f = 1 before def f keeps the +1, and f = wrap(f) after it removes it. (#361)
  • A recursive call inside a lambda, or in the decorators, default arguments, bases, or class body of a definition nested in a function, now counts for the enclosing function. Lambda parameters, comprehension variables, and type parameters hide outer names, so lambda f: f() inside f is not recursive. (#349)
  • A nested function raises the nesting level of its body wherever it sits, under if, for, while, with, try, match, or in a class, as the paper prescribes. Before, only a def placed directly in a function body did. A class body inside a function is now scored in full, and a class does not raise the nesting level itself. With --check-script, the body of a module-level class counts toward <module>; method bodies do not. (#339)
  • The Python decorator exception applies only when a function returns its nested function, by name or as a direct argument of a call such as functools.wraps(f)(inner), so return inner() no longer drops the nesting increment. A leading docstring no longer stops the exception, and the expressions in the return now count. (#341, #353)
  • A conditional expression, a boolean operator sequence, or a comprehension in a case guard now counts, at the nesting level of the match. The guard itself adds nothing, unlike the +1 of an elif. A complex guard can get a C005 plan with help text. (#338, #352)
  • The decorators and defaults of a module-level def, the decorators, bases, and keywords of a module-level class, and the headers of their direct methods now count toward module scope: the <module> entry with --check-script, and the file total without it. This also holds for an ignored function. Function scores do not change. (#338)
  • A conditional expression, a boolean operator sequence, or a comprehension now counts in more statement parts: assignment, augmented assignment, annotated assignment, del, for, and with ... as targets, the match subject, and except types. The decorators and defaults of a nested def, and the decorators, bases, and keywords of a nested class, count toward the enclosing function at the nesting level of the definition. Scores of functions that hold these sites go up. A complex match subject or except type can now get a C005 plan, with help text and no suggestion. (#336)

Changed (CLI and output)

  • --plain prints each function as <path>:<line> <function> <complexity>, so editors and terminals can link to the line. With --suggest-refactors, each plan adds an indented line with its rule id, title, and reduction, for example C007 Merge 3 nested if statements (-4); a ~ marks an estimated reduction. Scripts that parse the first field of a --plain line now get :<line> after the path. (#326)
  • The C005 helper no longer carries a -> bool annotation, because and and or return an operand, not a bool. (#263)
  • Every CLI warning prints to stderr, and --quiet no longer hides warnings: it hides the report only. The --diff and --staged warnings moved from stdout to stderr, so they no longer mix with a report that another tool reads from a pipe. (#294)

Performance

  • The aarch64 musllinux wheel allocates with mimalloc, like the x86_64 one. On the django source tree it runs about 4 to 5 times faster. (#303)

Fixed

  • A conditional expression counts wherever it sits inside an expression. It used to count only as a statement's value, a positional argument, or an element of a list, tuple, set, or dict value, and counted 0 in a keyword argument, a dict key, a method chain, an attribute, a subscript, a binary operation, an await, an f-string, a called lambda, a lambda parameter default, or an operand of -, ~, not, and, or or, so f(k=a if b else c) scored 0. Boolean operator sequences and comprehensions in the same places count too, so (a or b) + 1 now scores 1. Scores rise for functions that use these forms. Thanks to @​glictevo. (#334, #335)
  • The x86_64 musllinux wheel imports again. In 8.3.0 it failed on import with initial-exec TLS resolves to dynamic definition, because mimalloc used a thread-local storage model that musl cannot load from a Python extension. (#311)

Documentation

  • A new AI Agent Workflows page shows how to run complexipy from coding-agent hooks. Thanks to @​anhaoXie. (#330)
  • The home page shows what complexipy does, and the usage guide is split into focused pages. (#322, #323)
  • The ruff comparison and the scores page show the scores this release computes. (#348)

... (truncated)

Changelog

Sourced from complexipy's changelog.

[9.0.0] - 2026-11-12

!!! note "Migration"

This release applies more of the cognitive complexity paper's rules, so
scores change. On the django source tree, 1,946 of 30,813 functions change
score: 1,481 go down and 465 go up, and the total of all files drops by 7%.
Re-run `complexipy` after upgrading and review your thresholds and
snapshots. Scripts that read `--plain` output, or warnings on stdout, also
need a change. See the
[migration guide](https://complexipy.com/migration/) for upgrade
guidance.

Added

  • --diff, --diff-only, and --staged list, below the diff table, each function that an ignore comment hides now but did not hide at the reference, as path:line function score, the score taken with the comment disregarded. The list never changes the exit code, and --quiet hides it (#327).
  • Each JSON entry carries line_start, line_end, and line_complexities: the lines that add to the score, one entry per line in line order, whose complexity values sum to the function's complexity. Two functions with one name in one file are now told apart by their lines. CSV, GitLab, and SARIF output do not change (#325).
  • --output - writes the report to stdout when exactly one --output-format is selected, so complexipy . --output-format json --output - | jq . works. stdout then holds only the report: the console output is suppressed as with --quiet, and warnings and errors go to stderr. The exit code is the same as with a file. With two or more formats, --output - fails before the analysis runs (#324).
  • The language server answers textDocument/codeAction with one code action per refactoring suggestion of each function over the threshold in the requested range. A suggestion --fix would apply is a quick fix that rewrites the buffer in one edit built by the same fix engine; any other suggestion is a disabled refactor action with its help text as the reason, and never edits. Each title states the reduction, or says it is not measured. The threshold diagnostic now links to its documentation through codeDescription (#254).
  • --select, --ignore, and the select and ignore configuration keys accept a rule group: complexity or readability. A group stands for every refactoring rule of that category, and mixes with rule ids, as in --select complexity,C007. A group name prints no unknown-rule warning (#205).
  • The language server publishes diagnostics for files that are not open when [lsp] workspace-diagnostics = true. It scans each workspace folder with the same file discovery and exclusion as complexipy, and refreshes a file when it is closed or changes on disk. The setting is off by default. A client that supports dynamic file watching now also reports .py changes to the

... (truncated)

Commits
  • c8a9cf3 Merge pull request #372 from rohaquinlop/fix-linux-tests-runner
  • efec47c fix(ci): run the linux release unit tests on ubuntu-24.04
  • a877c69 Merge pull request #371 from rohaquinlop/fix-i686-runner
  • dbd9099 test(cli): assert the exit code of the dry-run snapshot test
  • fba4add fix(ci): build the i686 wheel on ubuntu-24.04
  • 5857ff7 Merge pull request #370 from rohaquinlop/release-9.0.0
  • 7a9bc10 docs(changelog): release 9.0.0
  • 6f381e6 docs(changelog): list the 9.0.0 docs changes and drop the shipped Git note
  • 7ff7b12 Merge pull request #369 from rohaquinlop/docs-en-es-consistency-review
  • 7e28d37 docs(es): unify terms and fix wording and decimal format
  • Additional commits viewable in compare view

Updates ruff from 0.17.4 to 0.17.5

Release notes

Sourced from ruff's releases.

0.17.5

Release Notes

Released on 2026-11-12.

Preview features

  • Redirect renamed rules (#30081)
  • [flake8-async] Implement pytest-raises-exception-group (ASYNC401) (#28772)
  • [flake8-logging-format] Mark G004 fix as unsafe (#30087)
  • [pylint] Implement no-method-argument (PLE0211) (#29748)
  • [refurb] Do not offer fix when write is nested in an expression (FURB103) (#29789)
  • [ruff] Add renamed-rule (RUF202) (#30079)
  • [ruff] Expand redirected-noqa to other suppression comments (RUF101) (#30078)

Bug fixes

  • Avoid crashing when Ruff logs to a closed stderr pipe (#30209)
  • Fix fixes that add or remove a keyword argument with a parenthesized value (#30189)
  • [flake8-import-conventions] Avoid shadowing names when fixing import aliases (ICN001) (#30035)
  • [flake8-bugbear] Fix B010 autofix for parenthesized setattr calls (#30168)
  • [flake8-pyi] Fix PYI034 autofix for parenthesized self annotations (#30173)
  • [pyupgrade] Fix UP031 duplicating closing parentheses around the format string (#30172)

Rule changes

  • [flake8-bugbear] Ignore frozen dataclass instantiations (B008) (#29231)

Performance

Other changes

  • Fix FreeBSD source builds with libc 0.2.190 (#30176)

Contributors

... (truncated)

Changelog

Sourced from ruff's changelog.

0.17.5

Released on 2026-11-12.

Preview features

  • Redirect renamed rules (#30081)
  • [flake8-async] Implement pytest-raises-exception-group (ASYNC401) (#28772)
  • [flake8-logging-format] Mark G004 fix as unsafe (#30087)
  • [pylint] Implement no-method-argument (PLE0211) (#29748)
  • [refurb] Do not offer fix when write is nested in an expression (FURB103) (#29789)
  • [ruff] Add renamed-rule (RUF202) (#30079)
  • [ruff] Expand redirected-noqa to other suppression comments (RUF101) (#30078)

Bug fixes

  • Avoid crashing when Ruff logs to a closed stderr pipe (#30209)
  • Fix fixes that add or remove a keyword argument with a parenthesized value (#30189)
  • [flake8-import-conventions] Avoid shadowing names when fixing import aliases (ICN001) (#30035)
  • [flake8-bugbear] Fix B010 autofix for parenthesized setattr calls (#30168)
  • [flake8-pyi] Fix PYI034 autofix for parenthesized self annotations (#30173)
  • [pyupgrade] Fix UP031 duplicating closing parentheses around the format string (#30172)

Rule changes

  • [flake8-bugbear] Ignore frozen dataclass instantiations (B008) (#29231)

Performance

Other changes

  • Fix FreeBSD source builds with libc 0.2.190 (#30176)

Contributors

Commits

Updates types-pyyaml from 6.0.12.20261111 to 6.0.12.20261113

Commits

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 rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore <dependency name> major version will 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 version will 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

Bumps the dev group with 3 updates: [complexipy](https://github.com/rohaquinlop/complexipy), [ruff](https://github.com/astral-sh/ruff) and [types-pyyaml](https://github.com/python/typeshed).


Updates `complexipy` from 8.3.0 to 9.0.0
- [Release notes](https://github.com/rohaquinlop/complexipy/releases)
- [Changelog](https://github.com/rohaquinlop/complexipy/blob/main/CHANGELOG.md)
- [Commits](rohaquinlop/complexipy@8.3.0...9.0.0)

Updates `ruff` from 0.17.4 to 0.17.5
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](astral-sh/ruff@0.17.4...0.17.5)

Updates `types-pyyaml` from 6.0.12.20261111 to 6.0.12.20261113
- [Commits](https://github.com/python/typeshed/commits)

---
updated-dependencies:
- dependency-name: complexipy
  dependency-version: 9.0.0
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: dev
- dependency-name: ruff
  dependency-version: 0.17.5
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: dev
- dependency-name: types-pyyaml
  dependency-version: 6.0.12.20261113
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: dev
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot requested a review from thorsten-klein as a code owner November 22, 2026 09:34
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python:uv Pull requests that update python:uv code labels Nov 22, 2026
complexipy 9 counts more. Seven functions went over the limit.
Small helpers bring them back under it.
A new filters.filtered_view replaces three copies of the same check.
Dependabot PRs get no secrets, so the scan fails there.
@codecov

codecov Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (e51ba8e) to head (488dee1).
⚠️ Report is 2 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##              main      #234   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           51        51           
  Lines         3474      3481    +7     
=========================================
+ Hits          3474      3481    +7     
Files with missing lines Coverage Δ
src/git_nested/cli/parser.py 100.00% <100.00%> (ø)
src/git_nested/cli/setup.py 100.00% <100.00%> (ø)
src/git_nested/commands/diff.py 100.00% <100.00%> (ø)
src/git_nested/commands/fetch.py 100.00% <100.00%> (ø)
src/git_nested/commands/status.py 100.00% <100.00%> (ø)
src/git_nested/commands/verify.py 100.00% <100.00%> (ø)
src/git_nested/content.py 100.00% <100.00%> (ø)
src/git_nested/filters.py 100.00% <100.00%> (ø)
src/git_nested/gitfile.py 100.00% <100.00%> (ø)

@sonarqubecloud

Copy link
Copy Markdown

@thorsten-klein
thorsten-klein merged commit 93d44b4 into main Nov 22, 2026
15 checks passed
@thorsten-klein
thorsten-klein deleted the dependabot/uv/dev-d56162aa7d branch November 22, 2026 11:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python:uv Pull requests that update python:uv code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant