Modernize pyproject config, add format.sh, align with mhcgnomes#61
Merged
Modernize pyproject config, add format.sh, align with mhcgnomes#61
Conversation
…conventions - pyproject.toml: add [build-system], bump requires-python to >=3.9, expand classifiers, add [tool.ruff] base (py39, line-length 100), expand ruff lint rules (W/I/B/C4/UP/SIM/RUF in addition to E/F), add [tool.pytest.ini_options] and [tool.coverage.*], add [project.optional-dependencies].dev - add format.sh running ruff format - lint.sh now also runs ruff format --check - remove legacy pylintrc and .travis.yml - add AGENTS.md (derived from mhcgnomes, adapted for gtfparse) - apply safe auto-fixes surfaced by new ruleset (isort, __all__ sort, dict/set literals, raise ... from err, iterable unpacking) - apply ruff format across codebase - bump version 2.6.2 -> 2.6.3
Coverage Report for CI Build 24740421170Coverage remained the same at 86.471%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: add[build-system], bumprequires-pythonto>=3.9(matches CI matrix and dep floor), add[tool.ruff]base (target-version = "py39",line-length = 100), expand ruff lint rules (W,I,B,C4,UP,SIM,RUFalongside existingE/F), and add[tool.pytest.ini_options],[tool.coverage.*], plus adevextras group.format.sh(runsruff format) and updatelint.shto also runruff format --check— now symmetric with the siblingmhcgnomesrepo.AGENTS.mdderived from mhcgnomes, adapted for this repo (scripts, master branch, polars/pyarrow/pandas deps).pylintrcand.travis.yml(GitHub Actions in.github/workflows/tests.ymlis authoritative).__all__sorted,dict(...)→{...}literal,set([...])→{...},raise X→raise X from err,[a] + b→[a, *b],.keys()drop.ruff formatacross the codebase (whitespace/quote normalization, no logic changes).2.6.2→2.6.3.Pre-existing issues kept out of scope (ignored in
[tool.ruff.lint].ignore):UP031(%-format strings),B006(mutable default args),E741. Worth separate PRs.Test plan
./format.sh— clean./lint.sh—ruff check+ruff format --checkboth pass./test.sh— 20/20 tests pass, coverage 86%