Skip to content

Commit

Permalink
Minor cleanup, dep bump, rm pre-push hook
Browse files Browse the repository at this point in the history
* get rid of the husky pre-commit hook - it became much more of a nuisance than help.
* Add pre-commit CI to automatically do code formatting, just like we do in maplibre-native and some other projects
* remove unused dependencies
* bump some dependencies
  • Loading branch information
nyurik committed Feb 23, 2025
1 parent 9f18455 commit ce5cc3a
Show file tree
Hide file tree
Showing 6 changed files with 213 additions and 253 deletions.
25 changes: 0 additions & 25 deletions .cargo-husky/hooks/pre-push

This file was deleted.

22 changes: 22 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files

- repo: local
hooks:
- id: cargo-fmt
name: Rust Format
description: "Automatically format Rust code with cargo fmt"
entry: sh -c "cargo fmt --all"
language: rust
pass_filenames: false

# TODO: Add SQL hooks for formatting and linting
# TODO: Add NPM hooks for formatting and linting
Loading

0 comments on commit ce5cc3a

Please sign in to comment.