Skip to content

Commit cd00e7d

Browse files
authored
ci: Check spelling with codespell
* You can ignore words inline by adding a comment like `# codespell:ignore word`. * You can ignore words by adding them to the `.codespell_ignores` file. * You can ignore files and directories by adding them with `skip = ` to the `.codespellrc` file. Signed-off-by: Sergei Petrosian <[email protected]>
1 parent 6d215f7 commit cd00e7d

File tree

7 files changed

+30
-5
lines changed

7 files changed

+30
-5
lines changed

.codespell_ignores

Whitespace-only changes.

.codespellrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[codespell]
2+
check-hidden = true
3+
# Note that `-w` doesn't work when ignore-multiline-regex is set
4+
# https://github.com/codespell-project/codespell/issues/3642
5+
ignore-multiline-regex = codespell:ignore-begin.*codespell:ignore-end
6+
ignore-words = .codespell_ignores
7+
# skip-file is not available https://github.com/codespell-project/codespell/pull/2759
8+
skip = .pandoc_template.html5,.README.html

.github/workflows/codespell.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Codespell configuration is within .codespellrc
2+
---
3+
name: Codespell
4+
on: # yamllint disable-line rule:truthy
5+
- pull_request
6+
permissions:
7+
contents: read
8+
jobs:
9+
codespell:
10+
name: Check for spelling errors
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
16+
- name: Codespell
17+
uses: codespell-project/actions-codespell@v2

.github/workflows/tft_citest_bad.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
RUN_ID=$(gh api "repos/$REPO/actions/workflows/tft.yml/runs?event=issue_comment" \
3737
| jq -r "[.workflow_runs[] | select( .display_title == \"$PR_TITLE\" ) | select( .conclusion == \"failure\" ) | .id][0]")
3838
if [ "$RUN_ID" = "null" ]; then
39-
echo "Failed workflow not found, exitting"
39+
echo "Failed workflow not found, exiting"
4040
exit 1
4141
fi
4242
echo "Re-running workflow $RUN_ID"

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ anymore. Match the lower-case strings instead.
265265

266266
### New Features
267267

268-
- adding support fpr Oracle Linux 6,7,8 and 9
268+
- adding support for Oracle Linux 6,7,8 and 9
269269

270270
### Bug Fixes
271271

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# timesync
22

3-
[![ansible-lint.yml](https://github.com/linux-system-roles/timesync/actions/workflows/ansible-lint.yml/badge.svg)](https://github.com/linux-system-roles/timesync/actions/workflows/ansible-lint.yml) [![ansible-test.yml](https://github.com/linux-system-roles/timesync/actions/workflows/ansible-test.yml/badge.svg)](https://github.com/linux-system-roles/timesync/actions/workflows/ansible-test.yml) [![markdownlint.yml](https://github.com/linux-system-roles/timesync/actions/workflows/markdownlint.yml/badge.svg)](https://github.com/linux-system-roles/timesync/actions/workflows/markdownlint.yml) [![shellcheck.yml](https://github.com/linux-system-roles/timesync/actions/workflows/shellcheck.yml/badge.svg)](https://github.com/linux-system-roles/timesync/actions/workflows/shellcheck.yml) [![tft.yml](https://github.com/linux-system-roles/timesync/actions/workflows/tft.yml/badge.svg)](https://github.com/linux-system-roles/timesync/actions/workflows/tft.yml) [![tft_citest_bad.yml](https://github.com/linux-system-roles/timesync/actions/workflows/tft_citest_bad.yml/badge.svg)](https://github.com/linux-system-roles/timesync/actions/workflows/tft_citest_bad.yml) [![woke.yml](https://github.com/linux-system-roles/timesync/actions/workflows/woke.yml/badge.svg)](https://github.com/linux-system-roles/timesync/actions/workflows/woke.yml)
3+
[![ansible-lint.yml](https://github.com/linux-system-roles/timesync/actions/workflows/ansible-lint.yml/badge.svg)](https://github.com/linux-system-roles/timesync/actions/workflows/ansible-lint.yml) [![ansible-test.yml](https://github.com/linux-system-roles/timesync/actions/workflows/ansible-test.yml/badge.svg)](https://github.com/linux-system-roles/timesync/actions/workflows/ansible-test.yml) [![codespell.yml](https://github.com/linux-system-roles/timesync/actions/workflows/codespell.yml/badge.svg)](https://github.com/linux-system-roles/timesync/actions/workflows/codespell.yml) [![markdownlint.yml](https://github.com/linux-system-roles/timesync/actions/workflows/markdownlint.yml/badge.svg)](https://github.com/linux-system-roles/timesync/actions/workflows/markdownlint.yml) [![shellcheck.yml](https://github.com/linux-system-roles/timesync/actions/workflows/shellcheck.yml/badge.svg)](https://github.com/linux-system-roles/timesync/actions/workflows/shellcheck.yml) [![tft.yml](https://github.com/linux-system-roles/timesync/actions/workflows/tft.yml/badge.svg)](https://github.com/linux-system-roles/timesync/actions/workflows/tft.yml) [![tft_citest_bad.yml](https://github.com/linux-system-roles/timesync/actions/workflows/tft_citest_bad.yml/badge.svg)](https://github.com/linux-system-roles/timesync/actions/workflows/tft_citest_bad.yml) [![woke.yml](https://github.com/linux-system-roles/timesync/actions/workflows/woke.yml/badge.svg)](https://github.com/linux-system-roles/timesync/actions/workflows/woke.yml)
44

55
This role installs and configures an NTP and/or PTP implementation to operate
66
<!--- wokeignore:rule=slave -->
@@ -105,7 +105,7 @@ timesync_ntp_provider: chrony
105105
# are not covered by the predefined settings provided by this role.
106106
# 'timesync_chrony_custom_settings' allows to define a list of custom settings
107107
# for the chrony.conf file, by providing a list of settings. As an example,
108-
# for debugging, one might need to log mesurements, statistics and tracking.
108+
# for debugging, one might need to log measurements, statistics and tracking.
109109
# This information is usually stored in the /var/log/chrony directory. For
110110
# that, one needs to define two different settings (logdir and log), as
111111
# follows:

pylintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ confidence=
5252
# can either give multiple identifiers separated by comma (,) or put this
5353
# option multiple times (only on the command line, not in the configuration
5454
# file where it should appear only once).You can also use "--disable=all" to
55-
# disable everything first and then reenable specific checks. For example, if
55+
# disable everything first and then re-enable specific checks. For example, if
5656
# you want to run only the similarities checker, you can use "--disable=all
5757
# --enable=similarities". If you want to run only the classes checker, but have
5858
# no Warning level messages displayed, use"--disable=all --enable=classes

0 commit comments

Comments
 (0)