Skip to content

Commit ec281cb

Browse files
committed
Fix styling issues to satisfy flake8 and black
Signed-off-by: Luiz Carvalho <lucarval@redhat.com>
1 parent d1fed8b commit ec281cb

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

reviewrot/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ def dict_constructor(loader, node):
400400
# format the output to print a blank scalar rather than null
401401
def represent_none(self, _):
402402
"""TODO: docstring goes here."""
403-
return self.represent_scalar("tag:yaml.org,2002:null", u"")
403+
return self.represent_scalar("tag:yaml.org,2002:null", "")
404404

405405
yaml.add_representer(type(None), represent_none)
406406

reviewrot/pagurestack.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ def _avatar(self, username, ssl_verify=True):
216216
"Fallback to construct based on username"
217217
)
218218
query = urllib.parse.urlencode(avatar_query)
219-
openid = u"http://%s.id.fedoraproject.org/" % username
219+
openid = "http://%s.id.fedoraproject.org/" % username
220220
idx = hashlib.sha256(openid.encode("utf-8")).hexdigest()
221221
avatar_url = "https://seccdn.libravatar.org/avatar/%s?%s" % (idx, query)
222222

test/github_tests/mock_github.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ class MockValueOlder:
3535
class MockGithubComments:
3636
"""Mocks Github Comments object."""
3737

38-
totalCount = int(1)
38+
totalCount = int(1) # noqa: N815
3939
reversed = [MockValue]
4040

4141

4242
class MockGithubCommentsOlder:
4343
"""Mocks Github Comments object."""
4444

45-
totalCount = int(1)
45+
totalCount = int(1) # noqa: N815
4646
reversed = [MockValueOlder]
4747

4848

@@ -51,7 +51,7 @@ class MockGithubCommentsEmpty:
5151

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

5757

0 commit comments

Comments
 (0)