Skip to content

Standardize dev tooling (ruff, CI, prettier, editorconfig) - #71

Merged
Maharsh17 merged 4 commits into
mainfrom
standardize-dev-tooling
Aug 9, 2026
Merged

Standardize dev tooling (ruff, CI, prettier, editorconfig)#71
Maharsh17 merged 4 commits into
mainfrom
standardize-dev-tooling

Conversation

@Maharsh17

Copy link
Copy Markdown
Member

Closes #70

Standardizes the dev tooling so this repo and lm-dashboard share the same guardrails.

What is here

  • Ruff for Python linting and formatting, configured in server/pyproject.toml. Rule set is pyflakes, import sorting, pyupgrade, and bugbear, with the formatter as the single source of truth for layout.
  • Prettier and an editorconfig for the client, with format and format:check scripts.
  • A CI workflow that lints, checks formatting, and runs both test suites on every push and pull request. The backend job builds the schema from the numbered migrations against a throwaway Postgres, seeds the sample runs, then runs pytest. The frontend job runs vitest and a production build.

Commits

The config and CI land first. The two bulk reformats (ruff format, prettier) are each their own commit and are listed in git-blame-ignore-revs so blame stays readable. The reformats are mechanical with no behavior change.

Verification

Ran the full flow locally against a disposable Postgres. All 162 backend tests pass, all 5 frontend tests pass, the production build compiles, and lint and format checks are clean.

Share one dev-tooling setup with lm-dashboard. Ruff owns Python linting
and formatting, prettier owns the client, and a CI workflow runs the test
suites, lint, and format checks on every push and pull request.

The backend job builds the schema from the numbered migrations against a
throwaway Postgres, seeds the sample runs, then runs pytest.
Mechanical only. ruff format across the backend, plus safe autofixes
(import sorting, datetime.UTC, unused-import removal). No behavior change.
Mechanical only. First prettier pass over the client sources.
@Maharsh17
Maharsh17 merged commit 7c3c786 into main Aug 9, 2026
2 checks passed
@Maharsh17
Maharsh17 deleted the standardize-dev-tooling branch August 9, 2026 20:48
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.

Standardize dev tooling (ruff, CI, prettier, editorconfig)

1 participant