Skip to content

Commit

Permalink
spellcheck ci (#189)
Browse files Browse the repository at this point in the history
* add spellcheckers

* add spellcheckers
  • Loading branch information
ruslandoga authored Jul 22, 2024
1 parent 261405f commit f9a797a
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .codespellignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
som
ECT
22 changes: 22 additions & 0 deletions .github/workflows/spellcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: spellcheck

on:
pull_request:
push:
branches: [master]

jobs:
codespell:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: codespell-project/actions-codespell@v2
with:
check_filenames: true
ignore_words_file: .codespellignore

typos:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: crate-ci/typos@master
3 changes: 3 additions & 0 deletions .typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[default.extend-words]
"som" = "som" # ./test/ch/ecto_type_test.exs
"ECT" = "ECT" # ./test/ch/query_test.exs
2 changes: 1 addition & 1 deletion lib/ch.ex
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ defmodule Ch do
* `:scheme` - HTTP scheme, defaults to `"http"`
* `:hostname` - server hostname, defaults to `"localhost"`
* `:port` - HTTP port, defualts to `8123`
* `:port` - HTTP port, defaults to `8123`
* `:transport_opts` - options to be given to the transport being used. See `Mint.HTTP1.connect/4` for more info
* `:database` - Database, defaults to `"default"`
* `:username` - Username
Expand Down
4 changes: 2 additions & 2 deletions test/ch/faults_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ defmodule Ch.FaultsTest do
:ok = :gen_tcp.send(clickhouse, intercept_packets(mint))
:ok = :gen_tcp.send(mint, intercept_packets(clickhouse))

# falied ping
# failed ping
:ok = :gen_tcp.send(clickhouse, intercept_packets(mint))
:ok = :gen_tcp.send(mint, first_byte(intercept_packets(clickhouse)))
:ok = :gen_tcp.close(mint)
Expand Down Expand Up @@ -342,7 +342,7 @@ defmodule Ch.FaultsTest do

# TODO non-chunked request

test "reconects after closed before streaming request", ctx do
test "reconnects after closed before streaming request", ctx do
%{port: port, listen: listen, clickhouse: clickhouse} = ctx

test = self()
Expand Down

0 comments on commit f9a797a

Please sign in to comment.