File tree 3 files changed +12
-6
lines changed
src/scikit_build_cli/_compat/importlib 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:
29
29
"""
30
30
# This needs to be installed into the package environment, and is slower
31
31
# than a pre-commit check
32
- session .install ("." , "pylint" )
32
+ session .install ("-e ." , "pylint" )
33
33
session .run ("pylint" , "scikit_build_cli" , * session .posargs )
34
34
35
35
@@ -38,7 +38,7 @@ def tests(session: nox.Session) -> None:
38
38
"""
39
39
Run the unit and regular tests.
40
40
"""
41
- session .install (".[test]" )
41
+ session .install ("-e .[test]" )
42
42
session .run ("pytest" , * session .posargs )
43
43
44
44
Original file line number Diff line number Diff line change @@ -165,4 +165,7 @@ messages_control.disable = [
165
165
" line-too-long" ,
166
166
" missing-module-docstring" ,
167
167
" wrong-import-position" ,
168
+ " unused-argument" ,
169
+ " broad-exception-caught" ,
170
+ " no-value-for-parameter" , # Triggered by calling click fn
168
171
]
Original file line number Diff line number Diff line change 1
1
from __future__ import annotations
2
2
3
- import importlib .metadata as _metadata
3
+ import importlib .metadata
4
4
import sys
5
5
6
6
__all__ = ["entry_points" ]
7
7
8
8
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
+ """
10
13
if sys .version_info >= (3 , 10 ):
11
- return _metadata .entry_points (group = group )
14
+ return importlib . metadata .entry_points (group = group )
12
15
13
- epg = _metadata .entry_points ()
16
+ epg = importlib . metadata .entry_points ()
14
17
15
18
return epg .get (group , [])
16
19
You can’t perform that action at this time.
0 commit comments