Skip to content

Commit

Permalink
👷 add codespell checker
Browse files Browse the repository at this point in the history
  • Loading branch information
YutaGoto committed Feb 1, 2023
1 parent 531b446 commit ebc2577
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ version: 2.1

orbs:
ruby: circleci/[email protected]
python: circleci/[email protected]
slack: circleci/[email protected]

spec_steps: &spec_steps
Expand All @@ -11,6 +12,16 @@ spec_steps: &spec_steps
name: run rspec
command: bundle e rspec

spell_check_steps: &spell_check_steps
- checkout
- python/install-packages:
args: codespell
pkg-manager: pip
pypi-cache: false
- run:
name: check spell
command: codespell

slack_steps: &slack_steps
- checkout
- slack/notify:
Expand Down Expand Up @@ -41,6 +52,11 @@ jobs:
- image: cimg/ruby:3.2
executor: ruby/default
steps: *spec_steps
spell-check:
docker:
- image: cimg/python:3.11
executor: python/default
steps: *spell_check_steps
slack:
docker:
- image: cimg/ruby:3.1
Expand All @@ -50,19 +66,20 @@ jobs:
# Invoke jobs via workflows
# See: https://circleci.com/docs/2.0/configuration-reference/#workflows
workflows:
version: 2
build: # This is the name of the workflow, feel free to change it to better match your workflow.
# Inside the workflow, you define the jobs you want to run.
jobs:
- ruby-27-spec
- ruby-30-spec
- ruby-31-spec
- ruby-32-spec
- spell-check
- slack:
requires:
- ruby-27-spec
- ruby-30-spec
- ruby-31-spec
- ruby-32-spec
- spell-check
context:
- slack
2 changes: 2 additions & 0 deletions .codespellrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[codespell]
skip = .gem_rbs_collection,.git

0 comments on commit ebc2577

Please sign in to comment.