Skip to content

Implement usethis doc and usethis init --doc#854

Merged
nathanjmcdougall merged 2 commits intomainfrom
822-implement-usethis-doc
Jul 15, 2025
Merged

Implement usethis doc and usethis init --doc#854
nathanjmcdougall merged 2 commits intomainfrom
822-implement-usethis-doc

Conversation

@nathanjmcdougall
Copy link
Copy Markdown
Collaborator

No description provided.

@nathanjmcdougall nathanjmcdougall linked an issue Jul 15, 2025 that may be closed by this pull request
@codecov
Copy link
Copy Markdown

codecov bot commented Jul 15, 2025

Codecov Report

Attention: Patch coverage is 88.00000% with 3 lines in your changes missing coverage. Please review.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/usethis/_interface/doc.py 78.57% 3 Missing ⚠️

📢 Thoughts on this report? Let us know!

@codspeed-hq
Copy link
Copy Markdown

codspeed-hq bot commented Jul 15, 2025

CodSpeed Instrumentation Performance Report

Merging #854 will not alter performance

Comparing 822-implement-usethis-doc (a460b5f) with main (4731365)

Summary

✅ 2 untouched benchmarks

@nathanjmcdougall nathanjmcdougall requested a review from Copilot July 15, 2025 11:10
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Adds a new usethis doc command and integrates it into both the standalone doc interface and the usethis init workflow, along with accompanying tests and documentation updates.

  • Introduce doc CLI command and wire it into app and init
  • Implement use_doc_frameworks in the toolset and update init logic
  • Update tests, README, and pyproject layers to reflect the new documentation framework support

Reviewed Changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tests/usethis/_interface/test_test.py Renamed test class to TestTest for the test interface
tests/usethis/_interface/test_init.py Added expected doc-related output lines in init tests
tests/usethis/_interface/test_doc.py New tests for the doc command
src/usethis/_toolset/doc.py Added use_doc_frameworks wrapper around use_mkdocs
src/usethis/_interface/tool.py Tweaked mkdocs help text
src/usethis/_interface/init.py Added --doc/--no-doc option and execution in init
src/usethis/_interface/doc.py New doc command implementation
src/usethis/_app.py Registered the doc command in the CLI
pyproject.toml Included doc layer in interface configuration
README.md Documented the new usethis doc command
Comments suppressed due to low confidence (3)

tests/usethis/_interface/test_test.py:11

  • [nitpick] The class name TestTest is ambiguous. Consider renaming it to something more descriptive like TestTestCommand to clarify the purpose of this test class.
class TestTest:

src/usethis/_interface/doc.py:13

  • The docstring incorrectly mentions a testing framework; it should reference a documentation framework (e.g., MkDocs).
    """Add a recommended testing framework to the project."""

tests/usethis/_interface/test_doc.py:11

  • Consider adding tests for the --remove and --how flags (and other options like offline, quiet, frozen) to ensure comprehensive coverage of the usethis doc command.
class TestDoc:

@nathanjmcdougall nathanjmcdougall merged commit daf96cb into main Jul 15, 2025
19 of 20 checks passed
@nathanjmcdougall nathanjmcdougall deleted the 822-implement-usethis-doc branch July 15, 2025 11:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement usethis doc

2 participants