Skip to content

Conversation

@francescalb
Copy link
Contributor

Also changed previous prefix argument to write-prefixes, as that is what it did

Description

Type of change

  • Bug fix and code cleanup
  • New feature
  • Documentation update
  • Testing

Checklist for the reviewer

This checklist should be used as a help for the reviewer.

  • Is the change limited to one issue?
  • Does this PR close the issue?
  • Is the code easy to read and understand?
  • Do all new feature have an accompanying new test?
  • Has the documentation been updated as necessary?
  • Is the code properly tested?

Also changed previous prefix argument to write-prefixes,
as that is what it did
@codecov
Copy link

codecov bot commented Jan 12, 2026

Codecov Report

❌ Patch coverage is 6.66667% with 14 lines in your changes missing coverage. Please review.
✅ Project coverage is 84.72%. Comparing base (8f369f2) to head (1613664).

Files with missing lines Patch % Lines
tripper/datadoc/keywords.py 6.66% 14 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #492      +/-   ##
==========================================
- Coverage   84.84%   84.72%   -0.13%     
==========================================
  Files          30       30              
  Lines        4784     4792       +8     
==========================================
+ Hits         4059     4060       +1     
- Misses        725      732       +7     

☔ 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.

Copy link
Contributor

@jesper-friis jesper-friis left a comment

Choose a reason for hiding this comment

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

Suggested some changes. Nice implementation of the --prefix argument

)
if is_curie(name):
return name
print(name)
Copy link
Contributor

Choose a reason for hiding this comment

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

remove

Comment on lines +1639 to +1640
namespace_filter: Keep only keywords within this namespace.
A prefix, namespace or a sequence of these.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
namespace_filter: Keep only keywords within this namespace.
A prefix, namespace or a sequence of these.
namespace_filter: A prefix, namespace or a sequence of these.
Keep only keywords within this namespace.

"the namespace "
"provided by this option. Can be provided more that once. "
"To be used with the --keywords option. "
"To be used with the --write-markdown option. "
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
"To be used with the --write-markdown option. "
"To be used with the --write-kw-md option. "

Comment on lines +1924 to +1925
"If missing,"
"it can be added with --prefix."
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
"If missing,"
"it can be added with --prefix."
"If missing, t can be added with --prefix."

help=(
"Comma-separated list of keywords to include in generated table. "
"Implies --keywords."
"Implies --write-markdown."
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
"Implies --write-markdown."
"Implies --write-kw-md."

"Generate keywords Markdown documentation for any keywords who's "
"domain is in the comma-separated list CLASSES. "
"Implies --keywords."
"Implies --write-markdown."
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
"Implies --write-markdown."
"Implies --write-kw-md."

"--prefixes",
"-p",
"--write-prefixes",
"-w",
Copy link
Contributor

Choose a reason for hiding this comment

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

Not a very intuitive short option name, but -p is already used. We can either keep it as it is or remove the short option.

"-w",
metavar="FILENAME",
help="Generate prefixes Markdown documentation.",
help="Write prefixes file.",
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
help="Write prefixes file.",
help="Write prefixes Markdown file.",


kw = Keywords(theme=default_theme)

if args.prefix:
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice :-)

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.

3 participants