From 15d8e062c0818995999a280f9f211fd0473ba4a1 Mon Sep 17 00:00:00 2001 From: Julian Hofer Date: Sat, 29 Jul 2023 14:49:43 +0200 Subject: [PATCH] Add typos CI workflow --- .github/workflows/book.yml | 11 ----------- .github/workflows/typos.yml | 15 +++++++++++++++ .typos.toml | 11 +++++++++++ CHANGELOG.md | 2 +- gtk4/Gir.toml | 6 +++--- 5 files changed, 30 insertions(+), 15 deletions(-) create mode 100644 .github/workflows/typos.yml create mode 100644 .typos.toml diff --git a/.github/workflows/book.yml b/.github/workflows/book.yml index 7bbe9e9db5e4..c4913ac1aa18 100644 --- a/.github/workflows/book.yml +++ b/.github/workflows/book.yml @@ -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" diff --git a/.github/workflows/typos.yml b/.github/workflows/typos.yml new file mode 100644 index 000000000000..3c7f20c450eb --- /dev/null +++ b/.github/workflows/typos.yml @@ -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 diff --git a/.typos.toml b/.typos.toml new file mode 100644 index 000000000000..a0564c9b9990 --- /dev/null +++ b/.typos.toml @@ -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" diff --git a/CHANGELOG.md b/CHANGELOG.md index e0a7bb3d9d28..ab1e3ccc879f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -36,7 +36,7 @@ Fabio Valentini: Bilal Elmoussaoui: -- gtk: Add missing guard to AccesibleRoleToggleButton +- gtk: Add missing guard to AccessibleRoleToggleButton ## [0.6.3] diff --git a/gtk4/Gir.toml b/gtk4/Gir.toml index 086b6f9e0a8b..9f20f4c21419 100644 --- a/gtk4/Gir.toml +++ b/gtk4/Gir.toml @@ -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" @@ -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]] @@ -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