Skip to content

Commit 748131e

Browse files
committed
noxfile.py file commented as it'll be too complicated to setup at this time. Workflows updated
1 parent c0c7c64 commit 748131e

File tree

2 files changed

+39
-38
lines changed

2 files changed

+39
-38
lines changed

Diff for: .github/workflows/tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ jobs:
8080

8181
strategy:
8282
matrix:
83-
os: [ubuntu-latest, windows-latest]
83+
os: [ubuntu-latest]
8484
python-version: ["3.9", "3.10", "3.11", "3.12"]
8585

8686
steps:

Diff for: noxfile.py

+38-37
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
"""Nox sessions."""
22
# import shlex
33
# import shutil
4-
import sys
5-
from pathlib import Path
4+
# import sys
5+
# from pathlib import Path
66

7-
# from textwrap import dedent
7+
# # from textwrap import dedent
88
import nox
9-
from nox import Session, session
9+
10+
# from nox import Session, session
1011

1112
"""
1213
Helps for future developer to implement tests using Nox
@@ -57,48 +58,48 @@
5758
# activate_virtualenv_in_precommit_hooks(session)
5859

5960

60-
@session(python=python_versions)
61-
def mypy(session: Session) -> None:
62-
"""Type-check using mypy."""
63-
args = session.posargs or ["src", "tests", "docs/conf.py"]
64-
session.install(".[lint]")
65-
session.install("mypy", "pytest")
66-
session.run("mypy", *args)
67-
if not session.posargs:
68-
session.run("mypy", f"--python-executable={sys.executable}", "noxfile.py")
61+
# @session(python=python_versions)
62+
# def mypy(session: Session) -> None:
63+
# """Type-check using mypy."""
64+
# args = session.posargs or ["src", "tests", "docs/conf.py"]
65+
# session.install(".[lint]")
66+
# session.install("mypy", "pytest")
67+
# session.run("mypy", *args)
68+
# if not session.posargs:
69+
# session.run("mypy", f"--python-executable={sys.executable}", "noxfile.py")
6970

7071

71-
@session(python=python_versions)
72-
def tests(session: Session) -> None:
73-
"""Run the test suite."""
74-
session.install(".[test]")
75-
session.install("coverage[toml]", "pytest", "pygments")
76-
try:
77-
session.run("coverage", "run", "--parallel", "-m", "pytest", *session.posargs)
78-
finally:
79-
if session.interactive:
80-
session.notify("coverage", posargs=[])
72+
# @session(python=python_versions)
73+
# def tests(session: Session) -> None:
74+
# """Run the test suite."""
75+
# session.install(".[test]")
76+
# session.install("coverage[toml]", "pytest", "pygments")
77+
# try:
78+
# session.run("coverage", "run", "--parallel", "-m", "pytest", *session.posargs)
79+
# finally:
80+
# if session.interactive:
81+
# session.notify("coverage", posargs=[])
8182

8283

83-
@session(python=python_versions[0])
84-
def coverage(session: Session) -> None:
85-
"""Produce the coverage report."""
86-
args = session.posargs or ["report"]
84+
# @session(python=python_versions[0])
85+
# def coverage(session: Session) -> None:
86+
# """Produce the coverage report."""
87+
# args = session.posargs or ["report"]
8788

88-
session.install("coverage[toml]")
89+
# session.install("coverage[toml]")
8990

90-
if not session.posargs and any(Path().glob(".coverage.*")):
91-
session.run("coverage", "combine")
91+
# if not session.posargs and any(Path().glob(".coverage.*")):
92+
# session.run("coverage", "combine")
9293

93-
session.run("coverage", *args)
94+
# session.run("coverage", *args)
9495

9596

96-
@session(python=python_versions[0])
97-
def typeguard(session: Session) -> None:
98-
"""Runtime type checking using Typeguard."""
99-
session.install(".[dev]")
100-
session.install("pytest", "typeguard", "pygments")
101-
session.run("pytest", f"--typeguard-packages={package}", *session.posargs)
97+
# @session(python=python_versions[0])
98+
# def typeguard(session: Session) -> None:
99+
# """Runtime type checking using Typeguard."""
100+
# session.install(".[dev]")
101+
# session.install("pytest", "typeguard", "pygments")
102+
# session.run("pytest", f"--typeguard-packages={package}", *session.posargs)
102103

103104

104105
# @session(name="docs-build", python=python_versions[0])

0 commit comments

Comments
 (0)