Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mayeut committed Jan 2, 2024
1 parent fa23ecf commit 1a8ad5b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

- uses: wntrblm/[email protected]
with:
python-versions: "3.8, 3.11, pypy3.10"
python-versions: "3.8, 3.12, pypy3.10"

- name: Install Intel SDE
run: |
Expand Down
5 changes: 2 additions & 3 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def test(session: nox.Session) -> None:
session.run("pytest", *session.posargs, env=env)


@nox.session(python=["3.8", "3.11", "pypy3.10"])
@nox.session(python=["3.8", "3.12", "pypy3.10"])
def _coverage(session: nox.Session) -> None:
"""internal coverage run. Do not run manually"""
with_sde = "--with-sde" in session.posargs
Expand All @@ -86,7 +86,6 @@ def _coverage(session: nox.Session) -> None:
"--cov=pybase64",
"--cov=tests",
"--cov-append",
"--cov-branch",
"--cov-report=",
)
pytest_command = ("pytest", *coverage_args)
Expand Down Expand Up @@ -144,7 +143,7 @@ def coverage(session: nox.Session) -> None:
posargs.add("--report")
session.notify("_coverage-3.8", ["--clean"])
session.notify("_coverage-pypy3.10", [])
session.notify("_coverage-3.11", posargs)
session.notify("_coverage-3.12", posargs)


@nox.session(python="3.11")
Expand Down
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ test-requires = "-r requirements-test.txt"
test-command = "pytest {project}/tests"
build-verbosity = 1

[tool.coverage.run]
branch = true

[tool.coverage.report]
exclude_lines = ["pragma: no cover", "class .*\\(Protocol\\):", "if TYPE_CHECKING:"]

[tool.mypy]
python_version = "3.7"
files = [
Expand Down
2 changes: 1 addition & 1 deletion src/pybase64/_typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import sys

if sys.version_info < (3, 8):
if sys.version_info < (3, 8): # pragma: no cover
from typing_extensions import Protocol
else:
from typing import Protocol
Expand Down

0 comments on commit 1a8ad5b

Please sign in to comment.