Skip to content

Add Ruff linter and formater#39

Merged
eclipsehl merged 9 commits into
mainfrom
add-linter-formatter
Nov 24, 2025
Merged

Add Ruff linter and formater#39
eclipsehl merged 9 commits into
mainfrom
add-linter-formatter

Conversation

@keyprocedure

Copy link
Copy Markdown
Collaborator

Summary

Adds linting and code formatting setup using Ruff, following Pyflakes, Black, and isort rules.
Consolidates the linter and formatter commands into a script and Makefile target.
Adds a GitHub Actions workflow that enforces lint and formatting rules on every pull request and and on pushes to main.
Renames .yaml files to .yml.
Moves test_models.py into a tests dir.

Check linting and formatting using:
make lint

Automatically apply fixes using:
make lint-fix

Fixes #12

Test Plan

Verified existing code functionality was not changed by running multiple model configs and checking eval metrics.

@keyprocedure keyprocedure marked this pull request as ready for review November 23, 2025 22:04
@keyprocedure

Copy link
Copy Markdown
Collaborator Author

@eclipsehl, all checks pass, this PR is good to go

@keyprocedure keyprocedure requested review from eclipsehl and nantonzhang and removed request for eclipsehl and nantonzhang November 24, 2025 15:35
@eclipsehl eclipsehl merged commit 8100085 into main Nov 24, 2025
2 checks passed
@keyprocedure keyprocedure deleted the add-linter-formatter branch December 30, 2025 16:27
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.

Implement automated code formatter

2 participants