Skip to content
This repository was archived by the owner on Jun 13, 2025. It is now read-only.

Commit 2f0dbaf

Browse files
lint hello?
1 parent 4d4741b commit 2f0dbaf

File tree

7 files changed

+13
-11
lines changed

7 files changed

+13
-11
lines changed

api/internal/owner/serializers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def validate_value(self, value):
136136
extra=dict(owner_id=current_owner.pk, plan=value),
137137
)
138138
raise serializers.ValidationError(
139-
f"Invalid value for plan: {value}; " f"must be one of {plan_values}"
139+
f"Invalid value for plan: {value}; must be one of {plan_values}"
140140
)
141141
return value
142142

codecov_auth/commands/owner/interactors/set_yaml_on_owner.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ def convert_yaml_to_dict(self, yaml_input: str) -> Optional[dict]:
4242
except yaml.scanner.ScannerError as e:
4343
line = e.problem_mark.line
4444
column = e.problem_mark.column
45-
message = f"Syntax error at line {line+1}, column {column+1}: {e.problem}"
45+
message = (
46+
f"Syntax error at line {line + 1}, column {column + 1}: {e.problem}"
47+
)
4648
raise ValidationError(message)
4749
if not yaml_dict:
4850
return None

codecov_auth/commands/owner/interactors/tests/test_set_yaml_on_owner.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ async def test_user_is_part_of_org_and_yaml_is_good(self):
9696
"codecov": {
9797
"require_ci_to_pass": True,
9898
},
99-
"to_string": "\n" "codecov:\n" " require_ci_to_pass: yes\n",
99+
"to_string": "\ncodecov:\n require_ci_to_pass: yes\n",
100100
}
101101

102102
async def test_user_is_part_of_org_and_yaml_has_quotes(self):
@@ -109,7 +109,7 @@ async def test_user_is_part_of_org_and_yaml_has_quotes(self):
109109
"codecov": {
110110
"bot": "codecov",
111111
},
112-
"to_string": "\n" "codecov:\n" " bot: 'codecov'\n",
112+
"to_string": "\ncodecov:\n bot: 'codecov'\n",
113113
}
114114

115115
async def test_user_is_part_of_org_and_yaml_is_empty(self):

services/tests/test_comparison.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1298,7 +1298,7 @@ def _report_lines(self, hits):
12981298
]
12991299

13001300
def _src(self, n):
1301-
return [f"line{i+1}" for i in range(n)]
1301+
return [f"line{i + 1}" for i in range(n)]
13021302

13031303
def setUp(self):
13041304
self.file_comparison = FileComparison(

upload/tokenless/appveyor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def verify(self):
4949
self.upload_params.get("job")
5050
if "/" in self.upload_params.get("job")
5151
else (
52-
f'{self.upload_params.get("owner")}/{self.upload_params.get("repo")}/{self.upload_params.get("job")}'
52+
f"{self.upload_params.get('owner')}/{self.upload_params.get('repo')}/{self.upload_params.get('job')}"
5353
)
5454
)
5555

upload/tokenless/cirrus.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def get_build(self):
2626
}}
2727
}}",
2828
"variables": {{
29-
"buildId": {self.upload_params.get('build')}
29+
"buildId": {self.upload_params.get("build")}
3030
}}
3131
}}"""
3232

utils/test_utils.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ def app(self):
4343
migrate_to = None
4444

4545
def setUp(self):
46-
assert (
47-
self.migrate_from and self.migrate_to
48-
), "TestCase '{}' must define migrate_from and migrate_to properties".format(
49-
type(self).__name__
46+
assert self.migrate_from and self.migrate_to, (
47+
"TestCase '{}' must define migrate_from and migrate_to properties".format(
48+
type(self).__name__
49+
)
5050
)
5151
self.migrate_from = [(self.app, self.migrate_from)]
5252
self.migrate_to = [(self.app, self.migrate_to)]

0 commit comments

Comments
 (0)