-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
62 lines (62 loc) · 1.94 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
62 lines (62 loc) · 1.94 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
56
57
58
59
60
61
62
# 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: 3e8a8703264a2f4a69428a0aa4dcb512790b2c8c # v6.0.0
hooks:
- id: check-case-conflict
- id: check-docstring-first
- id: check-symlinks
- id: destroyed-symlinks
- id: end-of-file-fixer
- id: mixed-line-ending
exclude: ^diagrams/
args: [--fix=lf]
- id: trailing-whitespace
exclude: ^diagrams/
args: [--markdown-linebreak-ext=md]
- repo: https://github.com/asottile/pyupgrade
rev: 75992aaa40730136014f34227e0135f63fc951b4 # v3.21.2
hooks:
- id: pyupgrade
args: [--keep-percent-format, --py312-plus]
- repo: https://github.com/pycqa/flake8
rev: c48217e1fc006c2dddd14df54e83b67da15de5cd # 7.3.0
hooks:
- id: flake8
additional_dependencies:
- flake8-bugbear==25.11.29
- flake8-builtins==3.1.0
- flake8-docstrings==1.7.0
- flake8-picky-parentheses==0.6.2
- flake8-quotes==3.4.0
- pep8-naming==0.15.1
- repo: https://github.com/pycqa/isort
rev: 131f4adcd5582bfc53928ab0d740eceb8b506b6c # 9.0.1
hooks:
- id: isort
- repo: local
hooks:
- id: mypy
name: mypy
entry: mypy -p tests.stub.http_query
language: system
types: [python]
files: ^tests/stub/http_query
pass_filenames: false
- repo: local
hooks:
- id: cargo-fmt
name: cargo fmt
entry: cargo fmt --manifest-path boltstub_rs/Cargo.toml --
language: system
types: [rust]
pass_filenames: false
- repo: local
hooks:
- id: cargo-clippy
name: cargo clippy
entry: cargo clippy --manifest-path boltstub_rs/Cargo.toml --all-features --tests -- -D warnings
language: system
types: [rust]
pass_filenames: false