style: autoformat src and tests

Repository-wide formatting pass over src/ and tests/: sorted imports and
__all__ entries, dropped redundant `# -*- coding: utf-8 -*-` headers,
unquoted forward-reference annotations (safe under
`from __future__ import annotations`), merged nested `with` statements,
moved `Iterable` and friends from `typing` to `collections.abc`, and
removed `# noqa: F401` markers that no longer suppress anything.

No behavioural changes. Unit and integration suites show the same four
pre-existing failures before and after the pass.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Kevin Veen-BirkenbachandClaude Opus 5 committed 2026-07-27 15:17:35 +02:00
1 parent f1517963a5
commit 8294bce436
185 files changed
+378 -445

No files matched your search

@@ -1,5 +1,4 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Unit tests for pkgmgr.cli.commands.release.
@@ -14,12 +13,11 @@ These tests focus on the wiring layer:
from __future__ import annotations
from types import SimpleNamespace
from typing import List
from unittest.mock import patch, call
import argparse
import unittest
from types import SimpleNamespace
from typing import List
from unittest.mock import call, patch
class TestReleaseCommand(unittest.TestCase):
+1 -3
View File
@@ -1,5 +1,4 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Unit tests for pkgmgr.cli.commands.repos
@@ -30,9 +29,8 @@ from types import SimpleNamespace
from typing import Any, Dict, List
from unittest.mock import patch
from pkgmgr.cli.context import CLIContext
from pkgmgr.cli.commands.repos import handle_repos_command
from pkgmgr.cli.context import CLIContext
Repository = Dict[str, Any]
-1
View File
@@ -1,5 +1,4 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Unit tests for the pkgmgr CLI (version command).
+2 -2
View File
@@ -54,9 +54,9 @@ class TestOpenVSCodeWorkspace(unittest.TestCase):
"pkgmgr.cli.tools.vscode.get_repo_identifier",
return_value="github.com/x/y",
),
self.assertRaises(RuntimeError) as cm,
):
with self.assertRaises(RuntimeError) as cm:
open_vscode_workspace(ctx, selected)
open_vscode_workspace(ctx, selected)
msg = str(cm.exception)
self.assertIn("not yet identified", msg)