Skip to content

Update pre-commit hooks and update dev docs#487

Merged
mahmoud merged 1 commit intomasterfrom
add-precommit-devdocs-v2
Apr 11, 2026
Merged

Update pre-commit hooks and update dev docs#487
mahmoud merged 1 commit intomasterfrom
add-precommit-devdocs-v2

Conversation

@mahmoud
Copy link
Copy Markdown
Member

@mahmoud mahmoud commented Apr 11, 2026

Followup to #407

Add .pre-commit-config.yaml with three hooks:

prettier: auto-formats staged frontend/src/ files
eslint: lints staged frontend/src/ files
ruff (v0.15.5): checks Python syntax errors and undefined names (E9, F63, F7, F821) in montage/

Add pyproject.toml with ruff line-length config

Update dev.md:

Add OAuth setup section explaining both modes (debug bypass vs real OAuth) with step-by-step registration instructions
Link to MediaWiki OAuth developer guide and Toolforge docs
Add pre-commit hooks setup section
Add CI section with local check commands
Add lint:check and format:check to frontend commands list
Fix Node.js version requirement (v16 -> v20)
Remove .env from project structure (gitignored file)

Update README.md:

Add CI badge
Add Development section linking to dev.md
Replace outdated tox instructions with Docker-based test command
Add Deployment section linking to deployment.md

Fix view_jurors -> view_juror typo in rendered_admin.py (ruff F821 caught this: route referenced view_juror but function was named view_jurors)

- Add .pre-commit-config.yaml with three hooks:
  - prettier: auto-formats staged frontend/src/ files
  - eslint: lints staged frontend/src/ files
  - ruff (v0.15.5): checks Python syntax errors and undefined names
    (E9, F63, F7, F821) in montage/

- Add pyproject.toml with ruff line-length config

- Update dev.md:
  - Add OAuth setup section explaining both modes (debug bypass vs
    real OAuth) with step-by-step registration instructions
  - Link to MediaWiki OAuth developer guide and Toolforge docs
  - Add pre-commit hooks setup section
  - Add CI section with local check commands
  - Add lint:check and format:check to frontend commands list
  - Fix Node.js version requirement (v16 -> v20)
  - Remove .env from project structure (gitignored file)

- Update README.md:
  - Add CI badge
  - Add Development section linking to dev.md
  - Replace outdated tox instructions with Docker-based test command
  - Add Deployment section linking to deployment.md

- Fix view_jurors -> view_juror typo in rendered_admin.py (ruff F821
  caught this: route referenced view_juror but function was named
  view_jurors)
@mahmoud mahmoud merged commit 730c86a into master Apr 11, 2026
4 checks passed
@mahmoud mahmoud deleted the add-precommit-devdocs-v2 branch April 11, 2026 05:03
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