Skip to content

Commit ae2aa70

Browse files
committed
Fix default 'format' for deprecated 'cache' command
1 parent 4381f15 commit ae2aa70

File tree

10 files changed

+227
-214
lines changed

10 files changed

+227
-214
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## Unreleased
44

5+
* Fix default 'format' for deprecated 'cache' command
6+
57
## 1.7.4 - 2025-12-15
68

79
### Fixed

Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,13 @@ update-requirements-%:
4949
# Static analysis
5050
#
5151

52-
LINT_TARGETS=$(PYTHON_MODULE) $(TESTDIR) $(EXTRA_LINT_TARGETS)
52+
LINT_TARGETS=$(PYTHON_MODULE) $(TESTDIR)
5353

5454
lint:
5555
@ $(UV_RUN) ruff check --preview --output-format=concise $(LINT_TARGETS)
5656

5757
lint-preview:
58-
@ruff check --preview $(LINT_TARGETS)
58+
@ $(UV_RUN) ruff check --preview $(LINT_TARGETS)
5959

6060
lint-fix:
6161
@ $(UV_RUN) ruff check --preview --fix $(LINT_TARGETS)
@@ -67,7 +67,8 @@ format-diff:
6767
@ $(UV_RUN) format --diff $(LINT_TARGETS)
6868

6969
typecheck:
70-
@ $(UV_RUN) mypy $(LINT_TARGETS)
70+
@ $(UV_RUN) mypy $(PYTHON_MODULE)
71+
#@ $(UV_RUN) mypy tests --python-version=3.10
7172

7273
#
7374
# Tests

qgis_plugin_manager/__init__.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +0,0 @@
1-
__copyright__ = "Copyright 2021, 3Liz"
2-
__license__ = "GPL version 3"
3-
__email__ = "info@3liz.org"

qgis_plugin_manager/__main__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ def init_sources(args: Namespace):
202202
""",
203203
)
204204
def list_plugins(args: Namespace):
205+
"""List all installed plugins"""
205206
qgis_version = qgis_server_version()
206207

207208
if not (args.outdated_target is None or args.outdated):
@@ -531,6 +532,7 @@ def plugin_versions_deprecated(args: Namespace):
531532
echo.alert("Warning: this command is deprecated in favor of the 'versions' command")
532533
args.pre = False
533534
args.deprecated = False
535+
args.format = "table"
534536
plugin_versions_impl(args)
535537

536538

requirements/dev.txt

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
# This file was autogenerated by uv via the following command:
22
# uv export --format requirements.txt --no-annotate --no-editable --no-hashes --only-group dev -o requirements/dev.txt
33
colorama==0.4.6 ; sys_platform == 'win32'
4-
exceptiongroup==1.3.0 ; python_full_version < '3.11'
5-
iniconfig==2.1.0
6-
mypy==1.18.1
4+
exceptiongroup==1.3.1 ; python_full_version < '3.11'
5+
iniconfig==2.1.0 ; python_full_version < '3.10'
6+
iniconfig==2.3.0 ; python_full_version >= '3.10'
7+
librt==0.7.7 ; platform_python_implementation != 'PyPy'
8+
mypy==1.19.1
79
mypy-extensions==1.1.0
810
packaging==25.0
9-
pathspec==0.12.1
11+
pathspec==1.0.3
1012
pluggy==1.6.0
1113
pygments==2.19.2
12-
pytest==8.4.2
13-
ruff==0.13.0
14-
tomli==2.2.1 ; python_full_version < '3.11'
14+
pytest==8.4.2 ; python_full_version < '3.10'
15+
pytest==9.0.2 ; python_full_version >= '3.10'
16+
ruff==0.14.11
17+
tomli==2.4.0 ; python_full_version < '3.11'
1518
typing-extensions==4.15.0

requirements/lint.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# This file was autogenerated by uv via the following command:
22
# uv export --format requirements.txt --no-annotate --no-editable --no-hashes --only-group lint -o requirements/lint.txt
3-
mypy==1.18.1
3+
librt==0.7.7 ; platform_python_implementation != 'PyPy'
4+
mypy==1.19.1
45
mypy-extensions==1.1.0
5-
pathspec==0.12.1
6-
ruff==0.13.0
7-
tomli==2.2.1 ; python_full_version < '3.11'
6+
pathspec==1.0.3
7+
ruff==0.14.11
8+
tomli==2.4.0 ; python_full_version < '3.11'
89
typing-extensions==4.15.0

requirements/packaging.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# This file was autogenerated by uv via the following command:
22
# uv export --format requirements.txt --no-annotate --no-editable --no-hashes --only-group packaging -o requirements/packaging.txt
3-
build==1.3.0
3+
build==1.4.0
44
colorama==0.4.6 ; os_name == 'nt'
5-
importlib-metadata==8.7.0 ; python_full_version < '3.10.2'
5+
importlib-metadata==8.7.1 ; python_full_version < '3.10.2'
66
packaging==25.0
77
pyproject-hooks==1.2.0
88
setuptools==80.9.0
9-
tomli==2.2.1 ; python_full_version < '3.11'
9+
tomli==2.4.0 ; python_full_version < '3.11'
1010
zipp==3.23.0 ; python_full_version < '3.10.2'

requirements/tests.txt

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22
# uv export --no-dev --group tests --format requirements.txt --no-annotate --no-editable --no-hashes -o requirements/tests.txt
33
.
44
colorama==0.4.6 ; sys_platform == 'win32'
5-
exceptiongroup==1.3.0 ; python_full_version < '3.11'
6-
iniconfig==2.1.0
5+
exceptiongroup==1.3.1 ; python_full_version < '3.11'
6+
iniconfig==2.1.0 ; python_full_version < '3.10'
7+
iniconfig==2.3.0 ; python_full_version >= '3.10'
78
packaging==25.0
89
pluggy==1.6.0
910
pygments==2.19.2
10-
pytest==8.4.2
11+
pytest==8.4.2 ; python_full_version < '3.10'
12+
pytest==9.0.2 ; python_full_version >= '3.10'
1113
semver==3.0.4
12-
tomli==2.2.1 ; python_full_version < '3.11'
14+
tomli==2.4.0 ; python_full_version < '3.11'
1315
typing-extensions==4.15.0 ; python_full_version < '3.11'

tests/test_remote.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def test_plugin_name_with_space_and_tags(fixtures: Path):
1717
"""Test plugin with different name, using tags."""
1818
xml_files = fixtures.joinpath("xml_files")
1919
remote = Remote(xml_files.joinpath("dataplotly"))
20-
plugins = {}
20+
plugins: dict = {}
2121
remote._parse_xml(xml_files.joinpath("dataplotly/dataplotly.xml"), plugins)
2222
assert len(plugins) == 1
2323

0 commit comments

Comments
 (0)