chore: sort all imports within the repo with uv run isort .#459
Open
alopezsanchez wants to merge 1 commit intomicrosoft:mainfrom
Open
chore: sort all imports within the repo with uv run isort .#459alopezsanchez wants to merge 1 commit intomicrosoft:mainfrom
uv run isort .#459alopezsanchez wants to merge 1 commit intomicrosoft:mainfrom
Conversation
According to the [docs](https://github.com/microsoft/apm/blob/main/CONTRIBUTING.md#coding-style), the project uses [isort[(https://pycqa.github.io/isort/) for import sorting. There were missing sorts causing unrelated changes due to the automatic formatting, and this commit fixes all of them.
Contributor
There was a problem hiding this comment.
Pull request overview
Maintenance PR to apply the repo's documented isort import-sorting conventions consistently, reducing noisy formatting diffs in future changes.
Changes:
- Reordered and grouped Python imports across tests, src modules, and scripts using
uv run isort . - Normalized a few import blocks into parenthesized multi-line form where needed
- Removed/added blank lines around imports to match isort formatting
Reviewed changes
Copilot reviewed 222 out of 222 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| tests/utils/constitution_fixtures.py | Import ordering only |
| tests/unit/test_version_checker.py | Import ordering only |
| tests/unit/test_unpacker.py | Import ordering only |
| tests/unit/test_unpack_security.py | Import ordering only |
| tests/unit/test_uninstall_transitive_cleanup.py | Import ordering only |
| tests/unit/test_uninstall_reintegration.py | Import ordering only |
| tests/unit/test_transitive_deps.py | Import ordering only |
| tests/unit/test_ssl_cert_hook.py | Import ordering only |
| tests/unit/test_security_gate.py | Import ordering only |
| tests/unit/test_script_runner.py | Import ordering only |
| tests/unit/test_safe_installer.py | Import ordering only |
| tests/unit/test_runtime_windows.py | Import ordering only |
| tests/unit/test_runtime_factory.py | Import ordering only |
| tests/unit/test_runtime_detection.py | Import ordering only |
| tests/unit/test_runtime_args.py | Import ordering only |
| tests/unit/test_registry_integration.py | Import ordering only |
| tests/unit/test_registry_client.py | Import ordering only |
| tests/unit/test_python_paths.py | Import ordering only |
| tests/unit/test_plugin_exporter.py | Import ordering only |
| tests/unit/test_path_security.py | Import ordering only |
| tests/unit/test_packer.py | Import ordering only |
| tests/unit/test_package_manager.py | Import ordering only |
| tests/unit/test_package_identity.py | Import ordering only |
| tests/unit/test_mcp_overlays.py | Import ordering only |
| tests/unit/test_mcp_lifecycle_e2e.py | Import ordering only |
| tests/unit/test_mcp_client_factory.py | Import ordering only |
| tests/unit/test_lockfile_enrichment.py | Import ordering only |
| tests/unit/test_local_deps.py | Import ordering only |
| tests/unit/test_llm_runtime.py | Import ordering only |
| tests/unit/test_list_command.py | Import ordering only |
| tests/unit/test_install_update.py | Import ordering only |
| tests/unit/test_install_scanning.py | Import ordering only |
| tests/unit/test_install_output.py | Import ordering only |
| tests/unit/test_install_command.py | Import ordering only |
| tests/unit/test_init_plugin.py | Import ordering only |
| tests/unit/test_init_command.py | Import ordering only |
| tests/unit/test_github_host.py | Import ordering only |
| tests/unit/test_docker_args_and_installer.py | Import ordering only |
| tests/unit/test_docker_args.py | Import ordering only |
| tests/unit/test_dev_dependencies.py | Import ordering only |
| tests/unit/test_copilot_runtime.py | Import ordering only |
| tests/unit/test_content_hash.py | Import ordering only |
| tests/unit/test_conflict_detection.py | Import ordering only |
| tests/unit/test_compile_rich_output.py | Import ordering only |
| tests/unit/test_command_logger.py | Import ordering only |
| tests/unit/test_codex_runtime.py | Import ordering only |
| tests/unit/test_cli_encoding.py | Import ordering only |
| tests/unit/test_canonicalization.py | Import ordering only |
| tests/unit/test_build_sha.py | Import ordering only |
| tests/unit/test_auth_scoping.py | Import ordering only |
| tests/unit/test_auth.py | Import ordering only |
| tests/unit/test_audit_policy_command.py | Import ordering only |
| tests/unit/test_audit_command.py | Import ordering only |
| tests/unit/test_audit_ci_command.py | Import ordering only |
| tests/unit/test_ado_path_structure.py | Import ordering only |
| tests/unit/policy/test_policy_checks.py | Import ordering only |
| tests/unit/policy/test_inheritance.py | Import ordering only |
| tests/unit/policy/test_ci_checks.py | Import ordering only |
| tests/unit/integration/test_sync_integration_url_normalization.py | Import ordering only |
| tests/unit/integration/test_skill_transformer.py | Import ordering only |
| tests/unit/integration/test_skill_integrator.py | Import ordering only |
| tests/unit/integration/test_prompt_integrator.py | Import ordering only |
| tests/unit/integration/test_instruction_integrator.py | Import ordering only |
| tests/unit/integration/test_hook_integrator.py | Import ordering only |
| tests/unit/integration/test_deployed_files_manifest.py | Import ordering only |
| tests/unit/integration/test_command_integrator.py | Import ordering only |
| tests/unit/integration/test_agent_integrator.py | Import ordering only |
| tests/unit/core/test_target_detection.py | Import ordering only |
| tests/unit/compilation/test_sibling_directory_coverage.py | Import ordering only |
| tests/unit/compilation/test_mathematical_optimization.py | Import ordering only |
| tests/unit/compilation/test_mathematical_guarantees.py | Import ordering only |
| tests/unit/compilation/test_link_resolver.py | Import ordering only |
| tests/unit/compilation/test_coverage_guarantees.py | Import ordering only |
| tests/unit/compilation/test_context_optimizer.py | Import ordering only |
| tests/unit/compilation/test_constitution_injector.py | Import ordering only |
| tests/unit/compilation/test_compile_target_flag.py | Import ordering only |
| tests/unit/compilation/test_compilation.py | Import ordering only |
| tests/unit/compilation/test_claude_formatter.py | Import ordering only |
| tests/test_virtual_package_multi_install.py | Import ordering only |
| tests/test_token_manager.py | Import ordering only |
| tests/test_runtime_manager_token_precedence.py | Import ordering only |
| tests/test_runnable_prompts.py | Import ordering only |
| tests/test_lockfile.py | Import ordering only |
| tests/test_github_downloader_token_precedence.py | Import ordering only |
| tests/test_github_downloader.py | Import ordering only |
| tests/test_enhanced_discovery.py | Import ordering only |
| tests/test_empty_string_and_defaults.py | Import ordering only |
| tests/test_distributed_compilation.py | Import ordering only |
| tests/test_console.py | Import ordering only |
| tests/test_collision_integration.py | Import ordering only |
| tests/test_codex_empty_string_and_defaults.py | Import ordering only |
| tests/test_codex_docker_args_fix.py | Import ordering only |
| tests/test_apm_resolver.py | Import ordering only |
| tests/test_apm_package_models.py | Import ordering only |
| tests/noninteractive_workflow_test.py | Import ordering only |
| tests/manual_workflow_script.py | Import ordering only |
| tests/integration/test_virtual_package_orphan_detection.py | Import ordering only |
| tests/integration/test_version_notification.py | Import ordering only |
| tests/integration/test_skill_integration.py | Import ordering only |
| tests/integration/test_skill_install.py | Import ordering only |
| tests/integration/test_selective_install_mcp.py | Import ordering only |
| tests/integration/test_runtime_smoke.py | Import ordering only |
| tests/integration/test_runnable_prompts_integration.py | Import ordering only |
| tests/integration/test_registry_client_integration.py | Import ordering only |
| tests/integration/test_registry.py | Import ordering only |
| tests/integration/test_plugin_e2e.py | Import ordering only |
| tests/integration/test_pack_unpack_e2e.py | Import ordering only |
| tests/integration/test_multi_runtime_integration.py | Import ordering only |
| tests/integration/test_mixed_deps.py | Import ordering only |
| tests/integration/test_mcp_registry_e2e.py | Import ordering only |
| tests/integration/test_marketplace_plugin_integration.py | Import ordering only |
| tests/integration/test_local_install.py | Import ordering only |
| tests/integration/test_llm_runtime_integration.py | Import ordering only |
| tests/integration/test_integration.py | Import ordering only |
| tests/integration/test_install_with_links.py | Import ordering only |
| tests/integration/test_guardrailing_hero_e2e.py | Import ordering only |
| tests/integration/test_golden_scenario_e2e.py | Import ordering only |
| tests/integration/test_diff_aware_install_e2e.py | Import ordering only |
| tests/integration/test_deployed_files_e2e.py | Import ordering only |
| tests/integration/test_compile_permission_denied.py | Import ordering only |
| tests/integration/test_compile_constitution_injection.py | Import ordering only |
| tests/integration/test_collection_install.py | Import ordering only |
| tests/integration/test_auto_integration.py | Import ordering only |
| tests/integration/test_auto_install_e2e.py | Import ordering only |
| tests/integration/test_apm_dependencies.py | Import ordering only |
| tests/benchmarks/test_perf_benchmarks.py | Import ordering only |
| tests/benchmarks/run_baseline.py | Import ordering only |
| tests/basic_workflow_test.py | Import ordering only |
| tests/acceptance/test_logging_acceptance.py | Import ordering only |
| src/apm_cli/workflow/runner.py | Import ordering only |
| src/apm_cli/workflow/parser.py | Import ordering only |
| src/apm_cli/workflow/discovery.py | Import ordering only |
| src/apm_cli/version.py | Import ordering only |
| src/apm_cli/utils/version_checker.py | Import ordering only |
| src/apm_cli/utils/helpers.py | Import ordering only |
| src/apm_cli/utils/console.py | Import ordering only |
| src/apm_cli/utils/init.py | Import ordering only |
| src/apm_cli/security/gate.py | Import ordering only |
| src/apm_cli/runtime/manager.py | Import ordering only |
| src/apm_cli/runtime/llm_runtime.py | Import ordering only |
| src/apm_cli/runtime/factory.py | Import ordering only |
| src/apm_cli/runtime/copilot_runtime.py | Import ordering only |
| src/apm_cli/runtime/codex_runtime.py | Import ordering only |
| src/apm_cli/runtime/base.py | Import ordering only |
| src/apm_cli/runtime/init.py | Import ordering only |
| src/apm_cli/registry/operations.py | Import ordering only |
| src/apm_cli/registry/integration.py | Import ordering only |
| src/apm_cli/registry/client.py | Import ordering only |
| src/apm_cli/primitives/parser.py | Import ordering only |
| src/apm_cli/primitives/models.py | Import ordering only |
| src/apm_cli/primitives/discovery.py | Import ordering only |
| src/apm_cli/primitives/init.py | Import ordering only |
| src/apm_cli/policy/policy_checks.py | Import ordering only |
| src/apm_cli/policy/models.py | Import ordering only |
| src/apm_cli/policy/inheritance.py | Import ordering only |
| src/apm_cli/policy/ci_checks.py | Import ordering only |
| src/apm_cli/policy/init.py | Import ordering only |
| src/apm_cli/output/script_formatters.py | Import ordering only |
| src/apm_cli/output/models.py | Import ordering only |
| src/apm_cli/output/formatters.py | Import ordering only |
| src/apm_cli/output/init.py | Import ordering only |
| src/apm_cli/models/validation.py | Import ordering only |
| src/apm_cli/models/plugin.py | Import ordering only |
| src/apm_cli/models/dependency/init.py | Import ordering only |
| src/apm_cli/models/apm_package.py | Import ordering only |
| src/apm_cli/models/init.py | Import ordering only |
| src/apm_cli/integration/skill_integrator.py | Import ordering only |
| src/apm_cli/integration/prompt_integrator.py | Import ordering only |
| src/apm_cli/integration/hook_integrator.py | Import ordering only |
| src/apm_cli/integration/command_integrator.py | Import ordering only |
| src/apm_cli/integration/base_integrator.py | Import ordering only |
| src/apm_cli/integration/agent_integrator.py | Import ordering only |
| src/apm_cli/integration/init.py | Import ordering only |
| src/apm_cli/factory.py | Import ordering only |
| src/apm_cli/drift.py | Import ordering only |
| src/apm_cli/deps/verifier.py | Import ordering only |
| src/apm_cli/deps/plugin_parser.py | Import ordering only |
| src/apm_cli/deps/package_validator.py | Import ordering only |
| src/apm_cli/deps/github_downloader.py | Import ordering only |
| src/apm_cli/deps/dependency_graph.py | Import ordering only |
| src/apm_cli/deps/collection_parser.py | Import ordering only |
| src/apm_cli/deps/apm_resolver.py | Import ordering only |
| src/apm_cli/deps/aggregator.py | Import ordering only |
| src/apm_cli/deps/init.py | Import ordering only |
| src/apm_cli/core/script_runner.py | Import ordering only |
| src/apm_cli/core/safe_installer.py | Import ordering only |
| src/apm_cli/core/docker_args.py | Import ordering only |
| src/apm_cli/core/conflict_detector.py | Import ordering only |
| src/apm_cli/constants.py | Import ordering only |
| src/apm_cli/compilation/template_builder.py | Import ordering only |
| src/apm_cli/compilation/link_resolver.py | Import ordering only |
| src/apm_cli/compilation/injector.py | Import ordering only |
| src/apm_cli/compilation/distributed_compiler.py | Import ordering only |
| src/apm_cli/compilation/context_optimizer.py | Import ordering only |
| src/apm_cli/compilation/constitution_block.py | Import ordering only |
| src/apm_cli/compilation/claude_formatter.py | Import ordering only |
| src/apm_cli/compilation/agents_compiler.py | Import ordering only |
| src/apm_cli/compilation/init.py | Import ordering only |
| src/apm_cli/commands/uninstall/engine.py | Import ordering only |
| src/apm_cli/commands/uninstall/cli.py | Import ordering only |
| src/apm_cli/commands/uninstall/init.py | Import ordering only |
| src/apm_cli/commands/prune.py | Import ordering only |
| src/apm_cli/commands/install.py | Import ordering only |
| src/apm_cli/commands/deps/cli.py | Import ordering only |
| src/apm_cli/commands/deps/_utils.py | Import ordering only |
| src/apm_cli/commands/deps/init.py | Import ordering only |
| src/apm_cli/commands/config.py | Import ordering only |
| src/apm_cli/commands/compile/watcher.py | Import ordering only |
| src/apm_cli/commands/compile/cli.py | Import ordering only |
| src/apm_cli/commands/compile/init.py | Import ordering only |
| src/apm_cli/commands/audit.py | Import ordering only |
| src/apm_cli/commands/_helpers.py | Import ordering only |
| src/apm_cli/bundle/unpacker.py | Import ordering only |
| src/apm_cli/bundle/plugin_exporter.py | Import ordering only |
| src/apm_cli/bundle/packer.py | Import ordering only |
| src/apm_cli/bundle/lockfile_enrichment.py | Import ordering only |
| src/apm_cli/bundle/init.py | Import ordering only |
| src/apm_cli/adapters/package_manager/default_manager.py | Import ordering only |
| src/apm_cli/adapters/client/vscode.py | Import ordering only |
| src/apm_cli/adapters/client/copilot.py | Import ordering only |
| src/apm_cli/adapters/client/codex.py | Import ordering only |
| scripts/benchmark_manifest_ops.py | Import ordering only |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
According to the docs, the project uses isort for import sorting. There were missing sorts causing unrelated changes due to the automatic formatting, and this commit fixes all of them.
Type of change
Testing