From ebc2577619c9cf3fa6dedc3e664c0a3869fbe83b Mon Sep 17 00:00:00 2001 From: YutaGoto Date: Wed, 1 Feb 2023 12:19:58 +0900 Subject: [PATCH] :construction_worker: add codespell checker --- .circleci/config.yml | 19 ++++++++++++++++++- .codespellrc | 2 ++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 .codespellrc diff --git a/.circleci/config.yml b/.circleci/config.yml index f56f94f..8cae65d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -2,6 +2,7 @@ version: 2.1 orbs: ruby: circleci/ruby@2.0.0 + python: circleci/python@2.1.1 slack: circleci/slack@4.10.1 spec_steps: &spec_steps @@ -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: @@ -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 @@ -50,7 +66,6 @@ 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: @@ -58,11 +73,13 @@ workflows: - 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 diff --git a/.codespellrc b/.codespellrc new file mode 100644 index 0000000..22d5534 --- /dev/null +++ b/.codespellrc @@ -0,0 +1,2 @@ +[codespell] +skip = .gem_rbs_collection,.git