Repository navigation
docs: describe secfoo the same way in --help, CITATION.cff and PyPI - #157
Merged
Merged
Conversation
`secfoo --help` still said "Context-based security architectural assessment." while the README and the PyPI description say "AI security review CLI ...". Use the PyPI summary as the single source: the Typer app help (and the root callback docstring) carry its first sentence and the CITATION.cff abstract carries the full description. Add test_product_description_is_the_same_everywhere so the three cannot drift apart again. Part of #120 (item 4). Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01DsERxaCi7rNtqUTYked7Jd
`secfoo --help` said "Context-based security architectural assessment." while the README, pyproject.toml and CITATION.cff say "AI security review CLI ...". Change the Typer app help and the root callback docstring to the first sentence of the PyPI description. Part of #120 (item 4). Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01DsERxaCi7rNtqUTYked7Jd
The npm package.json description and README still carried the old 'Context-based ...' tagline. The consistency test now also checks the root callback docstring (which --help can show) and the npm description. Co-Authored-By: Claude Opus 5.5 <[email protected]>
# Conflicts: # tests/test_docs_consistency.py
Collaborator
|
Thanks @Varunpoojari! Clean change, and the test pinning You flagged the npm wrapper as out of scope. I went ahead and folded it in, because the npm package page is the third public listing #120 item 4 is about:
I also merged |
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.
Part of #120 (item 4). Deliberately not
Fixes, because the other items in that issue are still open.Problem
The tool was described three different ways:
secfoo --help(Typer app help and root callback docstring)CITATION.cffabstractpyproject.tomldescription(PyPI summary)Changes
src/secfoo/cli.py: the Typer apphelp=and the_rootcallback docstring now carry the first sentence of the PyPI description: "AI security review CLI: SAST, secret scanning, SCA, threat modeling and architecture review."CITATION.cff: the abstract is now the fullpyproject.tomldescription.tests/test_docs_consistency.py: newtest_product_description_is_the_same_everywhere. It checks that theCITATION.cffabstract equals thepyproject.tomldescription, that the Typer help is the opening of that description, and that "Context-based" is gone from the help. It uses the sametomllib/tomlifallback as the other test, so it works on Python 3.10.pyproject.tomlis the source of truth, so the README and PyPI page are untouched.Checks run
mainand passes on this branch.tests/test_docs_consistency.pyandtests/test_cli.py: 78 passed.test_activity_routes.pyx3 andtest_architecture_dashboard.py::test_dashboard_diagram_section_still_present_alongside_new_dashboard), which fail the same way on an unmodifiedmainand don't touch these files.ruff check: the new test file is clean.src/secfoo/cli.pyshows the same error counts asmain(theUP045/B008backlog from Make lint and security scanning blocking in CI: ruff has 133 errors behind|| true, bandit findings are unreviewed, pip-audit never runs #114), so this PR adds none.python -m secfoo.cli --helpshows the new description.Notes
npm/secfoo/README.mdand thedescriptioninnpm/secfoo/package.json). I left those alone because Docs and packaging drift:secfoo[api]extra is obsolete, public version says 0.3.0 while PyPI is 0.3.1, install scripts point at another repo #120 doesn't list them; happy to follow up if you want them aligned too.