File tree Expand file tree Collapse file tree 3 files changed +12
-6
lines changed
src/scikit_build_cli/_compat/importlib Expand file tree Collapse file tree 3 files changed +12
-6
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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]
Original file line number Diff line number Diff line change 11from __future__ import annotations
22
3- import importlib .metadata as _metadata
3+ import importlib .metadata
44import 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
You can’t perform that action at this time.
0 commit comments