forked from EpicGames/lore
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
70 lines (62 loc) · 2.03 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
70 lines (62 loc) · 2.03 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
63
64
65
66
67
68
69
70
exclude: /thirdparty/|lore-server/src/protocol/test_data/|tps/
repos:
- repo: local
hooks:
- id: cargo-clippy
name: cargo clippy
language: rust
entry: ./.pre-commit-clippy.py
pass_filenames: false
always_run: true
- id: cargo-fmt
name: cargo format
language: rust
entry: cargo +nightly fmt --all --check
pass_filenames: false
always_run: true
- repo: https://github.com/EmbarkStudios/cargo-deny
rev: 0.19.0
hooks:
- id: cargo-deny
args: [ "--all-features", "check", "bans", "licenses", "sources" ]
always_run: true
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-executables-have-shebangs
# Ignore for now until executable flag handling is easier in Lore
# - id: check-shebang-scripts-are-executable
- id: mixed-line-ending
args: [ "--fix=lf" ]
- id: check-added-large-files
- id: check-merge-conflict
- id: check-symlinks
- id: check-vcs-permalinks
- id: detect-private-key
- id: fix-byte-order-marker
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.5
hooks:
- id: remove-tabs
# lore-core/native uses clangformat, which expects to use tabs so leave that path alone
exclude: lore-core/native
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.10.0.1
hooks:
- id: shellcheck
require_serial: true
args: [ "--severity=info", "--external-sources" ]
exclude: ".envrc$"
- repo: https://github.com/codespell-project/codespell
rev: v2.2.4
hooks:
- id: codespell
args: [ "-L", "ue,crate,numer,ser,ratatui,ect,noes,keep-alives", "-S", "Cargo.*,vendor/*" ]
exclude: ^docs/developing/doc-standards/tools/vale/styles/
- repo: https://github.com/rhysd/actionlint
rev: v1.7.1
hooks:
- id: actionlint
files: ^\.github/workflows/