Skip to content

Commit 9e9ae74

Browse files
authored
workflow: update precommit for new rust source structure (#1280)
1 parent 8958edc commit 9e9ae74

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ repos:
3030
name: maturin develop
3131
entry: maturin develop -E all,dev
3232
language: system
33-
files: ^(python/|src/|Cargo\.toml|pyproject\.toml)
33+
files: ^(rust/|python/|Cargo\.toml|pyproject\.toml)
3434
pass_filenames: false
3535

3636
- id: generate-cli-docs
@@ -51,14 +51,14 @@ repos:
5151
name: cargo test
5252
entry: cargo test
5353
language: system
54-
types: [rust]
54+
files: ^(rust/|Cargo\.toml)
5555
pass_filenames: false
5656

5757
- id: mypy-check
5858
name: mypy type check
5959
entry: dmypy run python
6060
language: system
61-
types: [python]
61+
files: ^(rust/|python/Cargo\.toml|pyproject\.toml)
6262
pass_filenames: false
6363

6464
- repo: https://github.com/astral-sh/ruff-pre-commit

examples/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,5 @@ Check out our [examples documentation](https://cocoindex.io/docs/examples) for m
5555
---
5656

5757
> **Note**: New to CocoIndex? Check out the [Getting Started](https://cocoindex.io/docs/getting_started) guide first!
58-
>
58+
>
5959
> **Contribute**: We welcome contributions! Submit a [pull request](https://github.com/cocoindex-io/cocoindex/pulls) to add more examples.

0 commit comments

Comments
 (0)