Skip to content

Commit

Permalink
feat: Add GitHub Actions Workflow to check for typos (#141)
Browse files Browse the repository at this point in the history
* feat: Add GitHub Actions Workflow to check for typos

* chore: Fixed typos

* chore: Fixed typos
  • Loading branch information
Weijun-H authored Sep 29, 2024
1 parent 18b9198 commit 8d07a56
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .codespellignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
crate
socio-economic
32 changes: 32 additions & 0 deletions .github/workflows/check-typo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# workflows/check-typo.yml
#
# Check Typo
# Check Typo using codespell.

name: Check Typo

on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
workflow_dispatch:

concurrency:
group: check-typo-${{ github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
check-typo:
name: Check Typo using codespell
runs-on: depot-ubuntu-latest-2
if: github.event.pull_request.draft == false

steps:
- name: Checkout Git Repository
uses: actions/checkout@v4

- name: Check Typo using codespell
uses: codespell-project/actions-codespell@v2
with:
check_filenames: true
ignore_words_file: .codespellignore
skip: "Cargo.lock"
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ All development of ParadeDB is done via Docker and Compose. Our Docker setup is

- The `docker-compose.yml` file pulls the latest published ParadeDB image from DockerHub. It is used for hobby production deployments. We recommend using it to deploy ParadeDB in your own infrastructure.

### Pull Request Worfklow
### Pull Request Workflow

All changes to ParadeDB happen through Github Pull Requests. Here is the recommended
flow for making a change:
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/arrow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ pub fn schema_to_batch(schema: &SchemaRef, rows: &[PgRow]) -> Result<RecordBatch
},
DataType::Time64(unit) => match unit {
TimeUnit::Second => bail!("arrow time64i does not support seconds"),
TimeUnit::Millisecond => bail!("arrow time64 does not support millseconds"),
TimeUnit::Millisecond => bail!("arrow time64 does not support milliseconds"),
TimeUnit::Microsecond => Arc::new(Time64MicrosecondArray::from(
rows.iter()
.map(|row| decode::<Option<NaiveTime>>(field, row))
Expand Down

0 comments on commit 8d07a56

Please sign in to comment.