Skip to content

Add --enable-metrics#290

Open
Qup42 wants to merge 3 commits into
qlever-dev:mainfrom
Qup42:enableMetrics
Open

Add --enable-metrics#290
Qup42 wants to merge 3 commits into
qlever-dev:mainfrom
Qup42:enableMetrics

Conversation

@Qup42
Copy link
Copy Markdown
Collaborator

@Qup42 Qup42 commented May 7, 2026

No description provided.

Comment thread src/qlever/qleverfile.py
Comment on lines +16 to +26
def bool_type(val: str) -> bool:
if val in ["True", "true", "1", "on", "yes"]:
return True
elif val in ["False", "false", "0", "off", "no"]:
return False
else:
raise ArgumentTypeError(
f'"{val}" is not a valid boolean value. Use True/False, true/false, yes/no, 1/0 or on/off.'
)


Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

This extra code is required so that option behaves as expected. PERSIST_UPDATES = false leads to updates being persisted because any non empty to string is coerced to True. This should probably be used for --persist-updates, --only-pso-and-pos-permutation, --use-patterns and --use-text-index.

Comment thread pyproject.toml
dependencies = [ "psutil", "termcolor", "argcomplete", "pyyaml", "rdflib", "requests-sse", "tqdm>=4.60.0" ]

[project.optional-dependencies]
dev = [ "ruff", "pre-commit" ]
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Unrelated to the core of this PR but still nice to have.

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