Skip to content

Commit 47e3943

Browse files
authored
ci: add typos to pre-commit (#34)
1 parent 1a7e250 commit 47e3943

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

.github/actions/basics/action.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ runs:
4343
- name: install cargo-deny,cargo-spellcheck
4444
uses: taiki-e/install-action@v2
4545
with:
46-
tool: cargo-deny,cargo-spellcheck
46+
tool: cargo-deny,cargo-spellcheck,typos
4747

4848
- uses: ./.github/actions/elapsed-time
4949
with:
50-
statement: "install cargo-deny,cargo-spellcheck"
50+
statement: "install cargo-deny,cargo-spellcheck,typos"
5151

5252
# ===============================================
5353

@@ -56,12 +56,12 @@ runs:
5656
#
5757
# b) doesn’t cache binaries, but the related metadata will,
5858
# so caused issues like “cargo binstall” detect binaries
59-
# are installed, but actually they don’t exist! These
60-
# binary installations should be put BEFORE this
59+
# are installed, but actually they don’t exist! These
60+
# binary installations should be put BEFORE this
6161
# rust-cache action
6262
#
6363
# c) doesn’t remove user's bin files, the "Any files in
64-
# ~/.cargo/bin that were present before the action
64+
# ~/.cargo/bin that were present before the action
6565
# ran (for example rustc)." says the cache itself
6666

6767
- uses: Swatinem/rust-cache@v2

.pre-commit-config.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ repos:
4040
entry: lychee
4141
args: ["--no-progress"] # , "--cache"
4242

43+
- id: typos
44+
name: typos
45+
language: system
46+
entry: typos
47+
4348
- id: sorted-dictionary-check
4449
name: make sure dictionary words are sorted and unique
4550
language: system

docs/Grafana_tag_issue.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
When querying InfluxDB 3.0 with SQL in Grafana, a field named `impl` with
66
datatype `Dictionary(Int32, Utf8)`(which is a columnar optimization used in
77
InfluxDB 3.0 for efficient storage) is treated as a string field instead of a
8-
tag. This causes data from differnet tags to be mixed together instead of
8+
tag. This causes data from different tags to be mixed together instead of
99
different data series. This differs from the behavior when using Flux, where
1010
"impl" is correctly recognized as a tag.
1111

0 commit comments

Comments
 (0)