Skip to content

Commit 7d6b9bc

Browse files
committed
style: Reformat all files to satisfy pre-commit rules
1 parent 6b4f7a3 commit 7d6b9bc

File tree

9 files changed

+47
-42
lines changed

9 files changed

+47
-42
lines changed

.github/dependabot.yml

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
version: 2
22
updates:
3-
4-
- package-ecosystem: github-actions
5-
directory: "/"
6-
schedule:
7-
interval: daily
8-
time: '00:00'
9-
timezone: UTC
10-
commit-message:
11-
prefix: "chore"
12-
include: "scope"
13-
groups:
14-
gh-actions:
15-
patterns:
16-
# Bundle all GH Actions updates in a single PR
17-
- "*"
3+
- package-ecosystem: github-actions
4+
directory: '/'
5+
schedule:
6+
interval: daily
7+
time: '00:00'
8+
timezone: UTC
9+
commit-message:
10+
prefix: 'chore'
11+
include: 'scope'
12+
groups:
13+
gh-actions:
14+
patterns:
15+
# Bundle all GH Actions updates in a single PR
16+
- '*'

.github/install-nix/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ inputs:
2222
required: false
2323

2424
runs:
25-
using: "composite"
25+
using: 'composite'
2626
steps:
2727
- name: Install Nix
2828
uses: cachix/install-nix-action@v27

.github/print-matrix/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ outputs:
3838
value: ${{ steps.print-matrix.outputs.comment }}
3939

4040
runs:
41-
using: "composite"
41+
using: 'composite'
4242
steps:
4343
- name: Install Nix
4444
uses: metacraft-labs/nixos-modules/.github/install-nix@main

.github/workflows/reusable-update-flake-lock.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "Update Nix Flake lockfile"
1+
name: 'Update Nix Flake lockfile'
22

33
on:
44
# Allow this workflow to be reused by other workflows:

.github/workflows/reusable-update-flake-packages.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "Update Flake Packages ❄️"
1+
name: 'Update Flake Packages ❄️'
22

33
on:
44
# Allow this workflow to be reused by other workflows:
@@ -29,7 +29,7 @@ on:
2929

3030
# Run everyday at 00:00:
3131
schedule:
32-
- cron: "0 0 * * *" # https://crontab.guru/#0_0_*_*_*
32+
- cron: '0 0 * * *' # https://crontab.guru/#0_0_*_*_*
3333

3434
jobs:
3535
updateFlakePackages:
@@ -57,4 +57,4 @@ jobs:
5757
uses: metacraft-labs/nix-update-action@main
5858
with:
5959
token: ${{ steps.generate-token.outputs.token }}
60-
blacklist: "ci-matrix,folder-size-metrics,mcl,grafana-agent,validator-ejector"
60+
blacklist: 'ci-matrix,folder-size-metrics,mcl,grafana-agent,validator-ejector'

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ Evaluates each package, and compares it to it's last cached version, creating a
2323
This command is not meant to be run manually, but rather to be ran by the CI.
2424
2525
ENV Variables:
26+
2627
- IS_INITIAL: `true` or `false`
2728
- CACHIX_CACHE: Which cachix cache to search
2829
- CACHIX_AUTH_TOKEN: The auth token for the cache
@@ -36,6 +37,7 @@ Usage: Use `mcl ci` instead
3637
Evaluates each package, and compares it to it's last cached version, creating a table listing which packages are cached, which aren't, and which failed.
3738

3839
ENV Variables:
40+
3941
- IS_INITIAL: `true` or `false`
4042
- CACHIX_CACHE: Which cachix cache to search
4143
- CACHIX_AUTH_TOKEN: The auth token for the cache
@@ -53,6 +55,7 @@ Usage: `mcl deploy_spec`
5355
### get_fstab
5456

5557
ENV Variables:
58+
5659
- IS_INITIAL: `true` or `false`
5760
- CACHIX_CACHE: Which cachix cache to search
5861
- CACHIX_AUTH_TOKEN: The auth token for the cache
@@ -74,9 +77,11 @@ Usage: `mcl host_info`
7477
Create a starting nix configuration for target machine.
7578

7679
ENV Variables:
80+
7781
- SSH_PATH: SSH path of target machine
7882

7983
The remaining ENV variables are optional, and if missing will be prompted at runtime.
84+
8085
- CREATE_USER: bool
8186
- USER_NAME: string
8287
- MACHINE_NAME: string
@@ -93,6 +98,7 @@ Usage: `mcl machine_create`
9398
Splits the list of packages under `checks` into n number of shards. Requires manual configuration using modules/shard-split. See this repo and `nix-blockchain-development`
9499

95100
ENV Variables:
101+
96102
- [Optional] GITHUB_OUTPUT: If set, exports results to GITHUB_INPUT env variable
97103

98104
Usage: `mcl shard_matrix`

packages/mcl/src/src/mcl/commands/ci_matrix.d

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -266,24 +266,24 @@ unittest
266266
{
267267
{
268268
auto testJSON = `{
269-
"attr": "home/bean-desktop",
270-
"attrPath": [ "home/bean-desktop" ],
271-
"cacheStatus": "notBuilt",
272-
"drvPath": "/nix/store/jp7qgm9mgikksypzljrbhmxa31xmmq1x-home-manager-generation.drv",
273-
"inputDrvs": {
274-
"/nix/store/0hkqmn0z40yx89kd5wgfjxzqckvjkiw3-home-manager-files.drv": [ "out" ],
275-
"/nix/store/0khqc4m8jrv5gkg2jwf5xz46bkmz2qxl-dconf-keys.json.drv": [ "out" ],
276-
"/nix/store/5rydfkrpd5vdpz4qxsypivxwy9y6z8gl-bash-5.2p26.drv": [ "out" ],
277-
"/nix/store/7vgw0fqilqwa9l26arqpym1l4iisgff1-stdenv-linux.drv": [ "out" ],
278-
"/nix/store/96ji6f4cijfc23jz98x45xm1dvzz5hq8-activation-script.drv": [ "out" ],
279-
"/nix/store/m60vlf9j0g8y82avg5x90nbg554wshva-home-manager-path.drv": [ "out" ]
280-
},
281-
"isCached": false,
282-
"name": "home-manager-generation",
283-
"outputs": {
284-
"out": "/nix/store/30qrziyj0vbg6n43bbh08ql0xbnsy76d-home-manager-generation"
285-
},
286-
"system": "x86_64-linux"
269+
"attr": "home/bean-desktop",
270+
"attrpath": [ "home/bean-desktop" ],
271+
"cachestatus": "notbuilt",
272+
"drvpath": "/nix/store/jp7qgm9mgikksypzljrbhmxa31xmmq1x-home-manager-generation.drv",
273+
"inputdrvs": {
274+
"/nix/store/0hkqmn0z40yx89kd5wgfjxzqckvjkiw3-home-manager-files.drv": [ "out" ],
275+
"/nix/store/0khqc4m8jrv5gkg2jwf5xz46bkmz2qxl-dconf-keys.json.drv": [ "out" ],
276+
"/nix/store/5rydfkrpd5vdpz4qxsypivxwy9y6z8gl-bash-5.2p26.drv": [ "out" ],
277+
"/nix/store/7vgw0fqilqwa9l26arqpym1l4iisgff1-stdenv-linux.drv": [ "out" ],
278+
"/nix/store/96ji6f4cijfc23jz98x45xm1dvzz5hq8-activation-script.drv": [ "out" ],
279+
"/nix/store/m60vlf9j0g8y82avg5x90nbg554wshva-home-manager-path.drv": [ "out" ]
280+
},
281+
"iscached": false,
282+
"name": "home-manager-generation",
283+
"outputs": {
284+
"out": "/nix/store/30qrziyj0vbg6n43bbh08ql0xbnsy76d-home-manager-generation"
285+
},
286+
"system": "x86_64-linux"
287287
}`.parseJSON;
288288

289289
auto testPackage = testJSON.packageFromNixEvalJobsJson(

packages/mcl/src/src/mcl/commands/host_info.d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -657,9 +657,9 @@ MachineConfigInfo getMachineConfigInfo()
657657
if (_module != "" && (
658658
// Mass-storage controller. Definitely important.
659659
_class.startsWith("0x01") ||
660-
//Firewire controller. A disk might be attached.
660+
//Firewire controller. A disk might be attached.
661661
_class.startsWith("0x0c00") ||
662-
//USB controller. Needed if we want to use the
662+
//USB controller. Needed if we want to use the
663663
// keyboard when things go wrong in the initrd.
664664
_class.startsWith("0x0c03")))
665665
{

packages/mcl/src/src/mcl/utils/test/eval.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@
3030
"category": []
3131
}
3232
]
33-
}
33+
}

0 commit comments

Comments
 (0)