Skip to content

Commit da5f494

Browse files
committed
ci: adds typos to lint workflow
1 parent 91781b1 commit da5f494

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

.github/workflows/lint.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,3 +126,14 @@ jobs:
126126
127127
- name: Run pylint
128128
run: pylint --rcfile=.pylintrc cloudsmith_cli
129+
130+
typos:
131+
name: Check for typos (typos)
132+
runs-on: ubuntu-latest
133+
steps:
134+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
135+
with:
136+
persist-credentials: false
137+
138+
- name: Run typos
139+
uses: crate-ci/typos@65120634e79d8374d1aa2f27e54baa0c364fff5a # v1.42.1

.pre-commit-config.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
# Pre-Commit hooks
22
# See: https://pre-commit.com/hooks.html
33
repos:
4-
- repo: https://github.com/crate-ci/typos
5-
rev: v1.42.0
6-
hooks:
7-
- id: typos
84

95
- repo: https://github.com/pre-commit/pre-commit-hooks
106
rev: v5.0.0
@@ -85,3 +81,8 @@ repos:
8581
"-sn", # Don't display the score
8682
"--rcfile=.pylintrc", # Link to your config file
8783
]
84+
85+
- repo: https://github.com/crate-ci/typos
86+
rev: v1.42.1
87+
hooks:
88+
- id: typos

0 commit comments

Comments
 (0)