Skip to content

Commit

Permalink
Support pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Wh1isper committed Aug 27, 2023
1 parent f1952c7 commit f8a657a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions/setup-python@v3
- uses: pre-commit/[email protected]
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,9 @@ repos:
- id: debug-statements
- id: forbid-new-submodules
- id: trailing-whitespace

- repo: https://github.com/doublify/pre-commit-rust
rev: master
hooks:
- id: fmt
- id: cargo-check
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ fn main() {
.arg(
Arg::new("auto_unmount")
.long("auto_unmount")
.help("Automatically unmount on process exit")
.help("Automatically unmount on process exit"),
)
.arg(
Arg::new("allow-root")
Expand Down

0 comments on commit f8a657a

Please sign in to comment.