8000 Fix flake8 errors · yoyowallet/github3.py@7ea68fb · GitHub
[go: up one dir, main page]

Skip to content

Commit 7ea68fb

Browse files
committed
Fix flake8 errors
1 parent ea83612 commit 7ea68fb

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/github3/checks.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -290,9 +290,9 @@ class CheckRunAnnotation(models.GitHubCore):
290290
CUSTOM_HEADERS = {"Accept": "application/vnd.github.antiope-preview+json"}
291291

292292
def _repr(self):
293-
return "<{s.class_name} [{s.path}:{s.start_line}-{s.end_line}]>".format(
294-
s=self
295-
)
293+
return (
294+
"<{s.class_name} [{s.path}:{s.start_line}-{s.end_line}]>"
295+
).format(s=self)
296296

297297
def _update_attributes(self, note):
298298
self.path = note["path"]

tests/integration/test_checks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def test_auto_trigger_checks_prefs(self):
6969
json = repo.auto_trigger_checks(app_id, enabled=False)
7070
for pref in json["preferences"]["auto_trigger_checks"]:
7171
if pref["app_id"] == app_id:
72-
assert pref["setting"] == False
72+
assert not pref["setting"]
7373
break
7474
else:
7575
pytest.fail(
@@ -79,7 +79,7 @@ def test_auto_trigger_checks_prefs(self):
7979
json = repo.auto_trigger_checks(app_id, enabled=True)
8080
for pref in json["preferences"]["auto_trigger_checks"]:
8181
if pref["app_id"] == app_id:
82-
assert pref["setting"] == True
82+
assert pref["setting"]
8383
break
8484
else:
8585
pytest.fail(

0 commit comments

Comments
 (0)
0