Skip to content

Commit

Permalink
Add typos CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Hofer-Julian authored and bilelmoussaoui committed Aug 1, 2023
1 parent aaaad3e commit 15d8e06
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 15 deletions.
11 changes: 0 additions & 11 deletions .github/workflows/book.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,3 @@ jobs:
publish_dir: ./book/public
keep_files: false
destination_dir: stable/latest/book

codespell:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: codespell-project/actions-codespell@master
with:
check_filenames: true
path: book
ignore_words_list: "crate"
skip: "*.svg"
15 changes: 15 additions & 0 deletions .github/workflows/typos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: CI
on:
pull_request:
push:
branches:
- "master"
jobs:
typos:
name: Spell Check with Typos
runs-on: ubuntu-latest
steps:
- name: Checkout Actions Repository
uses: actions/checkout@v3
- name: Check spelling
uses: crate-ci/typos@master
11 changes: 11 additions & 0 deletions .typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[files]
extend-exclude = ["auto", "gdk4", "*.svg"]

[default.extend-words]
# Ignore false-positives
gir = "gir"
mak = "mak"
anid = "anid"
lamda = "lamda"
inout = "inout"
relm = "relm"
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Fabio Valentini:

Bilal Elmoussaoui:

- gtk: Add missing guard to AccesibleRoleToggleButton
- gtk: Add missing guard to AccessibleRoleToggleButton

## [0.6.3]

Expand Down
6 changes: 3 additions & 3 deletions gtk4/Gir.toml
Original file line number Diff line number Diff line change
Expand Up @@ -1853,7 +1853,7 @@ generate_builder = false
cfg_condition = "target_os = \"linux\""
[[object.function]]
name = "send"
manual = true # mis-generated callback_func
manual = true # misgenerated callback_func

[[object]]
name = "Gtk.PrintOperation"
Expand Down Expand Up @@ -2586,7 +2586,7 @@ manual_traits = ["TreeViewExtManual"]
name = "set_row_separator_func"
[[object.function.parameter]]
name = "func"
nullable = false # use a separate unset_row_separtor_func
nullable = false # use a separate unset_row_separator_func
[[object.signal]]
pattern = ".+"
[[object.signal.parameter]]
Expand Down Expand Up @@ -2671,7 +2671,7 @@ manual_traits = ["WidgetExtManual"]
const = true
[[object.function]]
pattern = "(init|dispose)_template"
ignore = true # We manually bind this one as part of CompositeTemplatExt
ignore = true # We manually bind this one as part of CompositeTemplateExt
[[object.function]]
name = "get_template_child"
ignore = true # Not useful for Rust bindings
Expand Down

0 comments on commit 15d8e06

Please sign in to comment.