Skip to content

Commit

Permalink
linter errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-vk committed Nov 30, 2022
1 parent 5b72284 commit eb46d2a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
3 changes: 0 additions & 3 deletions dockerfile_parse/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,9 +441,6 @@ def __eq__(self, other):
else:
return NotImplemented

def __ne__(self, other):
return not self == other

def __hash__(self):
return hash(self.to_str())

Expand Down
2 changes: 0 additions & 2 deletions tests/test_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,9 @@ def test_image_name_comparison(self, image_string, dictionary):
i2 = ImageName(registry=dictionary["registry"], namespace=dictionary["namespace"], repo=dictionary["repo"],
tag=dictionary["tag"])
assert i1 == i2
assert not i1 != i2

i2 = ImageName(registry='foo.com', namespace='spam', repo='bar', tag='2')
assert not i1 == i2
assert i1 != i2


@pytest.mark.parametrize(('repo', 'organization', 'enclosed_repo'), (
Expand Down

0 comments on commit eb46d2a

Please sign in to comment.