Title: Implement `usethis arch` command by Copilot · Pull Request #1451 · usethis-python/usethis-python · GitHub
Open Graph Title: Implement `usethis arch` command by Copilot · Pull Request #1451 · usethis-python/usethis-python
X Title: Implement `usethis arch` command by Copilot · Pull Request #1451 · usethis-python/usethis-python
Description: Adds usethis arch as a top-level command for architecture analysis tools, wrapping Import Linter — following the same pattern as usethis lint, usethis typecheck, etc.
Changes
New command usethis arch — CLI interface (_ui/interface/arch.py), toolset (_toolset/arch.py), registered in app.py under "Manage Tooling"
usethis init --arch — Opt-in flag (defaults to --no-arch) to include architecture analysis tooling during project initialization
Documentation — docs/cli/reference.md, docs/cli/overview.md, and README.md updated
.importlinter — Added arch to the ui_interface contract layers
Test coverage — Added test_arch_included in tests/usethis/_ui/interface/test_init.py to cover usethis init --arch
$ usethis arch # Add Import Linter to project
$ usethis arch --how # Print usage instructions only
$ usethis arch --remove # Remove Import Linter from project
$ usethis init --arch # Include architecture analysis tools in init
Original prompt
This section details on the original issue you should resolve
Open Graph Description: Adds usethis arch as a top-level command for architecture analysis tools, wrapping Import Linter — following the same pattern as usethis lint, usethis typecheck, etc. Changes New command usethis a...
X Description: Adds usethis arch as a top-level command for architecture analysis tools, wrapping Import Linter — following the same pattern as usethis lint, usethis typecheck, etc. Changes New command usethis a...
Opengraph URL: https://github.com/usethis-python/usethis-python/pull/1451
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:9289d768-7525-345f-87d6-11dd87b8d505 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | EA2A:150C3:278162F:37D0C41:6A4CEB3F |
| html-safe-nonce | a10dae49811d353538d8ce6eeea8f22208001e24218a15ecbd865ed16a6fd515 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQTJBOjE1MEMzOjI3ODE2MkY6MzdEMEM0MTo2QTRDRUIzRiIsInZpc2l0b3JfaWQiOiI3NjIxNTg3MTY5ODI4NDY1NDcxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | bf458ad0dadf7c53f6f831c2d3e17260f02cbff36c9cfe09ce73f746a86c6036 |
| hovercard-subject-tag | pull_request:3430214148 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/usethis-python/usethis-python/pull/1451/files |
| twitter:image | https://avatars.githubusercontent.com/in/1143301?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/in/1143301?s=400&v=4 |
| og:image:alt | Adds usethis arch as a top-level command for architecture analysis tools, wrapping Import Linter — following the same pattern as usethis lint, usethis typecheck, etc. Changes New command usethis a... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 299b43bca6e02ad35197ffeba30d2466846d5fb02ab96fbced5b5e6cec589fb8 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/usethis-python/usethis-python git https://github.com/usethis-python/usethis-python.git |
| octolytics-dimension-user_id | 216362695 |
| octolytics-dimension-user_login | usethis-python |
| octolytics-dimension-repository_id | 842189705 |
| octolytics-dimension-repository_nwo | usethis-python/usethis-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 842189705 |
| octolytics-dimension-repository_network_root_nwo | usethis-python/usethis-python |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | c5a57f04eeb310f57c73fd6d751d957e2ca27ed2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width