Skip to content

Commit 5edf14e

Browse files
committed
Merge branch 'master' into 3.0.0 - uv venv support
2 parents dba971e + 2dea62e commit 5edf14e

File tree

3 files changed

+32
-9
lines changed

3 files changed

+32
-9
lines changed

docs/conf.py

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,13 @@
2323
from os.path import abspath, dirname
2424

2525
# Make sure we get the version of this copy of cmd2
26-
sys.path.insert(1, dirname(dirname(abspath(__file__))))
26+
root_path = dirname(dirname(abspath(__file__)))
27+
cmd2_ext_test_path = f'{root_path}/plugins/ext_test/'
28+
sys.path.insert(1, root_path) # cmd2
29+
sys.path.insert(2, cmd2_ext_test_path) # cmd2_ext_test
2730

2831
# Import for custom theme from Read the Docs
29-
import sphinx_rtd_theme
32+
import sphinx_rtd_theme # noqa E402
3033

3134
# -- General configuration -----------------------------------------------------
3235

@@ -179,13 +182,17 @@
179182
# Ignore nitpicky warnings from autodoc which are occurring for very new versions of Sphinx and autodoc
180183
# They seem to be happening because autodoc is now trying to add hyperlinks to docs for typehint classes
181184
nitpick_ignore = [
185+
('py:class', 'ArgparseCommandFunc'),
186+
('py:class', 'argparse._SubParsersAction'),
182187
('py:class', 'cmd2.decorators.CommandParent'),
183-
('py:obj', 'cmd2.decorators.CommandParent'),
184188
('py:class', 'cmd2.decorators.CommandParentType'),
185-
('py:class', 'argparse._SubParsersAction'),
186189
('py:class', 'cmd2.utils._T'),
187-
('py:class', 'types.FrameType'),
190+
('py:class', 'CommandParent'),
191+
('py:class', 'frame'),
192+
('py:class', 'RawCommandFuncOptionalBoolReturn'),
188193
('py:class', 'rich.console.Console'),
189194
('py:class', 'rich.console.ConsoleRenderable'),
190195
('py:class', 'rich.console.RichCast'),
196+
('py:class', 'types.FrameType'),
197+
('py:obj', 'cmd2.decorators.CommandParent'),
191198
]

pyproject.toml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,17 @@ dev = [
5858
"pytest-cov",
5959
"pytest-mock",
6060
"sphinx",
61-
"sphinx-rtd-theme",
6261
"sphinx-autobuild",
62+
"sphinx-rtd-theme",
6363
"ruff",
6464
"twine",
6565
]
6666
docs = [
6767
"setuptools",
6868
"setuptools_scm",
6969
"sphinx",
70-
"sphinx-rtd-theme",
7170
"sphinx-autobuild",
71+
"sphinx-rtd-theme",
7272
]
7373
test = [
7474
"codecov",
@@ -309,3 +309,19 @@ docstring-code-line-length = "dynamic"
309309
packages = ["cmd2"]
310310

311311
[tool.setuptools_scm]
312+
313+
[tool.uv]
314+
dev-dependencies = [
315+
"codecov",
316+
"doc8",
317+
"invoke",
318+
"mypy",
319+
"pytest",
320+
"pytest-cov",
321+
"pytest-mock",
322+
"sphinx",
323+
"sphinx-autobuild",
324+
"sphinx-rtd-theme",
325+
"ruff",
326+
"twine",
327+
]

tests/test_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,9 +290,9 @@ def test_proc_reader_send_sigint(pr_none):
290290
assert pr_none._proc.poll() is None
291291
pr_none.send_sigint()
292292
pr_none.wait()
293-
294-
# Mac sure a SIGINT killed the process
295293
ret_code = pr_none._proc.poll()
294+
295+
# Make sure a SIGINT killed the process
296296
if sys.platform.startswith('win'):
297297
assert ret_code is not None
298298
else:

0 commit comments

Comments
 (0)