Skip to content

Commit a158d61

Browse files
committed
Reformat all files consistently and using spaces
1 parent f760421 commit a158d61

File tree

313 files changed

+229477
-204982
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

313 files changed

+229477
-204982
lines changed

.black

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
2+
[tool.black]
3+
line-length=80
4+
target-version=["py311"]
5+

.github/workflows/black.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: lint
2+
on: [push, pull_request]
3+
jobs:
4+
lint:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v3
8+
- uses: psf/black@stable
9+
with:
10+
options: "--check --config=.black"
11+
src: "./src"
12+

src/brand/bhyve/boot.py

+19-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,17 @@
1717

1818
import bundle
1919
import bootlib
20-
from bootlib import fatal, error, debug, info, warning, boolv, diskpath, \
21-
expandopts, collapseopts
20+
from bootlib import (
21+
fatal,
22+
error,
23+
debug,
24+
info,
25+
warning,
26+
boolv,
27+
diskpath,
28+
expandopts,
29+
collapseopts,
30+
)
2231
import getopt
2332
import logging
2433
import os
@@ -34,6 +43,8 @@
3443

3544
import uefi.vars as uefivars
3645

46+
# fmt: off
47+
3748
STATEDIR = '/var/run/bhyve'
3849
RSRVRCTL = '/usr/lib/rsrvrctl'
3950
FIRMWAREPATH = '/usr/share/bhyve/firmware'
@@ -116,6 +127,8 @@
116127
VNC_SLOT = 30
117128
LPC_SLOT_WIN = 31
118129

130+
# fmt: off
131+
119132
##############################################################################
120133

121134
sysboot = False
@@ -665,6 +678,8 @@ def apply_bootnext(v):
665678
from itertools import zip_longest
666679
import json
667680

681+
# fmt: off
682+
668683
data = {
669684
'zonename': z.name,
670685
'zonepath': z.zonepath,
@@ -688,6 +703,8 @@ def apply_bootnext(v):
688703
'config': {},
689704
}
690705

706+
# fmt: on
707+
691708
for line in p.stdout.splitlines():
692709
if line.startswith('config.dump'): continue
693710
if '=' not in line: continue

0 commit comments

Comments
 (0)