openfun / ralph

:gear: Ralph, the ultimate Learning Record Store (and more!) for your learning analytics
https://openfun.github.io/ralph/
MIT License
36 stars 15 forks source link

⬆️(project) upgrade python dependencies #593

Closed renovate[bot] closed 4 months ago

renovate[bot] commented 4 months ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
dev/black (changelog) ==24.4.1 -> ==24.4.2 age adoption passing confidence
dev/mkdocs-material (changelog) ==9.5.19 -> ==9.5.20 age adoption passing confidence
dev/mkdocstrings (changelog) ==0.24.3 -> ==0.25.0 age adoption passing confidence
dev/moto (changelog) ==5.0.5 -> ==5.0.6 age adoption passing confidence
dev/pymdown-extensions ==10.8 -> ==10.8.1 age adoption passing confidence
dev/ruff (source, changelog) ==0.4.1 -> ==0.4.2 age adoption passing confidence
lrs/sentry_sdk (changelog) ==1.45.0 -> ==2.0.1 age adoption passing confidence

Release Notes

psf/black (dev/black) ### [`v24.4.2`](https://togithub.com/psf/black/blob/HEAD/CHANGES.md#2442) [Compare Source](https://togithub.com/psf/black/compare/24.4.1...24.4.2) This is a bugfix release to fix two regressions in the new f-string parser introduced in 24.4.1. ##### Parser - Fix regression where certain complex f-strings failed to parse ([#​4332](https://togithub.com/psf/black/issues/4332)) ##### Performance - Fix bad performance on certain complex string literals ([#​4331](https://togithub.com/psf/black/issues/4331))
squidfunk/mkdocs-material (dev/mkdocs-material) ### [`v9.5.20`](https://togithub.com/squidfunk/mkdocs-material/releases/tag/9.5.20): mkdocs-material-9.5.20 [Compare Source](https://togithub.com/squidfunk/mkdocs-material/compare/9.5.19...9.5.20) - Fixed deprecation warning in privacy plugin (9.5.19 regression) - Fixed [#​7119](https://togithub.com/squidfunk/mkdocs-material/issues/7119): Tags plugin emits deprecation warning (9.5.19 regression) - Fixed [#​7118](https://togithub.com/squidfunk/mkdocs-material/issues/7118): Social plugin crashes if fonts are disabled (9.5.19 regression) - Fixed [#​7085](https://togithub.com/squidfunk/mkdocs-material/issues/7085): Social plugin crashes on Windows when downloading fonts
mkdocstrings/mkdocstrings (dev/mkdocstrings) ### [`v0.25.0`](https://togithub.com/mkdocstrings/mkdocstrings/blob/HEAD/CHANGELOG.md#0250---2024-04-27) [Compare Source](https://togithub.com/mkdocstrings/mkdocstrings/compare/0.24.3...0.25.0) [Compare with 0.24.3](https://togithub.com/mkdocstrings/mkdocstrings/compare/0.24.3...0.25.0) ##### Features - Support `once` parameter in logging methods, allowing to log a message only once with a given logger ([1532b59](https://togithub.com/mkdocstrings/mkdocstrings/commit/1532b59a6efd99fed846cf7edfd0b26525700d3f) by Timothée Mazzucotelli). - Support blank line between `::: path` and YAML options ([d799d2f](https://togithub.com/mkdocstrings/mkdocstrings/commit/d799d2f3903bce44fb751f8cf3fb8078d25549da) by Timothée Mazzucotelli). [Issue-450](https://togithub.com/mkdocstrings/mkdocstrings/issues/450) ##### Code Refactoring - Allow specifying name of template loggers ([c5b5f69](https://togithub.com/mkdocstrings/mkdocstrings/commit/c5b5f697c83271d961c7ac795412d6b4964ba2b7) by Timothée Mazzucotelli).
getmoto/moto (dev/moto) ### [`v5.0.6`](https://togithub.com/getmoto/moto/blob/HEAD/CHANGELOG.md#506) [Compare Source](https://togithub.com/getmoto/moto/compare/5.0.5...5.0.6) Docker Digest for 5.0.6: *sha256:da919d3c1db07b378c413ed00a6c1c3e32ce1943a13671658c4db0f55dd49e42* New Services: * Bedrock: * create_model_customization_job() * delete_custom_model() * delete_model_invocation_logging_configuration() * get_custom_model() * get_model_customization_job() * get_model_invocation_logging_configuration() * list_custom_models() * list_model_customization_jobs() * list_tags_for_resource() * put_model_invocation_logging_configuration() * stop_model_customization_job() * tag_resource() * untag_resource() * BedrockAgent: * create_agent() * create_knowledge_base() * delete_agent() * delete_knowledge_base() * get_agent() * get_knowledge_base() * list_agents() * list_knowledge_bases() * list_tags_for_resource() * tag_resource() * untag_resource() New Methods: * EC2: * describe_addresses_attributes() * Rekognition: * detect_custom_labels() * Sagemaker: * update_trial_component() Miscellaneous: * CloudFront: update_distribution() now supports the CacheBehaviours-parameter * DynamoDB: query() now acts correctly when paginating GSI tables without range keys * EC2: RouteTables can now have multiple propagations * EC2: describe_instances() now now filter by product-code and product-code.type * EC2: describe_security_group_rules() now validates the format of the incoming security group id's * ECS: update_service() now supports the loadBalancers-parameter * Logs: describe_metric_filter() now has the correct validation for metricNamespaces * IOT: search_index() now supports thingTypeName * SFN: send_task_failure()/send_task_success() now work correctly when using the Parser * SNS: subscribe() now throws an exception if the endpoint doesn't exist * SQS: Improved queue name validation
facelessuser/pymdown-extensions (dev/pymdown-extensions) ### [`v10.8.1`](https://togithub.com/facelessuser/pymdown-extensions/releases/tag/10.8.1) [Compare Source](https://togithub.com/facelessuser/pymdown-extensions/compare/10.8...10.8.1) #### 10.8.1 - **FIX**: Snippets: Fix snippet line range with a start of line 1.
astral-sh/ruff (dev/ruff) ### [`v0.4.2`](https://togithub.com/astral-sh/ruff/blob/HEAD/CHANGELOG.md#042) [Compare Source](https://togithub.com/astral-sh/ruff/compare/v0.4.1...v0.4.2) ##### Rule changes - \[`flake8-pyi`] Allow for overloaded `__exit__` and `__aexit__` definitions (`PYI036`) ([#​11057](https://togithub.com/astral-sh/ruff/pull/11057)) - \[`pyupgrade`] Catch usages of `"%s" % var` and provide an unsafe fix (`UP031`) ([#​11019](https://togithub.com/astral-sh/ruff/pull/11019)) - \[`refurb`] Implement new rule that suggests min/max over `sorted()` (`FURB192`) ([#​10868](https://togithub.com/astral-sh/ruff/pull/10868)) ##### Server - Fix an issue with missing diagnostics for Neovim and Helix ([#​11092](https://togithub.com/astral-sh/ruff/pull/11092)) - Implement hover documentation for `noqa` codes ([#​11096](https://togithub.com/astral-sh/ruff/pull/11096)) - Introduce common Ruff configuration options with new server settings ([#​11062](https://togithub.com/astral-sh/ruff/pull/11062)) ##### Bug fixes - Use `macos-12` for building release wheels to enable macOS 11 compatibility ([#​11146](https://togithub.com/astral-sh/ruff/pull/11146)) - \[`flake8-blind-expect`] Allow raise from in `BLE001` ([#​11131](https://togithub.com/astral-sh/ruff/pull/11131)) - \[`flake8-pyi`] Allow simple assignments to `None` in enum class scopes (`PYI026`) ([#​11128](https://togithub.com/astral-sh/ruff/pull/11128)) - \[`flake8-simplify`] Avoid raising `SIM911` for non-`zip` attribute calls ([#​11126](https://togithub.com/astral-sh/ruff/pull/11126)) - \[`refurb`] Avoid `operator.itemgetter` suggestion for single-item tuple ([#​11095](https://togithub.com/astral-sh/ruff/pull/11095)) - \[`ruff`] Respect per-file-ignores for `RUF100` with no other diagnostics ([#​11058](https://togithub.com/astral-sh/ruff/pull/11058)) - \[`ruff`] Fix async comprehension false positive (`RUF029`) ([#​11070](https://togithub.com/astral-sh/ruff/pull/11070)) ##### Documentation - \[`flake8-bugbear`] Document explicitly disabling strict zip (`B905`) ([#​11040](https://togithub.com/astral-sh/ruff/pull/11040)) - \[`flake8-type-checking`] Mention `lint.typing-modules` in `TCH001`, `TCH002`, and `TCH003` ([#​11144](https://togithub.com/astral-sh/ruff/pull/11144)) - \[`isort`] Improve documentation around custom `isort` sections ([#​11050](https://togithub.com/astral-sh/ruff/pull/11050)) - \[`pylint`] Fix documentation oversight for `invalid-X-returns` ([#​11094](https://togithub.com/astral-sh/ruff/pull/11094)) ##### Performance - Use `matchit` to resolve per-file settings ([#​11111](https://togithub.com/astral-sh/ruff/pull/11111))
getsentry/sentry-python (lrs/sentry_sdk) ### [`v2.0.1`](https://togithub.com/getsentry/sentry-python/blob/HEAD/CHANGELOG.md#201) [Compare Source](https://togithub.com/getsentry/sentry-python/compare/2.0.0...2.0.1) ##### Various fixes & improvements - Fix: Do not use convenience decorator ([#​3022](https://togithub.com/getsentry/sentry-python/issues/3022)) by [@​sentrivana](https://togithub.com/sentrivana) - Refactoring propagation context ([#​2970](https://togithub.com/getsentry/sentry-python/issues/2970)) by [@​antonpirker](https://togithub.com/antonpirker) - Use `pid` for test database name in Django tests ([#​2998](https://togithub.com/getsentry/sentry-python/issues/2998)) by [@​antonpirker](https://togithub.com/antonpirker) - Remove outdated RC mention in docs ([#​3018](https://togithub.com/getsentry/sentry-python/issues/3018)) by [@​sentrivana](https://togithub.com/sentrivana) - Delete inaccurate comment from docs ([#​3002](https://togithub.com/getsentry/sentry-python/issues/3002)) by [@​szokeasaurusrex](https://togithub.com/szokeasaurusrex) - Add Lambda function that deletes test Lambda functions ([#​2960](https://togithub.com/getsentry/sentry-python/issues/2960)) by [@​antonpirker](https://togithub.com/antonpirker) - Correct discarded transaction debug message ([#​3002](https://togithub.com/getsentry/sentry-python/issues/3002)) by [@​szokeasaurusrex](https://togithub.com/szokeasaurusrex) - Add tests for discarded transaction debug messages ([#​3002](https://togithub.com/getsentry/sentry-python/issues/3002)) by [@​szokeasaurusrex](https://togithub.com/szokeasaurusrex) - Fix comment typo in metrics ([#​2992](https://togithub.com/getsentry/sentry-python/issues/2992)) by [@​szokeasaurusrex](https://togithub.com/szokeasaurusrex) - build(deps): bump actions/checkout from 4.1.1 to 4.1.4 ([#​3011](https://togithub.com/getsentry/sentry-python/issues/3011)) by [@​dependabot](https://togithub.com/dependabot) - build(deps): bump checkouts/data-schemas from `1e17eb5` to `4aa14a7` ([#​2997](https://togithub.com/getsentry/sentry-python/issues/2997)) by [@​dependabot](https://togithub.com/dependabot) ### [`v2.0.0`](https://togithub.com/getsentry/sentry-python/blob/HEAD/CHANGELOG.md#200) [Compare Source](https://togithub.com/getsentry/sentry-python/compare/1.45.0...2.0.0) This is the first major update in a *long* time! We dropped support for some ancient languages and frameworks (Yes, Python 2.7 is no longer supported). Additionally we refactored a big part of the foundation of the SDK (how data inside the SDK is handled). We hope you like it! For a shorter version of what you need to do, to upgrade to Sentry SDK 2.0 see: https://docs.sentry.io/platforms/python/migration/1.x-to-2.x ##### New Features - Additional integrations will now be activated automatically if the SDK detects the respective package is installed: Ariadne, ARQ, asyncpg, Chalice, clickhouse-driver, GQL, Graphene, huey, Loguru, PyMongo, Quart, Starlite, Strawberry. - Added new API for custom instrumentation: `new_scope`, `isolation_scope`. See the [Deprecated](#deprecated) section to see how they map to the existing APIs. ##### Changed (These changes are all backwards-incompatible. **Breaking Change** (if you are just skimming for that phrase)) - The Pyramid integration will not capture errors that might happen in `authenticated_userid()` in a custom `AuthenticationPolicy` class. - The method `need_code_loation` of the `MetricsAggregator` was renamed to `need_code_location`. - The `BackgroundWorker` thread used to process events was renamed from `raven-sentry.BackgroundWorker` to `sentry-sdk.BackgroundWorker`. - The `reraise` function was moved from `sentry_sdk._compat` to `sentry_sdk.utils`. - The `_ScopeManager` was moved from `sentry_sdk.hub` to `sentry_sdk.scope`. - Moved the contents of `tracing_utils_py3.py` to `tracing_utils.py`. The `start_child_span_decorator` is now in `sentry_sdk.tracing_utils`. - The actual implementation of `get_current_span` was moved to `sentry_sdk.tracing_utils`. `sentry_sdk.get_current_span` is still accessible as part of the top-level API. - `sentry_sdk.tracing_utils.add_query_source()`: Removed the `hub` parameter. It is not necessary anymore. - `sentry_sdk.tracing_utils.record_sql_queries()`: Removed the `hub` parameter. It is not necessary anymore. - `sentry_sdk.tracing_utils.get_current_span()` does now take a `scope` instead of a `hub` as parameter. - `sentry_sdk.tracing_utils.should_propagate_trace()` now takes a `Client` instead of a `Hub` as first parameter. - `sentry_sdk.utils.is_sentry_url()` now takes a `Client` instead of a `Hub` as first parameter. - `sentry_sdk.utils._get_contextvars` does not return a tuple with three values, but a tuple with two values. The `copy_context` was removed. - If you create a transaction manually and later mutate the transaction in a `configure_scope` block this does not work anymore. Here is a recipe on how to change your code to make it work: Your existing implementation: ```python transaction = sentry_sdk.transaction(...) ``` ### later in the code execution: with sentry_sdk.configure_scope() as scope: scope.set_transaction_name("new-transaction-name") ``` needs to be changed to this: ```python transaction = sentry_sdk.transaction(...) ### later in the code execution: scope = sentry_sdk.Scope.get_current_scope() scope.set_transaction_name("new-transaction-name") ``` - The classes listed in the table below are now abstract base classes. Therefore, they can no longer be instantiated. Subclasses can only be instantiated if they implement all of the abstract methods.
Show table | Class | Abstract methods | | ------------------------------------- | -------------------------------------- | | `sentry_sdk.integrations.Integration` | `setup_once` | | `sentry_sdk.metrics.Metric` | `add`, `serialize_value`, and `weight` | | `sentry_sdk.profiler.Scheduler` | `setup` and `teardown` | | `sentry_sdk.transport.Transport` | `capture_envelope` |
##### Removed (These changes are all backwards-incompatible. **Breaking Change** (if you are just skimming for that phrase)) - Removed support for Python 2 and Python 3.5. The SDK now requires at least Python 3.6. - Removed support for Celery 3.\*. - Removed support for Django 1.8, 1.9, 1.10. - Removed support for Flask 0.\*. - Removed support for gRPC < 1.39. - Removed support for Tornado < 6. - Removed `last_event_id()` top level API. The last event ID is still returned by `capture_event()`, `capture_exception()` and `capture_message()` but the top level API `sentry_sdk.last_event_id()` has been removed. - Removed support for sending events to the `/store` endpoint. Everything is now sent to the `/envelope` endpoint. If you're on SaaS you don't have to worry about this, but if you're running Sentry yourself you'll need version `20.6.0` or higher of self-hosted Sentry. - The deprecated `with_locals` configuration option was removed. Use `include_local_variables` instead. See https://docs.sentry.io/platforms/python/configuration/options/#include-local-variables. - The deprecated `request_bodies` configuration option was removed. Use `max_request_body_size`. See https://docs.sentry.io/platforms/python/configuration/options/#max-request-body-size. - Removed support for `user.segment`. It was also removed from the trace header as well as from the dynamic sampling context. - Removed support for the `install` method for custom integrations. Please use `setup_once` instead. - Removed `sentry_sdk.tracing.Span.new_span`. Use `sentry_sdk.tracing.Span.start_child` instead. - Removed `sentry_sdk.tracing.Transaction.new_span`. Use `sentry_sdk.tracing.Transaction.start_child` instead. - Removed support for creating transactions via `sentry_sdk.tracing.Span(transaction=...)`. To create a transaction, please use `sentry_sdk.tracing.Transaction(name=...)`. - Removed `sentry_sdk.utils.Auth.store_api_url`. - `sentry_sdk.utils.Auth.get_api_url`'s now accepts a `sentry_sdk.consts.EndpointType` enum instead of a string as its only parameter. We recommend omitting this argument when calling the function, since the parameter's default value is the only possible `sentry_sdk.consts.EndpointType` value. The parameter exists for future compatibility. - Removed `tracing_utils_py2.py`. The `start_child_span_decorator` is now in `sentry_sdk.tracing_utils`. - Removed the `sentry_sdk.profiler.Scheduler.stop_profiling` method. Any calls to this method can simply be removed, since this was a no-op method. ##### Deprecated - Using the `Hub` directly as well as using hub-based APIs has been deprecated. Where available, use [the top-level API instead](sentry_sdk/api.py); otherwise use the [scope API](sentry_sdk/scope.py) or the [client API](sentry_sdk/client.py). Before: ```python with hub.start_span(...): ``` ### do something ```` After: ```python import sentry_sdk with sentry_sdk.start_span(...): ### do something ```` - Hub cloning is deprecated. Before: ```python with Hub(Hub.current) as hub: ``` ### do something with the cloned hub ```` After: ```python import sentry_sdk with sentry_sdk.isolation_scope() as scope: ### do something with the forked scope ```` - `configure_scope` is deprecated. Use the new isolation scope directly via `Scope.get_isolation_scope()` instead. Before: ```python with configure_scope() as scope: ``` ### do something with `scope` ```` After: ```python from sentry_sdk.scope import Scope scope = Scope.get_isolation_scope() ````

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.

renovate[bot] commented 4 months ago

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

Warning: custom changes will be lost.