-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
55 lines (49 loc) · 1.46 KB
/
.pre-commit-config.yaml
File metadata and controls
55 lines (49 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# This file contains configuration for the pre-commit (https://pre-commit.com/) tool.
fail_fast: true
repos:
- repo: local
hooks:
- id: format-python
name: Format Python
entry: just format-python
language: system
require_serial: true
pass_filenames: false
files: "^pyproject\\.toml|ruff\\.toml|^src/.*|^tests/.*|^docs/conf.py$"
- id: format-rust
name: Format Rust
entry: just format-rust
language: system
require_serial: true
pass_filenames: false
files: "^rust/.*$"
- id: lint-python
name: Lint Python
entry: just lint-python
language: system
pass_filenames: false
files: "^pyproject\\.toml|ruff\\.toml|^src/.*|^tests/.*|^docs/conf.py$"
- id: lint-rust
name: Lint Rust
entry: just lint-rust
language: system
pass_filenames: false
files: "^rust/.*$"
- id: run-python-tests
name: "Run Python tests"
entry: just test-python
language: system
pass_filenames: false
files: "^src/.*|^tests/.*|^rust/.*"
- id: run-rust-tests
name: "Run Rust tests"
entry: just test-rust
language: system
pass_filenames: false
files: "^rust/.*"
- id: build-docs
name: "Build docs"
entry: just build-docs
language: system
pass_filenames: false
files: "\\.rst$|^docs/.*"