Skip to content

Commit 29378e3

Browse files
committed
linting
1 parent 1bc7945 commit 29378e3

12 files changed

Lines changed: 12 additions & 14 deletions

File tree

maas/client/flesh/tables.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212

1313
class NodeTypeColumn(Column):
14-
1514
nice_names = {
1615
NodeType.MACHINE: "Machine",
1716
NodeType.DEVICE: "Device",
@@ -68,7 +67,6 @@ def render(self, target, memory):
6867

6968

7069
class NodeStatusNameColumn(Column):
71-
7270
colours = {
7371
# "New": "", # White.
7472
"Commissioning": "autoyellow",
@@ -100,7 +98,6 @@ def render(self, target, datum):
10098

10199

102100
class NodePowerColumn(Column):
103-
104101
colours = {
105102
PowerState.ON: "autogreen",
106103
# PowerState.OFF: "", # White.
@@ -387,7 +384,6 @@ def get_rows(self, target, files):
387384

388385

389386
class UserIsAdminColumn(Column):
390-
391387
yes, no = "Yes", "Np"
392388
yes_pretty = Color("{autogreen}Yes{/autogreen}")
393389

maas/client/flesh/tabular.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818

1919
class RenderTarget(enum.Enum):
20-
2120
# Human-readable tabluar output.
2221
plain = "plain"
2322
pretty = "pretty"

maas/client/utils/tests/test_async.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ def test_callable_attributes_are_wrapped(self):
7373
# `Asynchronous` groks class- and static-methods.
7474

7575
class Class(metaclass=maas_async.Asynchronous):
76-
7776
attribute = 123
7877

7978
def imethod(self):

maas/client/viscera/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,6 @@ def bind(cls, origin, handler, handlers, *, name=None):
158158

159159

160160
class ObjectBasics:
161-
162161
__slots__ = ()
163162

164163
def __dir__(self):

maas/client/viscera/boot_resources.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ def calc_size_and_sha265(content: io.IOBase, chunk_size: int):
3838

3939

4040
class BootResourceFileType(enum.Enum):
41-
4241
TGZ = "tgz"
4342
DDTGZ = "ddtgz"
4443

maas/client/viscera/maas.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,6 @@ async def set_ntp_server(cls, server: str):
252252
await cls.set_config("ntp_server", server)
253253

254254
class StorageLayout(DescriptiveEnum):
255-
256255
FLAT = "flat", "Flat layout"
257256
LVM = "lvm", "LVM layout"
258257
BCACHE = "bcache", "Bcache layout"

maas/client/viscera/spaces.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ class Spaces(ObjectSet, metaclass=SpacesType):
3737

3838

3939
class SpaceType(ObjectType):
40-
4140
_default_space_id = 0
4241

4342
async def get_default(cls):

maas/client/viscera/tests/test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1051,7 +1051,6 @@ def test__overrides_value_to_daturm(self):
10511051
self.assertThat(field.value_to_datum(None, 1), Equals(2))
10521052

10531053
def test__works_in_place(self):
1054-
10551054
# Deltas to apply to datums and values.
10561055
datum_to_value_delta = 2
10571056
value_to_datum_delta = 3

maas/client/viscera/tests/test_machines.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -866,7 +866,6 @@ def test__unlock(self):
866866

867867

868868
class TestMachine_APIVersion(TestCase):
869-
870869
scenarios = tuple(
871870
(name, dict(version=version, description=description))
872871
for name, version, description in api_descriptions

pyvenv.cfg

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
home = /usr/bin
2+
implementation = CPython
3+
version_info = 3.11.4.final.0
4+
virtualenv = 20.19.0+ds
5+
include-system-site-packages = false
6+
base-prefix = /usr
7+
base-exec-prefix = /usr
8+
base-executable = /usr/bin/python3

0 commit comments

Comments
 (0)