Skip to content

Commit

Permalink
fix(deps): update ruff, mkdocs, pytest (#3427)
Browse files Browse the repository at this point in the history
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [mkdocs-autorefs](https://redirect.github.com/mkdocstrings/autorefs)
([changelog](https://mkdocstrings.github.io/autorefs/changelog)) |
`>=1.0.1` -> `>=1.2.0` |
[![age](https://developer.mend.io/api/mc/badges/age/pypi/mkdocs-autorefs/1.2.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/mkdocs-autorefs/1.2.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/mkdocs-autorefs/1.0.1/1.2.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/mkdocs-autorefs/1.0.1/1.2.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[mkdocs-git-revision-date-localized-plugin](https://redirect.github.com/timvink/mkdocs-git-revision-date-localized-plugin)
| `>=1.2.4` -> `>=1.3.0` |
[![age](https://developer.mend.io/api/mc/badges/age/pypi/mkdocs-git-revision-date-localized-plugin/1.3.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/mkdocs-git-revision-date-localized-plugin/1.3.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/mkdocs-git-revision-date-localized-plugin/1.2.4/1.3.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/mkdocs-git-revision-date-localized-plugin/1.2.4/1.3.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [mkdocs-glightbox](https://blueswen.github.io/mkdocs-glightbox)
([source](https://redirect.github.com/Blueswen/mkdocs-glightbox)) |
`>=0.3.7` -> `>=0.4.0` |
[![age](https://developer.mend.io/api/mc/badges/age/pypi/mkdocs-glightbox/0.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/mkdocs-glightbox/0.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/mkdocs-glightbox/0.3.7/0.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/mkdocs-glightbox/0.3.7/0.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[mkdocs-macros-plugin](https://redirect.github.com/fralau/mkdocs_macros_plugin)
| `>=1.3.0` -> `>=1.3.7` |
[![age](https://developer.mend.io/api/mc/badges/age/pypi/mkdocs-macros-plugin/1.3.7?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/mkdocs-macros-plugin/1.3.7?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/mkdocs-macros-plugin/1.3.4/1.3.7?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/mkdocs-macros-plugin/1.3.4/1.3.7?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[mkdocs-redirects](https://redirect.github.com/mkdocs/mkdocs-redirects#readme)
([changelog](https://redirect.github.com/mkdocs/mkdocs-redirects/releases))
| `>=1.0.0` -> `>=1.2.2` |
[![age](https://developer.mend.io/api/mc/badges/age/pypi/mkdocs-redirects/1.2.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/mkdocs-redirects/1.2.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/mkdocs-redirects/1.0.0/1.2.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/mkdocs-redirects/1.0.0/1.2.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [pytest](https://redirect.github.com/pytest-dev/pytest)
([changelog](https://docs.pytest.org/en/stable/changelog.html)) |
`~=8.3.2` -> `~=8.3.4` |
[![age](https://developer.mend.io/api/mc/badges/age/pypi/pytest/8.3.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/pytest/8.3.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/pytest/8.3.2/8.3.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/pytest/8.3.2/8.3.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[pytest-asyncio](https://redirect.github.com/pytest-dev/pytest-asyncio)
([changelog](https://pytest-asyncio.readthedocs.io/en/latest/reference/changelog.html))
| `~=0.23.8` -> `~=0.25.2` |
[![age](https://developer.mend.io/api/mc/badges/age/pypi/pytest-asyncio/0.25.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/pytest-asyncio/0.25.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/pytest-asyncio/0.23.8/0.25.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/pytest-asyncio/0.23.8/0.25.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [pytest-codecov](https://redirect.github.com/seantis/pytest-codecov) |
`~=0.5.1` -> `~=0.6.1` |
[![age](https://developer.mend.io/api/mc/badges/age/pypi/pytest-codecov/0.6.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/pytest-codecov/0.6.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/pytest-codecov/0.5.1/0.6.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/pytest-codecov/0.5.1/0.6.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>mkdocstrings/autorefs (mkdocs-autorefs)</summary>

###
[`v1.2.0`](https://redirect.github.com/mkdocstrings/autorefs/blob/HEAD/CHANGELOG.md#120---2024-09-01)

[Compare
Source](https://redirect.github.com/mkdocstrings/autorefs/compare/1.1.0...1.2.0)

<small>[Compare with
1.1.0](https://redirect.github.com/mkdocstrings/autorefs/compare/1.1.0...1.2.0)</small>

##### Features

- Provide hook interface, use it to expand identifiers, attach
additional context to references, and give more context around unmapped
identifiers
([fb8df98](https://redirect.github.com/mkdocstrings/autorefs/commit/fb8df98fc8f9fb1b3accb8a305cc90b3a3507d86)
by Timothée Mazzucotelli).
[Issue-54](https://redirect.github.com/mkdocstrings/autorefs/issues/54),
[PR-mkdocstrings#666](https://redirect.github.com/mkdocstrings/mkdocstrings/pull/666)
- Add option to resolve autorefs to closest URLs when multiple ones are
found
([2916eb2](https://redirect.github.com/mkdocstrings/autorefs/commit/2916eb27dec89287dcaa1aefb4e9532156b66e30)
by Timothée Mazzucotelli).
[Issue-52](https://redirect.github.com/mkdocstrings/autorefs/issues/52)

##### Bug Fixes

- Don't ignore identifiers containing spaces and slashes
([b36a0d1](https://redirect.github.com/mkdocstrings/autorefs/commit/b36a0d1c4b0f5a6441ee6a2de7409942a8702bd8)
by Timothée Mazzucotelli).
[Issue-55](https://redirect.github.com/mkdocstrings/autorefs/issues/55)

##### Code Refactoring

- Emit deprecation warnings when old-style spans are found
([4f2be46](https://redirect.github.com/mkdocstrings/autorefs/commit/4f2be4633eec42c8e8582804741548a8e5602727)
by Timothée Mazzucotelli).
- Use `%s` formatting instead of f-strings in log messages
([0cedf9d](https://redirect.github.com/mkdocstrings/autorefs/commit/0cedf9d82ede8ba10dc8e100d7d1e5ce488fca34)
by Timothée Mazzucotelli).

###
[`v1.1.0`](https://redirect.github.com/mkdocstrings/autorefs/blob/HEAD/CHANGELOG.md#110---2024-08-20)

[Compare
Source](https://redirect.github.com/mkdocstrings/autorefs/compare/1.0.1...1.1.0)

<small>[Compare with
1.0.1](https://redirect.github.com/mkdocstrings/autorefs/compare/1.0.1...1.1.0)</small>

##### Deprecations

- `AUTO_REF_RE` is renamed `AUTOREF_RE` (and updated for an improved
version of `fix_refs`)
-   `AutoRefInlineProcessor` is renamed `AutorefsInlineProcessor`

##### Features

- Warn when multiple URLs are found for the same identifier
([c630354](https://redirect.github.com/mkdocstrings/autorefs/commit/c6303542018ca835f6941c070accb582f851f6b1)
by Markus B).
[Issue-35](https://redirect.github.com/mkdocstrings/autorefs/issues/35),
[PR-50](https://redirect.github.com/mkdocstrings/autorefs/pull/50),
Co-authored-by: Timothée Mazzucotelli <[email protected]>

##### Bug Fixes

- Only log "Markdown anchors feature enabled" once
([1c9bda1](https://redirect.github.com/mkdocstrings/autorefs/commit/1c9bda1ab4f13c9a5cf5d202de755e5296729654)
by Timothée Mazzucotelli).
[Issue-44](https://redirect.github.com/mkdocstrings/autorefs/issues/44)

##### Code Refactoring

- Use a custom autoref HTML tag
([e142023](https://redirect.github.com/mkdocstrings/autorefs/commit/e14202317dc13dd5eed93b5d7cfd183c87de893f)
by Timothée Mazzucotelli).
[PR-48](https://redirect.github.com/mkdocstrings/autorefs/pull/48)
- Rename AutoRefInlineProcessor to AutorefsInlineProcessor
([ffcaa01](https://redirect.github.com/mkdocstrings/autorefs/commit/ffcaa0178b642e423acdc66d35f1e6b207099dc7)
by Timothée Mazzucotelli).
- Attach name to processors for easier retrieval
([036b825](https://redirect.github.com/mkdocstrings/autorefs/commit/036b825c7994b2586564e8707fbc0b3627c29569)
by Timothée Mazzucotelli).

</details>

<details>
<summary>timvink/mkdocs-git-revision-date-localized-plugin
(mkdocs-git-revision-date-localized-plugin)</summary>

###
[`v1.3.0`](https://redirect.github.com/timvink/mkdocs-git-revision-date-localized-plugin/releases/tag/v1.3.0):
revision-date-localized v1.3.0

[Compare
Source](https://redirect.github.com/timvink/mkdocs-git-revision-date-localized-plugin/compare/v1.2.9...v1.3.0)

#### What's Changed

🟠 Minor breaking changes: This release will change some of the git
revision dates:

- We now ignore changes to files that only contain whitespaces or
blanklines, as these are not 'real' revisions to the content. This maps
to the `git log --ignore_all_space --ignore_blank_lines`.
- We now ignore rename commits for determining the last revision date,
as these are not 'real' revisions to the content. This maps to the `git
log diff-filter=r` command (see [git log
docs](https://git-scm.com/docs/git-log#Documentation/git-log.txt---diff-filterACDMRTUXB82308203))
- We will now follow changes to a file across file renames (including
moving files around). This maps to `git log --follow`. While giving more
accurate revision and creation dates, there is an edge case: if you
commit empty files, the revision date might wrong. For details see [this
blogpost](https://blog.plover.com/prog/git-log-follow.html). You can
opt-out of this behavior by using the new option `enable_git_follow`
(which defaults to `True`). If you still hit inaccurate revision dates
for specific files, consider [manually defining
them](https://redirect.github.com/squidfunk/mkdocs-material/discussions/7135).

Pull requests:

- Option for excluding rename commits from last update by
[@&#8203;skywarth](https://redirect.github.com/skywarth) in
[https://github.com/timvink/mkdocs-git-revision-date-localized-plugin/pull/148](https://redirect.github.com/timvink/mkdocs-git-revision-date-localized-plugin/pull/148)
- Support for python 3.13 by
[@&#8203;timvink](https://redirect.github.com/timvink) in
[`1e69247`](https://redirect.github.com/timvink/mkdocs-git-revision-date-localized-plugin/commit/1e6924730f5b1909bd7b9b8a1b87d8fddf108b0b)

#### New Contributors

- [@&#8203;skywarth](https://redirect.github.com/skywarth) made their
first contribution in
[https://github.com/timvink/mkdocs-git-revision-date-localized-plugin/pull/148](https://redirect.github.com/timvink/mkdocs-git-revision-date-localized-plugin/pull/148)

**Full Changelog**:
timvink/mkdocs-git-revision-date-localized-plugin@v1.2.9...v1.3.0

###
[`v1.2.9`](https://redirect.github.com/timvink/mkdocs-git-revision-date-localized-plugin/releases/tag/v1.2.9):
revision-date-localized v1.2.9

[Compare
Source](https://redirect.github.com/timvink/mkdocs-git-revision-date-localized-plugin/compare/v1.2.8...v1.2.9)

#### What's Changed

- Fixed another DeprecationWarning by
[@&#8203;YigesMx](https://redirect.github.com/YigesMx) in
[https://github.com/timvink/mkdocs-git-revision-date-localized-plugin/pull/144](https://redirect.github.com/timvink/mkdocs-git-revision-date-localized-plugin/pull/144)

#### New Contributors

- [@&#8203;YigesMx](https://redirect.github.com/YigesMx) made their
first contribution in
[https://github.com/timvink/mkdocs-git-revision-date-localized-plugin/pull/144](https://redirect.github.com/timvink/mkdocs-git-revision-date-localized-plugin/pull/144)

**Full Changelog**:
timvink/mkdocs-git-revision-date-localized-plugin@v1.2.8...v1.2.9

###
[`v1.2.8`](https://redirect.github.com/timvink/mkdocs-git-revision-date-localized-plugin/releases/tag/v1.2.8):
revision-date-localized v1.2.8

[Compare
Source](https://redirect.github.com/timvink/mkdocs-git-revision-date-localized-plugin/compare/v1.2.7...v1.2.8)

#### What's Changed

- Fixed the bug that the configuration option `theme.language` in
mkdocs.yml was not fetched correctly under the `mkdocs-material` theme
by [@&#8203;Xiaokang2022](https://redirect.github.com/Xiaokang2022) in
[https://github.com/timvink/mkdocs-git-revision-date-localized-plugin/pull/143](https://redirect.github.com/timvink/mkdocs-git-revision-date-localized-plugin/pull/143)

#### New Contributors

- [@&#8203;Xiaokang2022](https://redirect.github.com/Xiaokang2022) made
their first contribution in
[https://github.com/timvink/mkdocs-git-revision-date-localized-plugin/pull/143](https://redirect.github.com/timvink/mkdocs-git-revision-date-localized-plugin/pull/143)

**Full Changelog**:
timvink/mkdocs-git-revision-date-localized-plugin@v1.2.6...v1.2.8

###
[`v1.2.7`](https://redirect.github.com/timvink/mkdocs-git-revision-date-localized-plugin/releases/tag/v1.2.7):
revision-date-localized v1.2.7

[Compare
Source](https://redirect.github.com/timvink/mkdocs-git-revision-date-localized-plugin/compare/v1.2.6...v1.2.7)

#### What's Changed

- fixed a timeago display bug by
[@&#8203;ketikai](https://redirect.github.com/ketikai) in
[https://github.com/timvink/mkdocs-git-revision-date-localized-plugin/pull/141](https://redirect.github.com/timvink/mkdocs-git-revision-date-localized-plugin/pull/141)
- fix: Gitlab doc link by
[@&#8203;ethrgeist](https://redirect.github.com/ethrgeist) in
[https://github.com/timvink/mkdocs-git-revision-date-localized-plugin/pull/137](https://redirect.github.com/timvink/mkdocs-git-revision-date-localized-plugin/pull/137)

#### New Contributors

- [@&#8203;ethrgeist](https://redirect.github.com/ethrgeist) made their
first contribution in
[https://github.com/timvink/mkdocs-git-revision-date-localized-plugin/pull/137](https://redirect.github.com/timvink/mkdocs-git-revision-date-localized-plugin/pull/137)
- [@&#8203;ketikai](https://redirect.github.com/ketikai) made their
first contribution in
[https://github.com/timvink/mkdocs-git-revision-date-localized-plugin/pull/141](https://redirect.github.com/timvink/mkdocs-git-revision-date-localized-plugin/pull/141)

**Full Changelog**:
timvink/mkdocs-git-revision-date-localized-plugin@v1.2.6...v1.2.7

###
[`v1.2.6`](https://redirect.github.com/timvink/mkdocs-git-revision-date-localized-plugin/releases/tag/v1.2.6):
revision-date-localized v1.2.6

[Compare
Source](https://redirect.github.com/timvink/mkdocs-git-revision-date-localized-plugin/compare/v1.2.5...v1.2.6)

##### What's Changed

- Fix bitbucket CI warning showing up on github actions, by
[@&#8203;timvink](https://redirect.github.com/timvink) in
[https://github.com/timvink/mkdocs-git-revision-date-localized-plugin/issues/136](https://redirect.github.com/timvink/mkdocs-git-revision-date-localized-plugin/issues/136)

**Full Changelog**:
timvink/mkdocs-git-revision-date-localized-plugin@v1.2.5...v1.2.6

###
[`v1.2.5`](https://redirect.github.com/timvink/mkdocs-git-revision-date-localized-plugin/releases/tag/v1.2.5):
revision-date-localized v1.2.5

[Compare
Source](https://redirect.github.com/timvink/mkdocs-git-revision-date-localized-plugin/compare/v1.2.4...v1.2.5)

#### What's Changed

- Fixing `_vars` deprecation warning by
[@&#8203;dbermuehler](https://redirect.github.com/dbermuehler) in
[https://github.com/timvink/mkdocs-git-revision-date-localized-plugin/pull/132](https://redirect.github.com/timvink/mkdocs-git-revision-date-localized-plugin/pull/132)

#### New Contributors

- [@&#8203;dbermuehler](https://redirect.github.com/dbermuehler) made
their first contribution in
[https://github.com/timvink/mkdocs-git-revision-date-localized-plugin/pull/132](https://redirect.github.com/timvink/mkdocs-git-revision-date-localized-plugin/pull/132)

**Full Changelog**:
timvink/mkdocs-git-revision-date-localized-plugin@v1.2.4...v1.2.5

</details>

<details>
<summary>Blueswen/mkdocs-glightbox (mkdocs-glightbox)</summary>

###
[`v0.4.0`](https://redirect.github.com/blueswen/mkdocs-glightbox/releases/tag/v0.4.0):
mkdocs-glightbox-0.4.0

[Compare
Source](https://redirect.github.com/Blueswen/mkdocs-glightbox/compare/v0.3.7...v0.4.0)

- Supported manual mode
([#&#8203;29](https://redirect.github.com/Blueswen/mkdocs-glightbox/issues/29))
- Allow calling lightbox methods from other places
([#&#8203;34](https://redirect.github.com/Blueswen/mkdocs-glightbox/issues/34))
- Added id to appended script tag
([#&#8203;38](https://redirect.github.com/Blueswen/mkdocs-glightbox/issues/38))
- Access theme attribute directly
([#&#8203;40](https://redirect.github.com/Blueswen/mkdocs-glightbox/issues/40))
- Better JavaScript Error Handling
([#&#8203;36](https://redirect.github.com/Blueswen/mkdocs-glightbox/issues/36))

</details>

<details>
<summary>fralau/mkdocs_macros_plugin (mkdocs-macros-plugin)</summary>

###
[`v1.3.7`](https://redirect.github.com/fralau/mkdocs_macros_plugin/blob/HEAD/CHANGELOG.md#137-2024-10-18)

[Compare
Source](https://redirect.github.com/fralau/mkdocs_macros_plugin/compare/v1.3.6...v1.3.7)

- Fixed: incompatibility with the d2 module
([#&#8203;249](https://redirect.github.com/fralau/mkdocs_macros_plugin/issues/249))

###
[`v1.3.6`](https://redirect.github.com/fralau/mkdocs_macros_plugin/blob/HEAD/CHANGELOG.md#136-2024-10-17)

[Compare
Source](https://redirect.github.com/fralau/mkdocs_macros_plugin/compare/v1.3.5...v1.3.6)

- Added: complete test framework, using pytest and Mkdocs-Test
([#&#8203;244](https://redirect.github.com/fralau/mkdocs_macros_plugin/issues/244))
    A number of automated test cases are implemented.
- Changed: move from setup.py to pyproject.toml
([#&#8203;250](https://redirect.github.com/fralau/mkdocs_macros_plugin/issues/250))

###
[`v1.3.5`](https://redirect.github.com/fralau/mkdocs_macros_plugin/compare/v1.3.4...v1.3.5)

[Compare
Source](https://redirect.github.com/fralau/mkdocs_macros_plugin/compare/v1.3.4...v1.3.5)

</details>

<details>
<summary>mkdocs/mkdocs-redirects (mkdocs-redirects)</summary>

###
[`v1.2.2`](https://redirect.github.com/mkdocs/mkdocs-redirects/releases/tag/v1.2.2)

[Compare
Source](https://redirect.github.com/mkdocs/mkdocs-redirects/compare/v1.2.1...v1.2.2)

#### What's Changed

- Document redirection link by
[@&#8203;dp1218](https://redirect.github.com/dp1218) in
[https://github.com/mkdocs/mkdocs-redirects/pull/60](https://redirect.github.com/mkdocs/mkdocs-redirects/pull/60)
- Remove `noindex` by
[@&#8203;samuelcolvin](https://redirect.github.com/samuelcolvin) in
[https://github.com/mkdocs/mkdocs-redirects/pull/66](https://redirect.github.com/mkdocs/mkdocs-redirects/pull/66)

#### New Contributors

- [@&#8203;dp1218](https://redirect.github.com/dp1218) made their first
contribution in
[https://github.com/mkdocs/mkdocs-redirects/pull/60](https://redirect.github.com/mkdocs/mkdocs-redirects/pull/60)
- [@&#8203;samuelcolvin](https://redirect.github.com/samuelcolvin) made
their first contribution in
[https://github.com/mkdocs/mkdocs-redirects/pull/66](https://redirect.github.com/mkdocs/mkdocs-redirects/pull/66)
- [@&#8203;pawamoy](https://redirect.github.com/pawamoy) made their
first contribution in
[https://github.com/mkdocs/mkdocs-redirects/pull/67](https://redirect.github.com/mkdocs/mkdocs-redirects/pull/67)

**Full Changelog**:
mkdocs/mkdocs-redirects@v1.2.1...v1.2.2

###
[`v1.2.1`](https://redirect.github.com/mkdocs/mkdocs-redirects/releases/tag/v1.2.1)

[Compare
Source](https://redirect.github.com/mkdocs/mkdocs-redirects/compare/v1.2.0...v1.2.1)

-   Fix deprecation warning about `warning_filter`

###
[`v1.2.0`](https://redirect.github.com/mkdocs/mkdocs-redirects/releases/tag/v1.2.0)

[Compare
Source](https://redirect.github.com/mkdocs/mkdocs-redirects/compare/v1.1.0...v1.2.0)

- For better interoperability with plugins, the redirect target paths
are picked up from the corresponding MkDocs `File` and not re-computed
by simple substitution.
([#&#8203;45](https://redirect.github.com/mkdocs/mkdocs-redirects/issues/45))

-   Drop Python 2.7 support

-   Bump minimal MkDocs version to 1.1.1

-   Remove warning about old `redirects` config

###
[`v1.1.0`](https://redirect.github.com/mkdocs/mkdocs-redirects/releases/tag/v1.1.0)

[Compare
Source](https://redirect.github.com/mkdocs/mkdocs-redirects/compare/v1.0.6...v1.1.0)

- Redirect destination paths can now contain #fragments
([#&#8203;42](https://redirect.github.com/mkdocs/mkdocs-redirects/issues/42))

    Example config:

    ```yaml
    plugins:
      - redirects:
          redirect_maps:
            some/path/examples.md: foo/index.md#examples
    ```

\-- this will now correctly redirect to `foo/#examples` without messing
up the path

Note that this applies only to the *destination* paths, there's still no
handling for fragments in *source* paths (those specified as map keys).

###
[`v1.0.6`](https://redirect.github.com/mkdocs/mkdocs-redirects/releases/tag/v1.0.6)

[Compare
Source](https://redirect.github.com/mkdocs/mkdocs-redirects/compare/v1.0.5...v1.0.6)

- Correctly use UTF-8 file encoding even on Windows
([#&#8203;41](https://redirect.github.com/mkdocs/mkdocs-redirects/issues/41))

###
[`v1.0.5`](https://redirect.github.com/mkdocs/mkdocs-redirects/releases/tag/v1.0.5)

[Compare
Source](https://redirect.github.com/mkdocs/mkdocs-redirects/compare/v1.0.4...v1.0.5)

- Normalize only capitalized `README.md` files to `index`
([#&#8203;37](https://redirect.github.com/mkdocs/mkdocs-redirects/issues/37))

###
[`v1.0.4`](https://redirect.github.com/mkdocs/mkdocs-redirects/releases/tag/v1.0.4)

[Compare
Source](https://redirect.github.com/mkdocs/mkdocs-redirects/compare/v1.0.3...v1.0.4)

-   Transferred ownership of the package to mkdocs organization.
- Fix regression from 1.0.2 when handling index pages with
`use_directory_urls: false`
([#&#8203;25](https://redirect.github.com/mkdocs/mkdocs-redirects/issues/25))
- Fix the content of produced redirect pages on Windows
([#&#8203;34](https://redirect.github.com/mkdocs/mkdocs-redirects/issues/34))

###
[`v1.0.3`](https://redirect.github.com/mkdocs/mkdocs-redirects/releases/tag/v1.0.3)

[Compare
Source](https://redirect.github.com/mkdocs/mkdocs-redirects/compare/v1.0.2...v1.0.3)

- Fix crash on redirect targets to `index.md` or `README.md` with
`use_directory_urls: true`
([#&#8203;21](https://redirect.github.com/mkdocs/mkdocs-redirects/issues/21))

###
[`v1.0.2`](https://redirect.github.com/mkdocs/mkdocs-redirects/releases/tag/v1.0.2)

[Compare
Source](https://redirect.github.com/mkdocs/mkdocs-redirects/compare/v1.0.1...v1.0.2)

- Use relative paths for redirects
([#&#8203;19](https://redirect.github.com/mkdocs/mkdocs-redirects/issues/19))
-   Fix for python 2/3 compatibility.

###
[`v1.0.1`](https://redirect.github.com/mkdocs/mkdocs-redirects/releases/tag/v1.0.1)

[Compare
Source](https://redirect.github.com/mkdocs/mkdocs-redirects/compare/v1.0.0...v1.0.1)

https://pypi.org/project/mkdocs-redirects/1.0.1/

- Fixes path separator for Windows.
([#&#8203;9](https://redirect.github.com/mkdocs/mkdocs-redirects/issues/9))
- Use site_url as root for redirect paths.
([#&#8203;12](https://redirect.github.com/mkdocs/mkdocs-redirects/issues/12))
- Make redirects more SEO friendly (set canonical rel link, noindex for
robots)
([#&#8203;7](https://redirect.github.com/mkdocs/mkdocs-redirects/issues/7))

</details>

<details>
<summary>pytest-dev/pytest (pytest)</summary>

###
[`v8.3.4`](https://redirect.github.com/pytest-dev/pytest/releases/tag/8.3.4)

[Compare
Source](https://redirect.github.com/pytest-dev/pytest/compare/8.3.3...8.3.4)

### pytest 8.3.4 (2024-12-01)

#### Bug fixes

-
[#&#8203;12592](https://redirect.github.com/pytest-dev/pytest/issues/12592):
Fixed `KeyError`{.interpreted-text role="class"} crash when using
`--import-mode=importlib` in a directory layout where a directory
contains a child directory with the same name.

-
[#&#8203;12818](https://redirect.github.com/pytest-dev/pytest/issues/12818):
Assertion rewriting now preserves the source ranges of the original
instructions, making it play well with tools that deal with the `AST`,
like [executing](https://redirect.github.com/alexmojaki/executing).

-
[#&#8203;12849](https://redirect.github.com/pytest-dev/pytest/issues/12849):
ANSI escape codes for colored output now handled correctly in
`pytest.fail`{.interpreted-text role="func"} with
\[pytrace=False]{.title-ref}.

-
[#&#8203;9353](https://redirect.github.com/pytest-dev/pytest/issues/9353):
`pytest.approx`{.interpreted-text role="func"} now uses strict equality
when given booleans.

#### Improved documentation

-
[#&#8203;10558](https://redirect.github.com/pytest-dev/pytest/issues/10558):
Fix ambiguous docstring of `pytest.Config.getoption`{.interpreted-text
role="func"}.

-
[#&#8203;10829](https://redirect.github.com/pytest-dev/pytest/issues/10829):
Improve documentation on the current handling of the `--basetemp` option
and its lack of retention functionality (`temporary directory location
and retention`{.interpreted-text role="ref"}).

-
[#&#8203;12866](https://redirect.github.com/pytest-dev/pytest/issues/12866):
Improved cross-references concerning the `recwarn`{.interpreted-text
role="fixture"} fixture.

-
[#&#8203;12966](https://redirect.github.com/pytest-dev/pytest/issues/12966):
Clarify `filterwarnings`{.interpreted-text role="ref"} docs on filter
precedence/order when using multiple `@pytest.mark.filterwarnings
<pytest.mark.filterwarnings ref>`{.interpreted-text role="ref"} marks.

#### Contributor-facing changes

-
[#&#8203;12497](https://redirect.github.com/pytest-dev/pytest/issues/12497):
Fixed two failing pdb-related tests on Python 3.13.

###
[`v8.3.3`](https://redirect.github.com/pytest-dev/pytest/releases/tag/8.3.3)

[Compare
Source](https://redirect.github.com/pytest-dev/pytest/compare/8.3.2...8.3.3)

# pytest 8.3.3 (2024-09-09)

## Bug fixes

-
[#&#8203;12446](https://redirect.github.com/pytest-dev/pytest/issues/12446):
Avoid calling `@property` (and other instance descriptors) during
fixture discovery -- by `asottile`{.interpreted-text role="user"}

-
[#&#8203;12659](https://redirect.github.com/pytest-dev/pytest/issues/12659):
Fixed the issue of not displaying assertion failure differences when
using the parameter `--import-mode=importlib` in pytest>=8.1.

-
[#&#8203;12667](https://redirect.github.com/pytest-dev/pytest/issues/12667):
Fixed a regression where type change in
\[ExceptionInfo.errisinstance]{.title-ref} caused \[mypy]{.title-ref} to
fail.

-
[#&#8203;12744](https://redirect.github.com/pytest-dev/pytest/issues/12744):
Fixed typing compatibility with Python 3.9 or less -- replaced
\[typing.Self]{.title-ref} with \[typing_extensions.Self]{.title-ref} --
by `Avasam`{.interpreted-text role="user"}

-
[#&#8203;12745](https://redirect.github.com/pytest-dev/pytest/issues/12745):
Fixed an issue with backslashes being incorrectly converted in nodeid
paths on Windows, ensuring consistent path handling across environments.

-
[#&#8203;6682](https://redirect.github.com/pytest-dev/pytest/issues/6682):
Fixed bug where the verbosity levels where not being respected when
printing the "msg" part of failed assertion (as in `assert condition,
msg`).

-
[#&#8203;9422](https://redirect.github.com/pytest-dev/pytest/issues/9422):
Fix bug where disabling the terminal plugin via `-p no:terminal` would
cause crashes related to missing the `verbose` option.

    \-- by `GTowers1`{.interpreted-text role="user"}

## Improved documentation

-
[#&#8203;12663](https://redirect.github.com/pytest-dev/pytest/issues/12663):
Clarify that the \[pytest_deselected]{.title-ref} hook should be called
from \[pytest_collection_modifyitems]{.title-ref} hook implementations
when items are deselected.
-
[#&#8203;12678](https://redirect.github.com/pytest-dev/pytest/issues/12678):
Remove erroneous quotes from \[tmp_path_retention_policy]{.title-ref}
example in docs.

## Miscellaneous internal changes

-
[#&#8203;12769](https://redirect.github.com/pytest-dev/pytest/issues/12769):
Fix typos discovered by codespell and add codespell to pre-commit hooks.

</details>

<details>
<summary>pytest-dev/pytest-asyncio (pytest-asyncio)</summary>

###
[`v0.25.2`](https://redirect.github.com/pytest-dev/pytest-asyncio/releases/tag/v0.25.2):
pytest-asyncio 0.25.2

[Compare
Source](https://redirect.github.com/pytest-dev/pytest-asyncio/compare/v0.25.1...v0.25.2)

- Call `loop.shutdown_asyncgens()` before closing the event loop to
ensure async generators are closed in the same manner as `asyncio.run`
does
[#&#8203;1034](https://redirect.github.com/pytest-dev/pytest-asyncio/pull/1034)

###
[`v0.25.1`](https://redirect.github.com/pytest-dev/pytest-asyncio/releases/tag/v0.25.1):
pytest-asyncio 0.25.1

[Compare
Source](https://redirect.github.com/pytest-dev/pytest-asyncio/compare/v0.25.0...v0.25.1)

- Fixes an issue that caused a broken event loop when a function-scoped
test was executed in between two tests with wider loop scope
[#&#8203;950](https://redirect.github.com/pytest-dev/pytest-asyncio/issues/950)
- Improves test collection speed in auto mode
[#&#8203;1020](https://redirect.github.com/pytest-dev/pytest-asyncio/pull/1020)
- Corrects the warning that is emitted upon redefining the event_loop
fixture

###
[`v0.25.0`](https://redirect.github.com/pytest-dev/pytest-asyncio/releases/tag/v0.25.0):
pytest-asyncio 0.25.0

[Compare
Source](https://redirect.github.com/pytest-dev/pytest-asyncio/compare/v0.24.0...v0.25.0)

##### 0.25.0 (2024-12-13)

- Deprecated: Added warning when asyncio test requests async
`@pytest.fixture` in strict mode. This will become an error in a future
version of flake8-asyncio.
[#&#8203;979](https://redirect.github.com/pytest-dev/pytest-asyncio/pull/979)
- Updates the error message about *pytest.mark.asyncio*'s *scope*
keyword argument to say *loop_scope* instead.
[#&#8203;1004](https://redirect.github.com/pytest-dev/pytest-asyncio/pull/1004)
- Verbose log displays correct parameter name:
asyncio_default_fixture_loop_scope
[#&#8203;990](https://redirect.github.com/pytest-dev/pytest-asyncio/pull/990)
- Propagates *contextvars* set in async fixtures to other fixtures and
tests on Python 3.11 and above.
[#&#8203;1008](https://redirect.github.com/pytest-dev/pytest-asyncio/pull/1008)

###
[`v0.24.0`](https://redirect.github.com/pytest-dev/pytest-asyncio/releases/tag/v0.24.0):
pytest-asyncio 0.24.0

[Compare
Source](https://redirect.github.com/pytest-dev/pytest-asyncio/compare/v0.23.8...v0.24.0)

### 0.24.0 (2024-08-22)

-   BREAKING: Updated minimum supported pytest version to v8.2.0
- Adds an optional *loop_scope* keyword argument to
*pytest.mark.asyncio*. This argument controls which event loop is used
to run the marked async test.
[#&#8203;706](https://redirect.github.com/pytest-dev/pytest-asyncio/issues/706),
[#&#8203;871](https://redirect.github.com/pytest-dev/pytest-asyncio/pull/871)
- Deprecates the optional *scope* keyword argument to
*pytest.mark.asyncio* for API consistency with `pytest_asyncio.fixture`.
Users are encouraged to use the *loop_scope* keyword argument, which
does exactly the same.
- Raises an error when passing *scope* or *loop_scope* as a positional
argument to `@pytest.mark.asyncio`.
[#&#8203;812](https://redirect.github.com/pytest-dev/pytest-asyncio/issues/812)
- Fixes a bug that caused module-scoped async fixtures to fail when
reused in other modules
[#&#8203;862](https://redirect.github.com/pytest-dev/pytest-asyncio/issues/862)
[#&#8203;668](https://redirect.github.com/pytest-dev/pytest-asyncio/issues/668)

</details>

<details>
<summary>seantis/pytest-codecov (pytest-codecov)</summary>

###
[`v0.6.1`](https://redirect.github.com/seantis/pytest-codecov/releases/tag/0.6.1)

[Compare
Source](https://redirect.github.com/seantis/pytest-codecov/compare/0.6.0...0.6.1)

-   Fixes Codecov storage endpoint

###
[`v0.6.0`](https://redirect.github.com/seantis/pytest-codecov/releases/tag/0.6.0)

[Compare
Source](https://redirect.github.com/seantis/pytest-codecov/compare/0.5.1...0.6.0)

-   Adds support for Python 3.12 & 3.13
- Fixes a bug where with `pytest-cov >= 5` and setting `cov-report=` the
report was not uploaded to CodeCov

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "* 0-3 1 * *" (UTC), 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.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config
help](https://redirect.github.com/renovatebot/renovate/discussions) if
that's undesired.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/marimo-team/marimo).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xMDcuMCIsInVwZGF0ZWRJblZlciI6IjM5LjEwNy4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Myles Scolnick <[email protected]>
  • Loading branch information
renovate[bot] and mscolnick authored Jan 14, 2025
1 parent 19f4628 commit f59ea38
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 25 deletions.
22 changes: 11 additions & 11 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,12 @@ docs = [
"mkdocs-material>=9.5.49",
"mkdocstrings[python]>=0.27.0",
"mkdocs-material-extensions>=1.3.1",
"mkdocs-autorefs>=1.0.1",
"mkdocs-git-revision-date-localized-plugin>=1.2.4",
"mkdocs-autorefs>=1.2.0",
"mkdocs-git-revision-date-localized-plugin>=1.3.0",
"mkdocs-minify-plugin>=0.8.0",
"mkdocs-glightbox>=0.3.7",
"mkdocs-macros-plugin>=1.3.0",
"mkdocs-redirects>=1.0.0",
"mkdocs-glightbox>=0.4.0",
"mkdocs-macros-plugin>=1.3.7",
"mkdocs-redirects>=1.2.2",
"mkdocs-click>=0.8.1",
"mike>=2.0.0", # for versioning
"pillow>=10.2.0", # for social cards
Expand Down Expand Up @@ -192,10 +192,10 @@ extra-dependencies = [
# For server testing
"httpx~=0.27.0",
"matplotlib~=3.9.2",
"pytest~=8.3.2",
"pytest~=8.3.4",
"pytest-timeout~=2.3.1",
"pytest-codecov~=0.5.1",
"pytest-asyncio~=0.23.8",
"pytest-codecov~=0.6.1",
"pytest-asyncio~=0.25.2",
]

[[tool.hatch.envs.test.matrix]]
Expand All @@ -220,10 +220,10 @@ extra-dependencies = [
"hypothesis~=6.102.1",
"httpx~=0.27.0",
"matplotlib~=3.9.2",
"pytest~=8.3.2",
"pytest~=8.3.4",
"pytest-timeout~=2.3.1",
"pytest-codecov~=0.5.1",
"pytest-asyncio~=0.23.8",
"pytest-codecov~=0.6.1",
"pytest-asyncio~=0.25.2",
# For testing mo.ui.chart, table, ...
"vl-convert-python",
"pyarrow",
Expand Down
33 changes: 19 additions & 14 deletions tests/_server/api/test_interrupt.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
# Copyright 2024 Marimo. All rights reserved.
from __future__ import annotations

import asyncio
from unittest.mock import Mock, patch

from marimo._server.api.interrupt import InterruptHandler


def test_interrupt_handler() -> None:
async def test_interrupt_handler() -> None:
shutdown_mock = Mock()

# Create an instance of InterruptHandler with quiet mode disabled
Expand All @@ -13,21 +16,23 @@ def test_interrupt_handler() -> None:
# Register the interrupt handler
interrupt_handler.register()

# Simulate Ctrl+C signal
interrupt_handler.loop.call_soon(interrupt_handler.loop.stop)
interrupt_handler.loop.call_soon(interrupt_handler._interrupt_handler)
# Mock the input function before simulating Ctrl+C
with patch("builtins.input", return_value="y"):
# Simulate Ctrl+C signal
interrupt_handler.loop.call_soon(interrupt_handler._interrupt_handler)
await asyncio.sleep(0) # Let the event loop process the signal

# Run the event loop to process the signal
interrupt_handler.loop.run_forever()
# Assert that the shutdown callable was called
shutdown_mock.assert_called_once()

# Assert that the shutdown callable was not called yet
shutdown_mock.assert_not_called()
# Reset the mock for the next test
shutdown_mock.reset_mock()

# Simulate user input 'y' for yes
with patch("builtins.input", return_value="y"):
interrupt_handler.loop.call_soon(interrupt_handler.loop.stop)
# Test with 'n' response
with patch("builtins.input", return_value="n"):
# Simulate Ctrl+C signal
interrupt_handler.loop.call_soon(interrupt_handler._interrupt_handler)
interrupt_handler.loop.run_forever()
await asyncio.sleep(0) # Let the event loop process the signal

# Assert that the shutdown callable was called after user input
shutdown_mock.assert_called_once()
# Assert that the shutdown callable was not called
shutdown_mock.assert_not_called()

0 comments on commit f59ea38

Please sign in to comment.