Skip to content

Add spellcheck workflow with typos#585

Merged
mattsse merged 3 commits intomainfrom
copilot/fix-584
Aug 18, 2025
Merged

Add spellcheck workflow with typos#585
mattsse merged 3 commits intomainfrom
copilot/fix-584

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Aug 11, 2025

This PR adds a spellcheck job to the lint workflow using the typos tool, following the same approach as Reth and Kona.

Changes

  • Added typos job to .github/workflows/lint.yml: Uses crate-ci/typos@v1 action to check spelling across all files in PRs
  • Created typos.toml configuration: Includes blockchain/Ethereum-specific terms and exclusions for:
    • Generated files (minified JS, build artifacts)
    • Hex strings and addresses common in blockchain projects
    • Technical terms like asterisc, optimism, alloy, superchain, etc.
  • Fixed existing typos found during implementation:
    • existantexistent in CSS
    • rountriproundtrip in changelog
    • datasdata in changelog

Why typos?

The typos tool is written in Rust and provides faster execution than codespell while offering better configuration options through regex patterns and word lists. It's specifically well-suited for Rust projects with blockchain terminology.

Testing

The configuration has been tested to ensure:

  • ✅ Catches actual spelling errors
  • ✅ Allows legitimate technical terms
  • ✅ Excludes generated/minified files
  • ✅ Integrates cleanly with existing lint workflow

Fixes #584.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copy link
Copy Markdown
Contributor Author

Copilot AI commented Aug 11, 2025

@emhane 👋 This repository doesn't have Copilot instructions. With Copilot instructions, I can understand the repository better, work faster and produce higher quality PRs.

I can generate a .github/copilot-instructions.md file for you automatically. Click here to open a pre-filled issue and assign it to me. I'll write the instructions, and then tag you for review.

Copilot AI and others added 2 commits August 11, 2025 15:04
Co-authored-by: emhane <58548332+emhane@users.noreply.github.com>
Co-authored-by: emhane <58548332+emhane@users.noreply.github.com>
Copilot AI changed the title [WIP] Add spellcheck workflow Add spellcheck workflow with typos Aug 11, 2025
Copilot AI requested a review from emhane August 11, 2025 15:09
@emhane emhane marked this pull request as ready for review August 12, 2025 09:11
@emhane emhane moved this to In Progress in Project Tracking Aug 13, 2025
@github-project-automation github-project-automation bot moved this from In Progress to In Review in Project Tracking Aug 18, 2025
@mattsse mattsse added this pull request to the merge queue Aug 18, 2025
Merged via the queue into main with commit 860ed49 Aug 18, 2025
25 of 44 checks passed
@mattsse mattsse deleted the copilot/fix-584 branch August 18, 2025 16:17
@github-project-automation github-project-automation bot moved this from In Review to Done in Project Tracking Aug 18, 2025
theochap pushed a commit to ethereum-optimism/optimism that referenced this pull request Jan 21, 2026
This PR adds a spellcheck job to the lint workflow using the `typos`
tool, following the same approach as
[Reth](paradigmxyz/reth#17501) and
[Kona](op-rs/kona#2605).

## Changes

- **Added `typos` job to `.github/workflows/lint.yml`**: Uses
`crate-ci/typos@v1` action to check spelling across all files in PRs
- **Created `typos.toml` configuration**: Includes
blockchain/Ethereum-specific terms and exclusions for:
  - Generated files (minified JS, build artifacts)
  - Hex strings and addresses common in blockchain projects
- Technical terms like `asterisc`, `optimism`, `alloy`, `superchain`,
etc.
- **Fixed existing typos** found during implementation:
  - `existant` → `existent` in CSS
  - `rountrip` → `roundtrip` in changelog
  - `datas` → `data` in changelog

## Why typos?

The `typos` tool is written in Rust and provides faster execution than
`codespell` while offering better configuration options through regex
patterns and word lists. It's specifically well-suited for Rust projects
with blockchain terminology.

## Testing

The configuration has been tested to ensure:
- ✅ Catches actual spelling errors
- ✅ Allows legitimate technical terms
- ✅ Excludes generated/minified files
- ✅ Integrates cleanly with existing lint workflow

Fixes #584.

<!-- START COPILOT CODING AGENT TIPS -->
---

✨ Let Copilot coding agent [set things up for
you](https://github.com/alloy-rs/op-alloy/issues/new?title=✨Set+up+Copilot+instructions&body=Configure%20instructions%20for%20this%20repository%20as%20documented%20in%20%5BBest%20practices%20for%20Copilot%20coding%20agent%20in%20your%20repository%5D%28https://gh.io/copilot-coding-agent-tips%29%0A%0A%3COnboard%20this%20repo%3E&assignees=copilot)
— coding agent works faster and does higher quality work when set up for
your repo.

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: emhane <58548332+emhane@users.noreply.github.com>
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.

Add spellcheck workflow

3 participants