ci: add ruff lint and format checks - #1
Merged
Merged
Conversation
Add ruff to dev dependencies with a py39-targeted config, run `ruff check --fix` and `ruff format` across the codebase, and add a lint job to the tests workflow that gates the test matrix. Export `__version__` in `__all__` and add the Ruff badge to README. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Add mypy and types-requests to dev dependencies with a strict config, run it in the lint job, and add the mypy badge to README. Fix the eight no-any-return errors in both clients: validate that the API response is a JSON object, coerce taskId/balance to int/float, and check that a ready task carries a solution object. Behaviour is unchanged for well-formed responses; malformed ones now raise NetworkError instead of failing later. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
After a successful PyPI upload, create the matching GitHub Release with auto-generated notes and the built sdist/wheel attached. Grant the publish job contents:write for that. Add the GitHub Release badge to README. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
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.
Add ruff to dev dependencies with a py39-targeted config, run
ruff check --fixandruff formatacross the codebase, and add a lint job to the tests workflow that gates the test matrix. Export__version__in__all__and add the Ruff badge to README.