Repository navigation
fix: quick-win batch — env-dependent test, theme default, packaging, docs - #70
Merged
Merged
Conversation
…docs (#36, #37, #38, #47) - #36: test_main_without_npm now patches _npm_runs/_NODE_FALLBACK_DIRS (the shutil.which patch never reached _build_env, which probes npm via subprocess); also covers the fallback-dir rescue path. - #37: AppConfig.theme default aligned to "auto" (schema + template already agreed); docs tables updated; regression test pins that a missing config file and a config without a theme key resolve identically. - #38: drop the wheel force-include that shipped the package twice (profiles_app) and the dead setuptools config; import ctypes.wintypes properly in utils/shortcut.py and narrow pylint ignored-modules. - #47: translate network-server-guide.en.md to English with verified port defaults; document COMMAND_OUTPUT + SemVer examples in log-format.md and drop stale spec pointers; remove the Bulk launch README claim; add launch/ to the architecture trees; drop stale mkdocs.yml pre-commit exclude and stale pyproject spec references. Fixes #36, fixes #37, fixes #38, fixes #47
This was referenced Nov 1, 2026
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.
Groups four small, independently-verified fixes into one PR:
#36 — env-dependent
test_main_without_npmThe test patched
shutil.which, but since the Node.js fallback commitmain()resolves npm through_build_env(), which probes npm by runningnpm --versionvia subprocess — so on any machine with a working npm on PATH the test returned 0. The test now patches_npm_runsand points_NODE_FALLBACK_DIRSat an empty temp dir, plus a newtest_build_env_falls_back_to_node_dirscovering the rescue path itself.#37 — theme default drift (
lightvsauto)AppConfig.themedefault is now"auto", matchingDefaults.themein the schema and the starter template. Docs tables (EN/FR) updated. New regression test pins that no config file and config without athemekey resolve to the same value.#38 — packaging
force-includeblock that shipped the entire package a second time asprofiles_app/inside the wheel (verified: wheel contents now contain zeroprofiles_app/paths;py.typedandweb/diststill ship).[tool.setuptools.packages.find]/[tool.setuptools.package-data]sections (hatchling is the build backend; setuptools never runs).utils/shortcut.pyimportsctypes.wintypesproperly, letting theprofiles.utils.shortcutpylint ignore be dropped.#47 — docs accuracy sweep
docs/network-server-guide.en.mdfully translated to English; the port section now lists the verified defaults (src/profiles/app.py:36,desktop/lifecycle.py:35/63,desktop/launcher.py:65) instead of a phantomapp.py_DEFAULT_PORTpointer, and notes there is no--portCLI flag.docs/operations/log-format.md:COMMAND_OUTPUTadded to the event catalogue, example versions switched to SemVer with a CalVer note, two stale spec links removed.launch/package added to all three architecture trees (README.md, README.fr.md, docs/README.md)..pre-commit-config.yaml: removed the stalemkdocs.ymlexclude (no such file).Verification
pytest: 1339 passed, 245 skipped (includes the previously-failing tests/web/test_build.py::test_main_without_npm fails on machines with npm in the fallback dirs #36 test on this machine), coverage 87.7%pylint src/profiles: 9.84/10 ·ruff check/ruff format --check: cleanFixes #36, fixes #37, fixes #38, fixes #47