Skip to content

Conversation

@tony
Copy link
Member

@tony tony commented Dec 6, 2025

No description provided.

tony added 9 commits December 6, 2025 07:03
why: sphinx-autodoc-typehints emitted forward reference warnings for aliases only defined under TYPE_CHECKING.

what:
- provide fallback DataclassInstance, move TypeAlias imports out of TYPE_CHECKING, and import StrPath/TypeGuard at runtime
- ensure sync/url/registry modules import shared aliases directly to make type hints resolvable during docs build
- tidy _internal types docstring wording to drop glossary term that caused warnings
why: Sphinx reported duplicate object descriptions for SubprocessCommand fields and URL rule attributes.

what:
- remove redundant attribute lists that created duplicate targets in subprocess and URL base docs
why: Sphinx warned about duplicate explicit target name "hg update" in Hg.pull docstring.

what:
- reference hg pull manpage instead of update to avoid conflicting target
why: project style prefers namespaced typing usage (47188b8).

what:
- drop direct TypeGuard import and annotate helper using t.TypeGuard
why: Style avoids direct imports from typing; stay consistent with commit 47188b8.

what:
- switch runtime aliases to t.TypeAlias across registry, _internal types/run/subprocess, and tests
- remove direct TypeAlias imports
why: docutils warned about unmatched interpreted text delimiters in run() docstring.

what:
- wrap command error and callback examples in double backticks
- simplify future change note to avoid backtick imbalance
why: myst header lints flagged non-consecutive levels (H2->H4).

what:
- promote fixture and commands subsections to H3
why: Sphinx warned about undefined labels and duplicate module objects.

what:
- replace pytest fixture ref with direct link and drop redundant {module} directive in pytest-plugin
- switch vcspull ref to external link and remove unused footnote in url guide
why: avoid noisy intersphinx fetch warnings when inventories are unreachable.

what:
- add short timeout and suppress intersphinx warnings
why: enforce project import/type alias style after rebase.

what:
- reflow long docstring line
- apply sorted imports
- switch InitCmdArgs to t.TypeAlias
@codecov
Copy link

codecov bot commented Dec 6, 2025

Codecov Report

❌ Patch coverage is 58.33333% with 10 lines in your changes missing coverage. Please review.
✅ Project coverage is 53.85%. Comparing base (55bd6fe) to head (3fae5fa).

Files with missing lines Patch % Lines
src/libvcs/_internal/run.py 0.00% 3 Missing ⚠️
src/libvcs/pytest_plugin.py 0.00% 2 Missing ⚠️
src/libvcs/_internal/subprocess.py 80.00% 1 Missing ⚠️
src/libvcs/sync/base.py 0.00% 1 Missing ⚠️
src/libvcs/sync/git.py 0.00% 1 Missing ⚠️
src/libvcs/sync/hg.py 0.00% 1 Missing ⚠️
src/libvcs/sync/svn.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #498      +/-   ##
==========================================
+ Coverage   53.82%   53.85%   +0.03%     
==========================================
  Files          38       38              
  Lines        5663     5676      +13     
  Branches     1063     1063              
==========================================
+ Hits         3048     3057       +9     
- Misses       2104     2108       +4     
  Partials      511      511              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

tony added a commit that referenced this pull request Dec 6, 2025
why: document recent doc cleanup work without moving upcoming placeholder.

what:
- add changelog entry under unreleased section for doc warning / reference fixes
@tony
Copy link
Member Author

tony commented Dec 6, 2025

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

🤖 Generated with Claude Code

- If this code review was useful, please react with 👍. Otherwise, react with 👎.

…pehints

why: Types in TYPE_CHECKING blocks (used for circular import avoidance)
cause sphinx-autodoc-typehints to emit warnings about unresolvable forward
references. These warnings are expected and safe to suppress.
what:
- Add suppress_warnings config for sphinx_autodoc_typehints.forward_reference
why: document recent doc cleanup work without moving upcoming placeholder.

what:
- add changelog entry under unreleased section for doc warning / reference fixes
@tony tony merged commit 1e33dc4 into master Dec 6, 2025
8 checks passed
@tony tony deleted the docstring-fixes branch December 6, 2025 17:11
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.

2 participants