Skip to content

fix(deps): update dependency cryptography to v50 - #131

Merged
IceCodeNew merged 1 commit into
masterfrom
renovate/cryptography-50.x
Aug 4, 2026
Merged

fix(deps): update dependency cryptography to v50#131
IceCodeNew merged 1 commit into
masterfrom
renovate/cryptography-50.x

Conversation

@renovate

@renovate renovate Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Type Update Change OpenSSF
cryptography (changelog) project.dependencies major >=45,<50>=50,<51 OpenSSF Scorecard

Release Notes

pyca/cryptography (cryptography)

v50.0.0

Compare Source


Configuration

📅 Schedule: (in timezone Asia/Shanghai)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
renovate Bot force-pushed the renovate/cryptography-50.x branch from ce582b1 to 54cabe2 Compare August 4, 2026 02:26
@codecov

codecov Bot commented Aug 4, 2026

Copy link
Copy Markdown

Codecov Report

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

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #131   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          139       139           
  Lines        13510     13510           
  Branches       785       785           
=========================================
  Hits         13510     13510           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

IceCodeNew added a commit that referenced this pull request Aug 4, 2026
…136)

PR #134 enabled all stable ruff rules, which left 13 lint errors on
`master` and blocked renovate PR #131 (and every other PR). This fixes
them on a fresh branch off `master`.

## Findings

| Rule | Count | Resolution |
| --- | --- | --- |
| `PLR0917` too many positional args | 8 | structural fixes (see below)
|
| `ISC004` unparenthesized string concat in collection | 3 | wrapped in
parens |
| `RUF100` unused `BLE001` noqa | 2 | removed (ruff 0.16 no longer flags
those sites) |

## PLR0917 — fixed by structure, not suppression

The feedback on an earlier attempt was to avoid extending `noqa`
whitelists where a real fix exists. Each site was evaluated
individually:

- **service-status state store + protocol**
(`observe_service_status_message` /
`mark_service_status_message_handled`): the monitor was hand-unpacking
five `message` fields into every call. The store now takes the
`ServiceStatusMessage` object directly. This removes the unpacking
smell, not just the lint. Removes `# noqa: PLR0913` entirely.
- **`BriefingService.__init__`**: made keyword-only — the only
production call site (`cli.py`) now wires collaborators by name.
- **`ServiceStatusMonitor.__init__`**: the optional `language` flag
moves to keyword-only (idiomatic for defaulted params); 3 call sites
updated.
- **`test_factory_normalizes_provider_native_request_errors`**:
parametrize dimensions moved to keyword-only (pytest 9 supports this).
- **`_briefing_service` test factory**: **the only `PLR0917` suppression
kept**, with an inline justification. It mirrors `BriefingService` but
has 37 positional call sites across `test_service.py`; forcing
keyword-only there would be disproportional churn with no structural
benefit.

## Infra

Also bumps the prek ruff hook to v0.16.0 to match the uv lockfile, so
local hooks and CI agree on whether `BLE001` fires (the root cause of
the `RUF100` findings).

## Verification

- `uv run ruff check .` — clean
- `prek run --all-files` — clean
- `uv run pytest --cov --cov-branch` — 1338 passed; coverage unaffected
(pure refactor, no tests removed)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Refactor**
* Improved service-status message handling for more consistent
validation and persistence.
* Standardized service configuration and language settings to reduce
setup ambiguity.
* Preserved existing briefing, notification, geocoding, and
service-status behavior.

* **Chores**
* Updated development linting tools and streamlined code quality checks.

* **Tests**
* Refined automated coverage to reflect the updated service and
message-handling interfaces.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
@renovate
renovate Bot force-pushed the renovate/cryptography-50.x branch from 54cabe2 to 919109d Compare August 4, 2026 03:04
@IceCodeNew
IceCodeNew merged commit 91abbb4 into master Aug 4, 2026
18 of 29 checks passed
@IceCodeNew
IceCodeNew deleted the renovate/cryptography-50.x branch August 4, 2026 03:05
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.

1 participant