tree: pep8 + linter fixes
For some reasons I forgot to fix those in the previous runs. Fix a linter and pep8 warning. Signed-off-by: David Rheinsberg <david.rheinsberg@gmail.com>
This commit is contained in:
parent
f3033dd579
commit
2d6d902428
3 changed files with 5 additions and 2 deletions
|
|
@ -344,7 +344,7 @@ class TestFormatV2(unittest.TestCase):
|
|||
|
||||
def test_device_sorting(self):
|
||||
fmt = self.index.get_format_info("osbuild.formats.v2").module
|
||||
assert(fmt)
|
||||
assert fmt
|
||||
|
||||
self_cycle = {
|
||||
"a": {"parent": "a"},
|
||||
|
|
|
|||
|
|
@ -573,7 +573,8 @@ LocalFileSigLevel = Optional
|
|||
cfgfile.write(f"[{rid}]\n")
|
||||
cfgfile.write(f"Server = {url}\n")
|
||||
|
||||
def _pacman(self, *args):
|
||||
@staticmethod
|
||||
def _pacman(*args):
|
||||
return subprocess.check_output(["pacman", *args], encoding="utf-8")
|
||||
|
||||
def resolve(self, packages, _):
|
||||
|
|
@ -1228,6 +1229,7 @@ class ManifestFile:
|
|||
name = desc.get("id", "image")
|
||||
self.vars[name] = Image.from_dict(desc)
|
||||
|
||||
# pylint: disable=no-self-use
|
||||
def get_pipeline_name(self, node):
|
||||
return node.get("name", "")
|
||||
|
||||
|
|
|
|||
|
|
@ -81,6 +81,7 @@ def symlink_diff(name, dir_fd1, dir_fd2, path, differences):
|
|||
props["symlink"] = [os.fsdecode(target1), os.fsdecode(target2)]
|
||||
|
||||
|
||||
# pylint: disable=too-many-branches
|
||||
def diff_aux(dir_fd1, dir_fd2, path, report):
|
||||
entries1 = set()
|
||||
with os.scandir(dir_fd1) as it:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue