forked from letsql/letsql
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
49 lines (49 loc) · 1.59 KB
/
.pre-commit-config.yaml
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
ci:
autofix_commit_msg: "style: auto fixes from pre-commit.ci hooks"
autofix_prs: false
autoupdate_commit_msg: "chore(deps): pre-commit.ci autoupdate"
skip:
- ruff
default_stages:
- pre-commit
repos:
- repo: https://github.com/codespell-project/codespell
rev: v2.2.5
hooks:
- id: codespell
additional_dependencies:
- tomli
args: [--ignore-words=.codespell.ignore-words]
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.5.2
hooks:
# Run the linter.
- id: ruff
args: ["--output-format=full", "--fix", "python", "examples", "docs"]
# Run the formatter.
- id: ruff-format
- repo: local
hooks:
- id: rust-fmt
name: Rust fmt
description: Run cargo fmt on files included in the commit. rustfmt should be installed before-hand.
entry: cargo fmt --all --
pass_filenames: true
types: [file, rust]
language: system
- id: rust-clippy
name: Rust clippy
description: Run cargo clippy on files included in the commit. clippy should be installed before-hand.
entry: cargo clippy --all-targets --all-features -- -Dclippy::all -Aclippy::redundant_closure
pass_filenames: false
types: [file, rust]
language: system
- repo: https://github.com/astral-sh/uv-pre-commit
# uv version.
rev: 0.5.4
hooks:
# Update the uv lockfile
- id: uv-lock
- id: uv-export
args: ["--frozen", "--no-hashes", "--no-emit-project", "--all-groups", "--output-file=requirements-dev.txt"]