Skip to content

Commit

Permalink
spellcheck, dependency audit, lint in gh
Browse files Browse the repository at this point in the history
  • Loading branch information
chayim committed Nov 21, 2023
1 parent 0bb8c12 commit 5ca64cb
Show file tree
Hide file tree
Showing 5 changed files with 76 additions and 9 deletions.
4 changes: 0 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,6 @@ commands:
- restore_cache:
keys:
- v3-dependencies-{{ arch }}-{{ checksum "Cargo.toml" }}
- run:
name: Check formatting
shell: /bin/bash -l -eo pipefail
command: make lint
- run:
name: Build debug
shell: /bin/bash -l -eo pipefail
Expand Down
28 changes: 28 additions & 0 deletions .github/spellcheck-settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
matrix:
- name: Markdown
expect_match: false
apsell:
lang: en
d: en_US
ignore-case: true
dictionary:
wordlists:
- .github/wordlist.txt
output: wordlist.dic
pipeline:
- pyspelling.filters.markdown:
markdown_extensions:
- markdown.extensions.extra:
- pyspelling.filters.html:
comments: false
attributes:
- alt
ignores:
- ':matches(code, pre)'
- code
- pre
- blockquote
- img
sources:
- '*.md'
- 'docs/*.md'
30 changes: 30 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Spellcheck

on:

pull_request:

jobs:
linters:
name: Lint check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
components: rustfmt, clippy,
- run: cargo fmt -- --check

pants:
name: Check dependencies
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
components: rustfmt, clippy,
- run: cargo pants --dev --verbose
18 changes: 18 additions & 0 deletions .github/workflows/spellcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Spellcheck

on:
pull_request:
paths:
- 'docs/*'
- 'README.md'

jobs:
spellcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Spellcheck
uses: rojopolis/[email protected]
with:
config_path: .github/spellcheck-settings.yml
task_name: Markdown
5 changes: 0 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,6 @@ TARGET=$(TARGET_DIR)/$(MODULE_NAME)

#----------------------------------------------------------------------------------------------

lint:
cargo fmt -- --check

.PHONY: lint

#----------------------------------------------------------------------------------------------

RUST_SOEXT.linux=so
Expand Down

0 comments on commit 5ca64cb

Please sign in to comment.