Skip to content

Commit f3d777d

Browse files
committed
fix: get checks passing
Signed-off-by: Henry Schreiner <[email protected]>
1 parent e698882 commit f3d777d

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

noxfile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def pylint(session: nox.Session) -> None:
2929
"""
3030
# This needs to be installed into the package environment, and is slower
3131
# than a pre-commit check
32-
session.install(".", "pylint")
32+
session.install("-e.", "pylint")
3333
session.run("pylint", "scikit_build_cli", *session.posargs)
3434

3535

@@ -38,7 +38,7 @@ def tests(session: nox.Session) -> None:
3838
"""
3939
Run the unit and regular tests.
4040
"""
41-
session.install(".[test]")
41+
session.install("-e.[test]")
4242
session.run("pytest", *session.posargs)
4343

4444

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,4 +165,7 @@ messages_control.disable = [
165165
"line-too-long",
166166
"missing-module-docstring",
167167
"wrong-import-position",
168+
"unused-argument",
169+
"broad-exception-caught",
170+
"no-value-for-parameter", # Triggered by calling click fn
168171
]

src/scikit_build_cli/_compat/importlib/metadata.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
from __future__ import annotations
22

3-
import importlib.metadata as _metadata
3+
import importlib.metadata
44
import sys
55

66
__all__ = ["entry_points"]
77

88

9-
def entry_points(*, group: str) -> _metadata.EntryPoints: # type: ignore[name-defined]
9+
def entry_points(*, group: str) -> importlib.metadata.EntryPoints: # type: ignore[name-defined]
10+
"""
11+
Wrapper for entry_points to support Python 3.8+ instead of 3.10+.
12+
"""
1013
if sys.version_info >= (3, 10):
11-
return _metadata.entry_points(group=group)
14+
return importlib.metadata.entry_points(group=group)
1215

13-
epg = _metadata.entry_points()
16+
epg = importlib.metadata.entry_points()
1417

1518
return epg.get(group, [])
1619

0 commit comments

Comments
 (0)