-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Many fixes and improvements + workflows pass again -> version 0.5.0 #31
Conversation
The seeding of
|
Some further observations and opinions:
from importlib.metadata import version
parser.add_argument("--version", action="version", version=f"%(prog)s {version('qlever')}")
|
@Qup42 Thanks a lot for your comments, Julian. The last two commits tried to address most of them. Concerning the autocompletion notice: Do you have a better suggestion? Ideally, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Most of the points are fixed.
Regarding the autocompletion notice: I completely agree that showing it at least once is very important. I am not yet aware of a good solution for showing it only once. Maybe one could store it in a file in ~/.config
or directly in the directory. But I'll have to think about that topic more.
Looks good from my side now. I stumbled upon some best practices while researching
Footnotes
|
|
pyproject.toml
Outdated
[tool.setuptools] | ||
package-dir = { "" = "src" } | ||
packages = [ "qlever", "qlever.commands", "qlever.Qleverfiles" ] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The layout qlever uses can automatically be discovered by setuptools. The two lines can be removed.
[tool.setuptools] | |
package-dir = { "" = "src" } | |
packages = [ "qlever", "qlever.commands", "qlever.Qleverfiles" ] | |
[tool.setuptools] |
NOTE: The command should probably be renamed to `benchmark` at some point because that's more what it does.
1. Implement suggestions from Julian for pyproject.toml 2. Show help info when calling `qlever` withou arguments 3. Make old version of script available via qlever-old
@Qup42 Thanks a lot for your help, Julian, I am finally merging this now + this is now a great basis for further development. |
from __future__ import annotations
so that script also runs for Python 3.8example-queries
command, in particular, it can now also handle JSON resultsget-data
commandpyproject.toml