File tree Expand file tree Collapse file tree 3 files changed +25
-3
lines changed
Expand file tree Collapse file tree 3 files changed +25
-3
lines changed Original file line number Diff line number Diff line change 4949 run : rustup component add rustfmt
5050
5151 - run : cargo fmt -- --check
52+
53+ precommit_hooks :
54+ runs-on : ubuntu-latest
55+ strategy :
56+ matrix :
57+ cmd :
58+ - " end-of-file-fixer"
59+ - " trailing-whitespace"
60+ - " mixed-line-ending"
61+ steps :
62+ - uses : actions/checkout@v4
63+
64+ - name : Set up Python 3.12
65+ uses : actions/setup-python@v5
66+ with :
67+ python-version : 3.12
68+
69+ -
uses :
pre-commit/[email protected] 70+ with :
71+ extra_args : ${{ matrix.cmd }} --all-files
Original file line number Diff line number Diff line change 11repos :
22 - repo : https://github.com/pre-commit/pre-commit-hooks
3- rev : v4.6 .0 # pre-commit-hooks version
3+ rev : v5.0 .0 # pre-commit-hooks version
44 hooks :
55 - id : check-added-large-files
66 - id : detect-private-key
99 - id : check-merge-conflict
1010 - id : detect-aws-credentials
1111 args : [ --allow-missing-credentials ]
12+ - id : mixed-line-ending
13+ args : [ --fix=lf ]
1214 - repo : https://github.com/astral-sh/ruff-pre-commit
1315 rev : v0.8.6 # ruff version
1416 hooks :
2224 entry : bash -c 'cd rust && cargo fmt'
2325 args : ['--verbose', '--']
2426
25- minimum_pre_commit_version : 3.7 .1
27+ minimum_pre_commit_version : 4.0 .1
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ tests = [
3232dev = [
3333 " maturin" ,
3434 " ruff==0.8.6" ,
35- " pre-commit>=3.7 .1" ,
35+ " pre-commit>=4.0 .1" ,
3636]
3737
3838[project .urls ]
You can’t perform that action at this time.
0 commit comments