Skip to content

Commit

Permalink
feat(ci): typos for spell check (#64)
Browse files Browse the repository at this point in the history
* ci: typos

* fix: correct typo in description field

* feat: add spellcheck configuration and custom wordlist

* feat: add new words to custom wordlist

* fix: normalize capitalization of 'Customizations' to 'customizations' in wordlist
  • Loading branch information
Ad-Bean authored Nov 19, 2024
1 parent d704083 commit e587df4
Show file tree
Hide file tree
Showing 5 changed files with 328 additions and 1 deletion.
56 changes: 56 additions & 0 deletions .github/workflows/spellcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: spellcheck
on:
pull_request:

jobs:
run:
name: Spell Check with Typos
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: typos-action
id: typos-output
uses: crate-ci/[email protected]
with:
config: ./typos.toml

- name: Find Comment
if: ${{ failure() }}
uses: peter-evans/find-comment@v3
id: find-comment
with:
issue-number: ${{ github.event.pull_request.number }}
comment-author: "github-actions[bot]"
body-includes: The CI check for spelling has failed

- name: Create comment on PR if typos fail
if: ${{ failure() && steps.find-comment.outputs.comment-id == '' }}
uses: peter-evans/create-or-update-comment@v4
with:
issue-number: ${{ github.event.pull_request.number }}
body: |
### CI Check Failed
The CI check for spelling has failed. Please review the errors and correct any spelling mistakes.
For more errors and details, you can check the [CI Log](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}) or you can install [typos](https://github.com/crate-ci/typos?tab=readme-ov-file#install) and run `typos` locally to check for and fix spelling issues.
- name: Update comment if typos fail
if: ${{ failure() && steps.find-comment.outputs.comment-id != '' }}
uses: peter-evans/create-or-update-comment@v4
with:
comment-id: ${{ steps.find-comment.outputs.comment-id }}
issue-number: ${{ github.event.pull_request.number }}
body: |
### CI Check Failed
The CI check for spelling has failed. Please review the errors and correct any spelling mistakes.
For more errors and details, you can check the [CI Log](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}) or you can install [typos](https://github.com/crate-ci/typos?tab=readme-ov-file#install) and run `typos` locally to check for and fix spelling issues.
edit-mode: replace

- name: Check Spelling
uses: rojopolis/[email protected]
with:
config_path: .spellcheck.yml
task_name: Markdown
23 changes: 23 additions & 0 deletions .spellcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
matrix:
- name: Markdown
apsell:
ignore-case: true
lang: en
dictionary:
wordlists:
- .wordlist.txt
output: wordlist.dic
encoding: utf-8
pipeline:
- pyspelling.filters.markdown:
markdown_extensions:
- pymdownx.superfences
- pyspelling.filters.html:
comments: false
ignores:
- code
- pre
sources:
- "*.mdx"
- "*.md"
default_encoding: utf-8
229 changes: 229 additions & 0 deletions .wordlist.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,229 @@
https
github
risingwavelabs
RisingWave
Redpanda
Kinesis
Astra
Debezium
debezium
JSON
struct
varchar
TabItem
RailroadDiagram
rr
SSL
SASL
OAUTHBEARER
Docusaurus
docusaurus
Postgres
postgres
datagen
Grafana
Etcd
MinIO
CMake
OpenSSL
psql
RiseDev
Tmux
Kubernetes
frontend
NodePort
kubectl
uptime
Avro
Protobuf
Prebuilt
Observability
CSV
DML
Alluxio
Superset
DBeaver
Jupyter
Metabase
Clickhouse
CockroachDB
DataStax
Pinot
TiDB
Hudi
Trino
Airbyte
Fivetran
Hightouch
dbt
ELT
ETL
DataStax
StreamNative
integrations
macOS
quickstart
substring
substrings
gz
dev
CTEs
namespace
deserialization
scalability
changelog
failover
risingwave
sql
js
rw
pgwire
json
mv
mysql
Redash
JDBC
Redash
analytics
Flink
JVM
APIs
stateful
runtime
disaggregated
PrivateLink
VPCs
VPC
DataSet
FlinkSQL
LSM
natively
ad-hoc
hoc
RocksDB
checkpointing
checkpointed
UDF
APIs
DAGs
acyclic
MapReduce
dataflow
pipelined
RisingWave's
Redash
TiCDC
upsert
JSONB
boolean
Citus
CLI
Chandy
OpenDAL
WebHDFS
ChatGPT
clickstream
cryptocurrency
dataset
HDFS
flink
Flink's
Homebrew
IoT
Lamport
microservice
microservices
multibyte
protobuf
Protobuf
timestamptz
timestamptzs
unary
zstd
http
pre
toc
latencies
thoroughputs
VPC
bigint
bytea
TopN
UDFs
avro
kafka
Paimon
TPC
Greenplum
updateable
ClickHouse
JetStream
MSK
msk
NATS
ScyllaDB
OOM
DataGrip
PgAdmin
clickhouse
Supabase
BigQuery
transactional
OLAP
ksqlDB
backfilling
GraphQL
src
img
jpg
StarRocks
starrocks
md
Bytebase
GCS
gcs
faq
OLTP
Napa
superset
Napa
www
DDL
backfill
backfills
MVs
Nats
Psycopg
Datadog
Hasura
Liquibase
EMQX
HiveMQ
MQTT
RabbitMQ
Standalone's
localhost
prometheus
datasources
OpenSearch
codebase
Databricks
SDKs
RWUs
roadmap
terraform
Serverless
WASM
schemas
risingwavecloud
Rockset
personalization
DefaultButton
LightButton
VoteNotify
SharedMergeTree
JWT
TOML
mintlify
customizations
repo
2 changes: 1 addition & 1 deletion cloud/check-spending-details.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Check spending details"
descriptin: You can view the usage and the corresponding charges for each project during the ongoing billing period. You can also download a PDF version of the invoice for your records.
description: You can view the usage and the corresponding charges for each project during the ongoing billing period. You can also download a PDF version of the invoice for your records.
---

<Frame>
Expand Down
19 changes: 19 additions & 0 deletions typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[default]
extend-ignore-identifiers-re = [
# base64
"\\b[0-9A-Za-z+/]{64}(=|==)?\\b",
# ingest/ingest-from-datagen.md
"\\b[0-9A-Za-z]{16}\\b",
]

[default.extend-identifiers]
# sql/functions-operators/sql-function-string.md
1b69b4ba630f34e = "1b69b4ba630f34e"

[default.extend-words]
Iy = "Iy"
YTO = "YTO"
# Azure Kubernetes Service
AKS = "AKS"
# schema.history.internal.skip.unparseable.ddl
unparseable="unparseable"

0 comments on commit e587df4

Please sign in to comment.