Skip to content

Commit

Permalink
chore(deps-dev): bump pytest-cov from 4.1.0 to 5.0.0 (#454)
Browse files Browse the repository at this point in the history
Bumps [pytest-cov](https://github.com/pytest-dev/pytest-cov) from 4.1.0
to 5.0.0.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/pytest-dev/pytest-cov/blob/master/CHANGELOG.rst">pytest-cov's
changelog</a>.</em></p>
<blockquote>
<h2>5.0.0 (2024-03-24)</h2>
<ul>
<li>Removed support for xdist rsync (now deprecated).
Contributed by Matthias Reichenbach in
<code>[#623](pytest-dev/pytest-cov#623)
&lt;https://github.com/pytest-dev/pytest-cov/pull/623&gt;</code>_.</li>
<li>Switched docs theme to Furo.</li>
<li>Various legacy Python cleanup and CI improvements.
Contributed by Christian Clauss and Hugo van Kemenade in
<code>[#630](pytest-dev/pytest-cov#630)
&lt;https://github.com/pytest-dev/pytest-cov/pull/630&gt;</code><em>,
<code>[#631](pytest-dev/pytest-cov#631)
&lt;https://github.com/pytest-dev/pytest-cov/pull/631&gt;</code></em>,
<code>[#632](pytest-dev/pytest-cov#632)
&lt;https://github.com/pytest-dev/pytest-cov/pull/632&gt;</code>_ and
<code>[#633](pytest-dev/pytest-cov#633)
&lt;https://github.com/pytest-dev/pytest-cov/pull/633&gt;</code>_.</li>
<li>Added a <code>pyproject.toml</code> example in the docs.
Contributed by Dawn James in
<code>[#626](pytest-dev/pytest-cov#626)
&lt;https://github.com/pytest-dev/pytest-cov/pull/626&gt;</code>_.</li>
<li>Modernized project's pre-commit hooks to use ruff. Initial POC
contributed by
Christian Clauss in
<code>[#584](pytest-dev/pytest-cov#584)
&lt;https://github.com/pytest-dev/pytest-cov/pull/584&gt;</code>_.</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/pytest-dev/pytest-cov/commit/5295ce01c84262cec88f31255e9ac538718f3047"><code>5295ce0</code></a>
Bump version: 4.1.0 → 5.0.0</li>
<li><a
href="https://github.com/pytest-dev/pytest-cov/commit/1181b067972bf94569f8011f3b18f271690f9ab1"><code>1181b06</code></a>
Update changelog.</li>
<li><a
href="https://github.com/pytest-dev/pytest-cov/commit/9757222e2e044361e70125ebdd96e5eb87395983"><code>9757222</code></a>
Fix a minor grammar error (<a
href="https://redirect.github.com/pytest-dev/pytest-cov/issues/636">#636</a>)</li>
<li><a
href="https://github.com/pytest-dev/pytest-cov/commit/9f5cd81a0dbe3fe41681efdbef516c08988fe8ff"><code>9f5cd81</code></a>
Cleanup releasing instructions. Closes <a
href="https://redirect.github.com/pytest-dev/pytest-cov/issues/616">#616</a>.</li>
<li><a
href="https://github.com/pytest-dev/pytest-cov/commit/93b5047ec5050d63c10a6fe16a09b671a7a03df8"><code>93b5047</code></a>
Add test for pyproject.toml loading without explicit --cov-config. Ref
<a
href="https://redirect.github.com/pytest-dev/pytest-cov/issues/508">#508</a>.</li>
<li><a
href="https://github.com/pytest-dev/pytest-cov/commit/ff50860d7c67b920503745d92a3f0944cf41f982"><code>ff50860</code></a>
docs: add config instructions for pyproject.toml.</li>
<li><a
href="https://github.com/pytest-dev/pytest-cov/commit/4a5a4b5fa4b1c63ddcab5cbc1813798c9b6f1d36"><code>4a5a4b5</code></a>
Keep GitHub Actions up to date with GitHub's Dependabot</li>
<li><a
href="https://github.com/pytest-dev/pytest-cov/commit/1d7f55963d5138f41c452a946f7cca7e0b6ee8b2"><code>1d7f559</code></a>
Fix or remove URLs that are causing docs tests to fail</li>
<li><a
href="https://github.com/pytest-dev/pytest-cov/commit/6a5af8e85b8242ac815f33e26adf9068f5f0ebc3"><code>6a5af8e</code></a>
Update changelog.</li>
<li><a
href="https://github.com/pytest-dev/pytest-cov/commit/d9fe8dfed15023d3410dd299c5092e755b8981c2"><code>d9fe8df</code></a>
Switch to furo. Closes <a
href="https://redirect.github.com/pytest-dev/pytest-cov/issues/618">#618</a>.</li>
<li>Additional commits viewable in <a
href="https://github.com/pytest-dev/pytest-cov/compare/v4.1.0...v5.0.0">compare
view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=pytest-cov&package-manager=pip&previous-version=4.1.0&new-version=5.0.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

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-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

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 merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)

</details>
  • Loading branch information
kai687 committed Apr 2, 2024
2 parents 04407a2 + bbf8c9b commit 56871c2
Show file tree
Hide file tree
Showing 9 changed files with 47 additions and 71 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Expand Up @@ -17,7 +17,7 @@ jobs:

- name: Install dependencies
run: |
pip install -U pip pipx nox poetry-plugin-export nox-poetry
pip install -U pip pipx nox poetry-plugin-export
pip --version
nox --version
poetry --version
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Expand Up @@ -22,7 +22,7 @@ jobs:

- name: Install dependencies
run: |
pip install -U pip poetry nox nox-poetry poetry-plugin-export
pip install -U pip poetry nox poetry-plugin-export
pip --version
nox --version
poetry --version
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Expand Up @@ -22,7 +22,7 @@ jobs:

- name: Update pip and install pipx
run: |
pip install -U pip nox nox-poetry poetry-plugin-export yamllint
pip install -U pip nox poetry-plugin-export yamllint
pip --version
nox --version
poetry --version
Expand Down
2 changes: 1 addition & 1 deletion README.md
@@ -1,6 +1,6 @@
# Sphinx awesome codelinter

[![License](https://img.shields.io/github/license/kai687/sphinxawesome-codelinter?color=blue&style=for-the-badge)](https://github.com/kai687/sphinxawesome-codelinter/blob/master/LICENSE)
[![License](https://img.shields.io/github/license/kai687/sphinxawesome-codelinter?color=blue&style=for-the-badge)](https://github.com/kai687/sphinxawesome-codelinter/blob/main/LICENSE)
[![PyPI version](https://img.shields.io/pypi/v/sphinxawesome-codelinter?style=for-the-badge)](https://pypi.org/project/sphinxawesome-codelinter)
[![PyTest Status](https://img.shields.io/github/workflow/status/kai687/sphinxawesome-codelinter/Run%20unit%20tests%20against%20different%20versions%20of%20Python?label=tests&style=for-the-badge)](https://github.com/kai687/sphinxawesome-codelinter/actions?query=workflow%3A%22Run+unit+tests%22)
[![Codecov](https://img.shields.io/codecov/c/gh/kai687/sphinxawesome-codelinter?style=for-the-badge)](https://codecov.io/gh/kai687/sphinxawesome-codelinter)
Expand Down
9 changes: 5 additions & 4 deletions noxfile.py
@@ -1,4 +1,5 @@
"""Nox sessions."""

from __future__ import annotations

import tempfile
Expand Down Expand Up @@ -67,16 +68,16 @@ def lint(session: nox.Session) -> None:
"""Lint with ruff."""
deps = ["ruff"]
session.install("lint", ".", *deps)
session.run("ruff", ".")
session.run("ruff", "check", ".")


@nox.session(python=python_versions[-1])
def fmt(session: nox.Session) -> None:
"""Format code."""
deps = ["ruff", "black"]
deps = ["ruff"]
session.install("lint", ".", *deps)
session.run("ruff", "check", ".", "--select", "I", "--fix")
session.run("black", ".")
session.run("ruff", "check", ".", "--fix")
session.run("ruff", "format", ".")


@nox.session(python=["3.8", "3.12"])
Expand Down
76 changes: 24 additions & 52 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 9 additions & 10 deletions pyproject.toml
Expand Up @@ -28,18 +28,19 @@ sphinx = [
[tool.poetry.group.dev.dependencies]
pytest = "^8.1"
yamllint = "^1.35"
pytest-cov = "^4.0"
pytest-cov = "^5.0"
coverage = {extras = ["toml"], version = "^7.4"}
black = "^24.3"
mypy = "^1.9"
typeguard = ">=2.13.3,<5.0.0"
safety = "^3.0.1"
types-docutils = ">=0.19.1,<0.21.0"

[tool.poetry.group.lint.dependencies]
black = "^24.3"
pre-commit = "^3.1.1"
ruff = ">=0.0.254,<0.3.5"
pre-commit = [
{ version = "^3.5", python = ">=3.8,<3.9"},
{ version = "^3.6", python = ">=3.9,<=3.12"},
]
ruff = ">=0.0.269,<0.3.5"

[tool.coverage.paths]
source = ["src"]
Expand All @@ -66,13 +67,11 @@ warn_unused_ignores = true
# module = ["nox"]
# ignore_missing_imports = true

[tool.ruff]
[tool.ruff.lint]
select = ["E", "F", "B", "Q", "W", "I", "C90", "D", "UP", "YTT", "S", "ANN", "SIM", "N"]
target-version = "py38"
ignore = ["ANN401", "D203", "D213"]
extend-exclude = ["*.pyi"]
ignore = ["ANN401", "S603", "D203", "D213"]

[tool.ruff.per-file-ignores]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["S101"]

[tool.ruff.lint.pydocstyle]
Expand Down
5 changes: 4 additions & 1 deletion src/sphinxawesome/codelinter/__init__.py
Expand Up @@ -88,7 +88,10 @@ def write_doc(self: "CodeLinter", docname: str, doctree: nodes.Node) -> None:
logger.debug(code.astext())
try:
pipe = Popen(
cmd, stdin=PIPE, stdout=PIPE, stderr=STDOUT # noqa: S603
cmd,
stdin=PIPE,
stdout=PIPE,
stderr=STDOUT,
)
out, _ = pipe.communicate(input=io_obj.read())
except FileNotFoundError:
Expand Down
1 change: 1 addition & 0 deletions tests/conftest.py
@@ -1,4 +1,5 @@
"""Common configurations and fixtures for Pytest."""

from typing import Any

import pytest
Expand Down

0 comments on commit 56871c2

Please sign in to comment.