Skip to content

Commit

Permalink
Merge pull request #171 from YutaGoto/add-yamllint
Browse files Browse the repository at this point in the history
🔧 setup yamllint
  • Loading branch information
YutaGoto authored Aug 14, 2024
2 parents 6c2d2ae + 7ce444c commit d8e8915
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 2 deletions.
26 changes: 24 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
version: 2.1

orbs:
ruby: circleci/[email protected].2
ruby: circleci/[email protected].3
python: circleci/[email protected]
slack: circleci/[email protected].2
slack: circleci/[email protected].3

commands:
notify_failed:
Expand Down Expand Up @@ -39,6 +39,19 @@ spell_check_steps: &spell_check_steps
command: codespell
- notify_failed

yamllint_steps: &yamllint_steps
- checkout
- run:
name: upgrade pip
command: pip install --upgrade pip
- run:
name: install yamllint
command: pip install yamllint
- run:
name: run yamllint
command: yamllint .
- notify_failed

slack_steps: &slack_steps
- checkout
- slack/notify:
Expand Down Expand Up @@ -76,6 +89,11 @@ jobs:
name: python/default
tag: "3.12"
steps: *spell_check_steps
yamllint:
executor:
name: python/default
tag: "3.12"
steps: *yamllint_steps
slack:
executor:
name: ruby/default
Expand Down Expand Up @@ -103,6 +121,9 @@ workflows:
- spell-check:
context:
- slack-secrets
- yamllint:
context:
- slack-secrets
- slack:
requires:
- ruby-30-spec
Expand All @@ -111,5 +132,6 @@ workflows:
- ruby-33-spec
- cop
- spell-check
- yamllint
context:
- slack-secrets
9 changes: 9 additions & 0 deletions .yamllint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
extends: default

rules:
document-start: disable
comments: disable

ignore:
- .gem_rbs_collection/
- rbs_collection.lock.yaml

0 comments on commit d8e8915

Please sign in to comment.