File tree Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Original file line number Diff line number Diff line change
1
+ from __future__ import annotations
2
+
3
+ from .version import __version__ , version_info # noqa: F401
Original file line number Diff line number Diff line change @@ -185,10 +185,9 @@ ignore = [
185
185
" RUF012" # Mutable class attributes should be annotated
186
186
]
187
187
unfixable = [
188
- # Don't touch print statements
189
- " T201" ,
190
- # Don't touch noqa lines
191
- " RUF100" ,
188
+ " T201" , # Don't touch print statements
189
+ " RUF100" , # Don't touch noqa lines
190
+ " F401" # Unused imports
192
191
]
193
192
isort.required-imports = [" from __future__ import annotations" ]
194
193
Original file line number Diff line number Diff line change 10
10
11
11
import pytest
12
12
13
+ from jupyter_core import __version__
13
14
from jupyter_core .command import list_subcommands
14
15
from jupyter_core .paths import (
15
16
jupyter_config_dir ,
@@ -248,3 +249,7 @@ def test_argv0(tmpdir):
248
249
249
250
# Make sure the first argv is the full path to the executing script
250
251
assert f"{ jupyter } -witness" .encode () in out
252
+
253
+
254
+ def test_version ():
255
+ assert isinstance (__version__ , str )
You can’t perform that action at this time.
0 commit comments