Skip to content

Docs/truthlens vision#15

Merged
mrhpython merged 15 commits intomainfrom
docs/truthlens-vision
Sep 24, 2025
Merged

Docs/truthlens vision#15
mrhpython merged 15 commits intomainfrom
docs/truthlens-vision

Conversation

@mrhpython
Copy link
Copy Markdown
Owner

Title:

Summary

  • What changed and why (1–3 lines).

Checklist

  • Scope is minimal and focused
  • CI green locally (if applicable)
  • Tests added/updated or not applicable
  • Docs updated or not applicable

Validation

  • Steps to verify manually:
    1.
    2.

Links

  • Related issue: #
  • Context/spec:

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

Codex Review: Here are some suggestions.

Reply with @codex fix comments to fix any unresolved comments.

About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you open a pull request for review, mark a draft as ready, or comment "@codex review". If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex fix this CI failure" or "@codex address that feedback".

Comment thread .venv/bin/activate
Comment on lines +1 to +40
# This file must be used with "source bin/activate" *from bash*
# You cannot run it directly

deactivate () {
# reset old environment variables
if [ -n "${_OLD_VIRTUAL_PATH:-}" ] ; then
PATH="${_OLD_VIRTUAL_PATH:-}"
export PATH
unset _OLD_VIRTUAL_PATH
fi
if [ -n "${_OLD_VIRTUAL_PYTHONHOME:-}" ] ; then
PYTHONHOME="${_OLD_VIRTUAL_PYTHONHOME:-}"
export PYTHONHOME
unset _OLD_VIRTUAL_PYTHONHOME
fi

# Call hash to forget past commands. Without forgetting
# past commands the $PATH changes we made may not be respected
hash -r 2> /dev/null

if [ -n "${_OLD_VIRTUAL_PS1:-}" ] ; then
PS1="${_OLD_VIRTUAL_PS1:-}"
export PS1
unset _OLD_VIRTUAL_PS1
fi

unset VIRTUAL_ENV
unset VIRTUAL_ENV_PROMPT
if [ ! "${1:-}" = "nondestructive" ] ; then
# Self destruct!
unset -f deactivate
fi
}

# unset irrelevant variables
deactivate nondestructive

# on Windows, a path can contain colons and backslashes and has to be converted:
if [ "${OSTYPE:-}" = "cygwin" ] || [ "${OSTYPE:-}" = "msys" ] ; then
# transform D:\path\to\venv to /d/path/to/venv on MSYS
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[P1] Avoid committing the virtualenv directory

The commit includes the entire .venv/ virtual environment (for example bin/activate plus all installed packages). These files are machine‑generated, platform specific, and replicate third‑party code already described by requirements.txt. Checking them in balloons the repository, risks stale dependencies, and makes cross‑platform installs harder because the committed binaries will not match other environments. It would be safer to remove .venv/ from version control and ignore it so developers recreate it locally.

Useful? React with 👍 / 👎.

Comment thread .github/workflows/ci.yml
Comment on lines 31 to +35
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install deps (if requirements.txt)
run: |
if [ -f requirements.txt ]; then
python -m pip install --upgrade pip
pip install -r requirements.txt
fi
- name: Run pytest if tests are present
run: |
if ls -1 tests test_*.py 2>/dev/null | grep -q .; then
pip install pytest
pytest -q
else
echo "No python tests found; skipping"
fi
- name: Sanity
run: python --version
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[P1] CI workflow drops linting and Python test coverage

The revised GitHub Actions workflow now only runs npm test and prints python --version; it no longer performs the API health check, ESLint, optional npm lint/test scripts, or pytest execution that existed previously. This regression means JavaScript linting, custom npm scripts, and all Python tests will silently stop running in CI, allowing broken or non‑conforming code to merge undetected. Unless the project intends to remove these checks entirely, the previous steps (or equivalents) should be restored.

Useful? React with 👍 / 👎.

@mrhpython mrhpython merged commit 4c583ca into main Sep 24, 2025
1 check failed
@mrhpython mrhpython deleted the docs/truthlens-vision branch September 24, 2025 15:34
mrhpython added a commit that referenced this pull request Oct 22, 2025
* ci: stabilize CI (always run jobs, robust /health wait)

* ci: pin ESLint to v8; add httpx for FastAPI TestClient

* ci: make ESLint non-blocking and set PYTHONPATH for pytest

* test: load main.py by path to avoid import issues in CI

* feat(api-py): add minimal FastAPI app for tests

* ci: run on push for all branches to satisfy required checks

* fix(audit): ignore code blocks and hyphenated identifiers; tighten pronoun detection; add tests

* test: switch to Node test runner; convert truth-audit tests; docs: update README

* docs: document TruthLens runtime + audit; add compliance quick checks; clarify Codex workflow

* docs: add PR checklist template (Truth Kernel)

* docs: add PR merge quick guide to workspace/docs/README.md

* chore: re-add PR helper and batch script; mark executable

* ci: add generic CI workflow with node and python jobs to satisfy required checks

* docs: add TruthLens Vision; link from docs README

---------

Co-authored-by: Michael <michael@localhost>
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.

1 participant