Skip to content

Commit

Permalink
Fix styling issues to satisfy flake8 and black
Browse files Browse the repository at this point in the history
Signed-off-by: Luiz Carvalho <[email protected]>
  • Loading branch information
lcarva committed Jul 20, 2022
1 parent d1fed8b commit ec281cb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion reviewrot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ def dict_constructor(loader, node):
# format the output to print a blank scalar rather than null
def represent_none(self, _):
"""TODO: docstring goes here."""
return self.represent_scalar("tag:yaml.org,2002:null", u"")
return self.represent_scalar("tag:yaml.org,2002:null", "")

yaml.add_representer(type(None), represent_none)

Expand Down
2 changes: 1 addition & 1 deletion reviewrot/pagurestack.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def _avatar(self, username, ssl_verify=True):
"Fallback to construct based on username"
)
query = urllib.parse.urlencode(avatar_query)
openid = u"http://%s.id.fedoraproject.org/" % username
openid = "http://%s.id.fedoraproject.org/" % username
idx = hashlib.sha256(openid.encode("utf-8")).hexdigest()
avatar_url = "https://seccdn.libravatar.org/avatar/%s?%s" % (idx, query)

Expand Down
6 changes: 3 additions & 3 deletions test/github_tests/mock_github.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ class MockValueOlder:
class MockGithubComments:
"""Mocks Github Comments object."""

totalCount = int(1)
totalCount = int(1) # noqa: N815
reversed = [MockValue]


class MockGithubCommentsOlder:
"""Mocks Github Comments object."""

totalCount = int(1)
totalCount = int(1) # noqa: N815
reversed = [MockValueOlder]


Expand All @@ -51,7 +51,7 @@ class MockGithubCommentsEmpty:

# Simulate the bug from the PyGithub package, where
# totalCount is non-zero when there are no comments.
totalCount = int(2)
totalCount = int(2) # noqa: N815
reversed = []


Expand Down

0 comments on commit ec281cb

Please sign in to comment.