feat: add CLI#15
Merged
Merged
Conversation
- Add typer as optional dependency under [cli] extra - Add 'sparql format <path>' command to format files in-place - Add 'sparql check <path>' command to verify files are formatted - Support both single files and directories (.rq, .sparql extensions) - Handle SparqlSyntaxError with user-friendly messages - Add comprehensive tests for CLI commands
- Add 'version' subcommand using importlib.metadata to read version from pyproject.toml - Enable both -h and --help via context_settings - Update tests to use 'format' subcommand explicitly - Add tests for -h flag and version command
- Add 'install' task to Taskfile.yml using uv sync --all-extras - Add arduino/setup-task@v2 step to all GitHub workflows - Replace 'uv sync' with 'task install' in ci, release, and pypi workflows This ensures optional dependencies (like typer) are installed in CI.
- Replace separate ruff/mypy steps with 'task code:check' in CI - Add main.py to code and code:check tasks in Taskfile.yml - Ignore E501 for main.py (contains SPARQL query strings)
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.
No description provided.