File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 commitMessageLowerCase : 'never' ,
77 configMigration : true ,
88 dependencyDashboard : true ,
9+ "pre-commit" : {
10+ enabled : true
11+ } ,
912 customManagers : [
1013 {
1114 customType : 'regex' ,
2528 packageNameTemplate : 'rust-lang/rust' ,
2629 datasourceTemplate : 'github-releases' ,
2730 } ,
31+ {
32+ customType : 'regex' ,
33+ managerFilePatterns : [
34+ '/^\\.github/workflows/pre-commit.yml$/' ,
35+ ] ,
36+ matchStrings : [
37+ 'prek-version.*?(?<currentValue>\\d+\\.\\d+(\\.\\d+)?)' ,
38+ ] ,
39+ depNameTemplate : 'prek' ,
40+ packageNameTemplate : 'j178/prek' ,
41+ datasourceTemplate : 'github-releases' ,
42+ } ,
2843 ] ,
2944 packageRules : [
3045 {
4156 ] ,
4257 automerge : true ,
4358 } ,
59+ {
60+ commitMessageTopic : 'Prek' ,
61+ matchManagers : [
62+ 'custom.regex' ,
63+ ] ,
64+ matchDepNames : [
65+ 'prek' ,
66+ ] ,
67+ extractVersion : '^(?<version>\\d+\\.\\d+\\.\\d+)' ,
68+ schedule : [
69+ '* * * * *' ,
70+ ] ,
71+ automerge : true ,
72+ } ,
4473 // Goals:
4574 // - Keep version reqs low, ignoring compatible normal/build dependencies
4675 // - Take advantage of latest dev-dependencies
Original file line number Diff line number Diff line change 5656 run : cargo hack test --each-feature --workspace
5757 msrv :
5858 name : " Check MSRV"
59- runs-on : ubuntu-latest
59+ strategy :
60+ matrix :
61+ os : ["ubuntu-latest"]
62+ runs-on : ${{ matrix.os }}
6063 steps :
6164 - name : Checkout repository
6265 uses : actions/checkout@v6
7073 run : cargo hack check --each-feature --locked --rust-version --ignore-private --workspace --all-targets --keep-going
7174 minimal-versions :
7275 name : Minimal versions
73- runs-on : ubuntu-latest
76+ strategy :
77+ matrix :
78+ os : ["ubuntu-latest"]
79+ runs-on : ${{ matrix.os }}
7480 steps :
7581 - name : Checkout repository
7682 uses : actions/checkout@v6
Original file line number Diff line number Diff line change 2323 runs-on : ubuntu-latest
2424 steps :
2525 - uses : actions/checkout@v6
26- - uses : actions/setup-python@v6
26+ - uses : j178/prek-action@v1
2727 with :
28- python-version : ' 3.x'
29- - uses : pre-commit/action@v3.0.1
28+ prek-version : ' 0.2.27'
Original file line number Diff line number Diff line change 4646 run : cargo hack test --each-feature --workspace
4747 latest :
4848 name : " Check latest dependencies"
49- runs-on : ubuntu-latest
49+ strategy :
50+ matrix :
51+ os : ["ubuntu-latest"]
52+ runs-on : ${{ matrix.os }}
53+ env :
54+ CARGO_RESOLVER_INCOMPATIBLE_RUST_VERSIONS : allow
5055 steps :
5156 - name : Checkout repository
5257 uses : actions/checkout@v6
Original file line number Diff line number Diff line change @@ -10,10 +10,10 @@ repos:
1010 - id : check-case-conflict
1111 - id : detect-private-key
1212 - repo : https://github.com/crate-ci/typos
13- rev : v1.32 .0
13+ rev : v1.41 .0
1414 hooks :
1515 - id : typos
1616 - repo : https://github.com/crate-ci/committed
17- rev : v1.1.7
17+ rev : v1.1.9
1818 hooks :
1919 - id : committed
Original file line number Diff line number Diff line change @@ -78,7 +78,6 @@ str_to_string = "warn"
7878string_add = " warn"
7979string_add_assign = " warn"
8080string_lit_as_bytes = " warn"
81- string_to_string = " warn"
8281todo = " warn"
8382trait_duplication_in_bounds = " warn"
8483uninlined_format_args = " warn"
You can’t perform that action at this time.
0 commit comments