Modernize tooling: ruff + pyproject.toml, bump to 1.0.0#12
Merged
Conversation
- Replace pylint/flake8/requirements.txt with ruff and pyproject.toml (ruff lint + format, pytest, coverage, setuptools dynamic version, dev extras). - Move __version__ into serializable/version.py and bump to 1.0.0. - Add AGENTS.md + CLAUDE.md with workflow rules and script conventions aligned with other openvax repos. - Add format.sh and develop.sh; update lint.sh to run ruff, deploy.sh to gate on lint + test before building and uploading via twine. - Split tests.yml into lint + test matrix (Python 3.9-3.12) and clean up .gitignore. - Clean up existing source to pass ruff (f-strings, raise ... from, ClassVar, named exception on bare except, module-level lookup cache).
Coverage Report for CI Build 24680195872Coverage increased (+0.03%) to 88.384%Details
Uncovered ChangesNo uncovered changes found. Coverage RegressionsNo coverage regressions found. Coverage Stats
💛 - Coveralls |
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.
Summary
pyproject.toml(setuptools dynamic version, pytest, coverage, dev extras). Dropspylintrcandrequirements.txt.format.sh,lint.sh,test.sh,develop.sh,deploy.sh(deploy still usestwine uploadfor now and gates onlint.sh+test.sh).serializable/version.pyas the single source of truth for__version__and bump to 1.0.0 (+ flip classifier to5 - Production/Stable).AGENTS.mdandCLAUDE.mddocumenting golden rules, scripts, and workflow conventions..github/workflows/tests.ymlinto a lint job + 3.9–3.12 test matrix with coveralls upload.raise ... from exc,ClassVaron mutable class default, named exception in place of bareexcept, module-level lookup cache instead of mutable-default caching.Test plan
./lint.sh(ruff check + ruff format --check)./test.sh(27 passed, 88% coverage locally on Python 3.12)