pylint-dev/pylint (dev/pylint)
### [`v3.2.3`](https://togithub.com/pylint-dev/pylint/releases/tag/v3.2.3)
[Compare Source](https://togithub.com/pylint-dev/pylint/compare/v3.2.2...v3.2.3)
## False Positives Fixed
- Classes with only an Ellipsis (`...`) in their body do not trigger 'multiple-statements'
anymore if they are inlined (in accordance with black's 2024 style).
Closes [#9398](https://togithub.com/pylint-dev/pylint/issues/9398)
- Fix a false positive for `redefined-outer-name` when there is a name defined in an exception-handling block which shares the same name as a local variable that has been defined in a function body.
Closes [#9671](https://togithub.com/pylint-dev/pylint/issues/9671)
- Fix a false positive for `use-yield-from` when using the return value from the `yield` atom.
Closes [#9696](https://togithub.com/pylint-dev/pylint/issues/9696)
pytest-dev/pytest (dev/pytest)
### [`v8.2.2`](https://togithub.com/pytest-dev/pytest/releases/tag/8.2.2)
[Compare Source](https://togithub.com/pytest-dev/pytest/compare/8.2.1...8.2.2)
# pytest 8.2.2 (2024-06-04)
## Bug Fixes
- [#12355](https://togithub.com/pytest-dev/pytest/issues/12355): Fix possible catastrophic performance slowdown on a certain parametrization pattern involving many higher-scoped parameters.
- [#12367](https://togithub.com/pytest-dev/pytest/issues/12367): Fix a regression in pytest 8.2.0 where unittest class instances (a fresh one is created for each test) were not released promptly on test teardown but only on session teardown.
- [#12381](https://togithub.com/pytest-dev/pytest/issues/12381): Fix possible "Directory not empty" crashes arising from concurent cache dir (`.pytest_cache`) creation. Regressed in pytest 8.2.0.
## Improved Documentation
- [#12290](https://togithub.com/pytest-dev/pytest/issues/12290): Updated Sphinx theme to use Furo instead of Flask, enabling Dark mode theme.
- [#12356](https://togithub.com/pytest-dev/pytest/issues/12356): Added a subsection to the documentation for debugging flaky tests to mention
lack of thread safety in pytest as a possible source of flakyness.
- [#12363](https://togithub.com/pytest-dev/pytest/issues/12363): The documentation webpages now links to a canonical version to reduce outdated documentation in search engine results.
getsentry/responses (dev/responses)
### [`v0.25.2`](https://togithub.com/getsentry/responses/blob/HEAD/CHANGES#0252)
[Compare Source](https://togithub.com/getsentry/responses/compare/0.25.0...0.25.2)
- Mulligan on 0.25.1 to run release pipeline correctly.
- Added `matchers.body_matcher` for matching string request bodies. See [#717](https://togithub.com/getsentry/responses/issues/717)
getsentry/sentry-python (sandbox/sentry-sdk)
### [`v2.5.1`](https://togithub.com/getsentry/sentry-python/blob/HEAD/CHANGELOG.md#251)
[Compare Source](https://togithub.com/getsentry/sentry-python/compare/2.5.0...2.5.1)
This change fixes a regression in our cron monitoring feature, which caused cron checkins not to be sent. The regression appears to have been introduced in version 2.4.0.
**We recommend that all users, who use Cron monitoring and are currently running sentry-python ≥2.4.0, upgrade to this release as soon as possible!**
##### Other fixes & improvements
- feat(tracing): Warn if not-started transaction entered ([#3003](https://togithub.com/getsentry/sentry-python/issues/3003)) by [@szokeasaurusrex](https://togithub.com/szokeasaurusrex)
- test(scope): Ensure `last_event_id` cleared ([#3124](https://togithub.com/getsentry/sentry-python/issues/3124)) by [@szokeasaurusrex](https://togithub.com/szokeasaurusrex)
- fix(scope): Clear last_event_id on scope clear ([#3124](https://togithub.com/getsentry/sentry-python/issues/3124)) by [@szokeasaurusrex](https://togithub.com/szokeasaurusrex)
### [`v2.5.0`](https://togithub.com/getsentry/sentry-python/blob/HEAD/CHANGELOG.md#250)
[Compare Source](https://togithub.com/getsentry/sentry-python/compare/2.4.0...2.5.0)
##### Various fixes & improvements
- Allow to configure status codes to report to Sentry in Starlette and FastAPI ([#3008](https://togithub.com/getsentry/sentry-python/issues/3008)) by [@sentrivana](https://togithub.com/sentrivana)
By passing a new option to the FastAPI and Starlette integrations, you're now able to configure what
status codes should be sent as events to Sentry. Here's how it works:
```python
from sentry_sdk.integrations.starlette import StarletteIntegration
from sentry_sdk.integrations.fastapi import FastApiIntegration
sentry_sdk.init(
```
### ...
integrations=[
StarletteIntegration(
failed_request_status_codes=[403, range(500, 599)],
),
FastApiIntegration(
failed_request_status_codes=[403, range(500, 599)],
),
]
)
```
`failed_request_status_codes` expects a list of integers or containers (objects that allow membership checks via `in`)
of integers. Examples of valid `failed_request_status_codes`:
- `[500]` will only send events on HTTP 500.
- `[400, range(500, 599)]` will send events on HTTP 400 as well as the 500-599 range.
- `[500, 503]` will send events on HTTP 500 and 503.
The default is `[range(500, 599)]`.
See the [FastAPI](https://docs.sentry.io/platforms/python/integrations/fastapi/) and [Starlette](https://docs.sentry.io/platforms/python/integrations/starlette/) integration docs for more details.
- Support multiple keys with `cache_prefixes` (#3136) by @sentrivana
- Support integer Redis keys (#3132) by @sentrivana
- Update SDK version in CONTRIBUTING.md (#3129) by @sentrivana
- Bump actions/checkout from 4.1.4 to 4.1.5 (#3067) by @dependabot
```
### [`v2.4.0`](https://togithub.com/getsentry/sentry-python/blob/HEAD/CHANGELOG.md#240)
[Compare Source](https://togithub.com/getsentry/sentry-python/compare/2.3.1...2.4.0)
##### Various fixes & improvements
- Celery: Made `cache.key` span data field a list ([#3110](https://togithub.com/getsentry/sentry-python/issues/3110)) by [@antonpirker](https://togithub.com/antonpirker)
- Celery Beat: Refactor the Celery Beat integration ([#3105](https://togithub.com/getsentry/sentry-python/issues/3105)) by [@antonpirker](https://togithub.com/antonpirker)
- GRPC: Add None check for grpc.aio interceptor ([#3109](https://togithub.com/getsentry/sentry-python/issues/3109)) by [@ordinary-jamie](https://togithub.com/ordinary-jamie)
- Docs: Remove `last_event_id` from migration guide ([#3126](https://togithub.com/getsentry/sentry-python/issues/3126)) by [@szokeasaurusrex](https://togithub.com/szokeasaurusrex)
- fix(django): Proper transaction names for i18n routes ([#3104](https://togithub.com/getsentry/sentry-python/issues/3104)) by [@sentrivana](https://togithub.com/sentrivana)
- fix(scope): Copy `_last_event_id` in `Scope.__copy__` ([#3123](https://togithub.com/getsentry/sentry-python/issues/3123)) by [@szokeasaurusrex](https://togithub.com/szokeasaurusrex)
- fix(tests): Adapt to new Anthropic version ([#3119](https://togithub.com/getsentry/sentry-python/issues/3119)) by [@sentrivana](https://togithub.com/sentrivana)
- build(deps): bump checkouts/data-schemas from `4381a97` to `59f9683` ([#3066](https://togithub.com/getsentry/sentry-python/issues/3066)) by [@dependabot](https://togithub.com/dependabot)
Configuration
📅 Schedule: Branch creation - "before 7am on monday" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
[ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate. View repository job log here.
This PR contains the following updates:
==3.2.2
->==3.2.3
==8.2.1
->==8.2.2
==0.25.0
->==0.25.2
==2.3.1
->==2.5.1
Release Notes
pylint-dev/pylint (dev/pylint)
### [`v3.2.3`](https://togithub.com/pylint-dev/pylint/releases/tag/v3.2.3) [Compare Source](https://togithub.com/pylint-dev/pylint/compare/v3.2.2...v3.2.3) ## False Positives Fixed - Classes with only an Ellipsis (`...`) in their body do not trigger 'multiple-statements' anymore if they are inlined (in accordance with black's 2024 style). Closes [#9398](https://togithub.com/pylint-dev/pylint/issues/9398) - Fix a false positive for `redefined-outer-name` when there is a name defined in an exception-handling block which shares the same name as a local variable that has been defined in a function body. Closes [#9671](https://togithub.com/pylint-dev/pylint/issues/9671) - Fix a false positive for `use-yield-from` when using the return value from the `yield` atom. Closes [#9696](https://togithub.com/pylint-dev/pylint/issues/9696)pytest-dev/pytest (dev/pytest)
### [`v8.2.2`](https://togithub.com/pytest-dev/pytest/releases/tag/8.2.2) [Compare Source](https://togithub.com/pytest-dev/pytest/compare/8.2.1...8.2.2) # pytest 8.2.2 (2024-06-04) ## Bug Fixes - [#12355](https://togithub.com/pytest-dev/pytest/issues/12355): Fix possible catastrophic performance slowdown on a certain parametrization pattern involving many higher-scoped parameters. - [#12367](https://togithub.com/pytest-dev/pytest/issues/12367): Fix a regression in pytest 8.2.0 where unittest class instances (a fresh one is created for each test) were not released promptly on test teardown but only on session teardown. - [#12381](https://togithub.com/pytest-dev/pytest/issues/12381): Fix possible "Directory not empty" crashes arising from concurent cache dir (`.pytest_cache`) creation. Regressed in pytest 8.2.0. ## Improved Documentation - [#12290](https://togithub.com/pytest-dev/pytest/issues/12290): Updated Sphinx theme to use Furo instead of Flask, enabling Dark mode theme. - [#12356](https://togithub.com/pytest-dev/pytest/issues/12356): Added a subsection to the documentation for debugging flaky tests to mention lack of thread safety in pytest as a possible source of flakyness. - [#12363](https://togithub.com/pytest-dev/pytest/issues/12363): The documentation webpages now links to a canonical version to reduce outdated documentation in search engine results.getsentry/responses (dev/responses)
### [`v0.25.2`](https://togithub.com/getsentry/responses/blob/HEAD/CHANGES#0252) [Compare Source](https://togithub.com/getsentry/responses/compare/0.25.0...0.25.2) - Mulligan on 0.25.1 to run release pipeline correctly. - Added `matchers.body_matcher` for matching string request bodies. See [#717](https://togithub.com/getsentry/responses/issues/717)getsentry/sentry-python (sandbox/sentry-sdk)
### [`v2.5.1`](https://togithub.com/getsentry/sentry-python/blob/HEAD/CHANGELOG.md#251) [Compare Source](https://togithub.com/getsentry/sentry-python/compare/2.5.0...2.5.1) This change fixes a regression in our cron monitoring feature, which caused cron checkins not to be sent. The regression appears to have been introduced in version 2.4.0. **We recommend that all users, who use Cron monitoring and are currently running sentry-python ≥2.4.0, upgrade to this release as soon as possible!** ##### Other fixes & improvements - feat(tracing): Warn if not-started transaction entered ([#3003](https://togithub.com/getsentry/sentry-python/issues/3003)) by [@szokeasaurusrex](https://togithub.com/szokeasaurusrex) - test(scope): Ensure `last_event_id` cleared ([#3124](https://togithub.com/getsentry/sentry-python/issues/3124)) by [@szokeasaurusrex](https://togithub.com/szokeasaurusrex) - fix(scope): Clear last_event_id on scope clear ([#3124](https://togithub.com/getsentry/sentry-python/issues/3124)) by [@szokeasaurusrex](https://togithub.com/szokeasaurusrex) ### [`v2.5.0`](https://togithub.com/getsentry/sentry-python/blob/HEAD/CHANGELOG.md#250) [Compare Source](https://togithub.com/getsentry/sentry-python/compare/2.4.0...2.5.0) ##### Various fixes & improvements - Allow to configure status codes to report to Sentry in Starlette and FastAPI ([#3008](https://togithub.com/getsentry/sentry-python/issues/3008)) by [@sentrivana](https://togithub.com/sentrivana) By passing a new option to the FastAPI and Starlette integrations, you're now able to configure what status codes should be sent as events to Sentry. Here's how it works: ```python from sentry_sdk.integrations.starlette import StarletteIntegration from sentry_sdk.integrations.fastapi import FastApiIntegration sentry_sdk.init( ``` ### ... integrations=[ StarletteIntegration( failed_request_status_codes=[403, range(500, 599)], ), FastApiIntegration( failed_request_status_codes=[403, range(500, 599)], ), ] ) ``` `failed_request_status_codes` expects a list of integers or containers (objects that allow membership checks via `in`) of integers. Examples of valid `failed_request_status_codes`: - `[500]` will only send events on HTTP 500. - `[400, range(500, 599)]` will send events on HTTP 400 as well as the 500-599 range. - `[500, 503]` will send events on HTTP 500 and 503. The default is `[range(500, 599)]`. See the [FastAPI](https://docs.sentry.io/platforms/python/integrations/fastapi/) and [Starlette](https://docs.sentry.io/platforms/python/integrations/starlette/) integration docs for more details. - Support multiple keys with `cache_prefixes` (#3136) by @sentrivana - Support integer Redis keys (#3132) by @sentrivana - Update SDK version in CONTRIBUTING.md (#3129) by @sentrivana - Bump actions/checkout from 4.1.4 to 4.1.5 (#3067) by @dependabot ``` ### [`v2.4.0`](https://togithub.com/getsentry/sentry-python/blob/HEAD/CHANGELOG.md#240) [Compare Source](https://togithub.com/getsentry/sentry-python/compare/2.3.1...2.4.0) ##### Various fixes & improvements - Celery: Made `cache.key` span data field a list ([#3110](https://togithub.com/getsentry/sentry-python/issues/3110)) by [@antonpirker](https://togithub.com/antonpirker) - Celery Beat: Refactor the Celery Beat integration ([#3105](https://togithub.com/getsentry/sentry-python/issues/3105)) by [@antonpirker](https://togithub.com/antonpirker) - GRPC: Add None check for grpc.aio interceptor ([#3109](https://togithub.com/getsentry/sentry-python/issues/3109)) by [@ordinary-jamie](https://togithub.com/ordinary-jamie) - Docs: Remove `last_event_id` from migration guide ([#3126](https://togithub.com/getsentry/sentry-python/issues/3126)) by [@szokeasaurusrex](https://togithub.com/szokeasaurusrex) - fix(django): Proper transaction names for i18n routes ([#3104](https://togithub.com/getsentry/sentry-python/issues/3104)) by [@sentrivana](https://togithub.com/sentrivana) - fix(scope): Copy `_last_event_id` in `Scope.__copy__` ([#3123](https://togithub.com/getsentry/sentry-python/issues/3123)) by [@szokeasaurusrex](https://togithub.com/szokeasaurusrex) - fix(tests): Adapt to new Anthropic version ([#3119](https://togithub.com/getsentry/sentry-python/issues/3119)) by [@sentrivana](https://togithub.com/sentrivana) - build(deps): bump checkouts/data-schemas from `4381a97` to `59f9683` ([#3066](https://togithub.com/getsentry/sentry-python/issues/3066)) by [@dependabot](https://togithub.com/dependabot)Configuration
📅 Schedule: Branch creation - "before 7am on monday" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by Mend Renovate. View repository job log here.