Skip to content

Add make targets and a ruff pre-commit hook; explain the PyTorch versions - #283

Open
ryoari wants to merge 1 commit into
mainfrom
dev/make-and-pre-commit
Open

ryoari wants to merge 1 commit into
mainfrom
dev/make-and-pre-commit

Conversation

@ryoari

@ryoari ryoari commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Small things that make setting up and checking a change easier.

  • Makefile: make setup, make test, make lint, make check (all CI runs) and make check-release. It sets the environment variables the tests need. make help lists them.
  • .pre-commit-config.yaml: ruff on every commit, the same check CI runs.
  • CONTRIBUTING.md: mentions both, gives the uv command for the lock (it needs --index-strategy unsafe-best-match, because the lock takes PyTorch from the PyTorch index), and corrects the test time.
  • pyproject.toml: says that its PyTorch range is for the tools and CPU checks, while training and segment checks run in the training image (PyTorch 2.8.0). That answers the question in fix(deps): correct unrealistic version constraints for torch and numpy in pyproject.toml and requirements.txt #216.

…ions

make setup, test, lint, check and check-release run the commands from CONTRIBUTING.md
with the environment variables the tests need. pre-commit runs ruff as CI does.
CONTRIBUTING.md now also gives the uv command for the lock, which needs
--index-strategy unsafe-best-match.

pyproject.toml says which PyTorch it constrains: the tools and CPU checks. Training
and segment checks run in the training image with PyTorch 2.8.0 (see #216).
@coderabbitai

coderabbitai Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 59 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
Commits

Reviewing files that changed from the base of the PR and between f42508c and 3c4674d.

Files selected for processing: 4
  • .pre-commit-config.yaml
  • CONTRIBUTING.md
  • Makefile
  • pyproject.toml
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant