[glib: 1/2] python: Reformat some files to keep style-check-diff happy
- From: Sebastian Dröge <sdroege src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 1/2] python: Reformat some files to keep style-check-diff happy
- Date: Sun, 13 Dec 2020 09:17:40 +0000 (UTC)
commit 39f33412db95f9129df1cf61e02cb9099508b49b
Author: Philip Withnall <pwithnall endlessos org>
Date: Fri Dec 11 12:45:49 2020 +0000
python: Reformat some files to keep style-check-diff happy
The version of `black` on the CI server wanted these changes. Make them
to keep the `style-check-diff` CI job from constantly failing.
Signed-off-by: Philip Withnall <pwithnall endlessos org>
.gitlab-ci/check-todos.py | 6 +-----
gio/gdbus-2.0/codegen/codegen.py | 4 ++--
gobject/tests/mkenums.py | 2 +-
3 files changed, 4 insertions(+), 8 deletions(-)
---
diff --git a/.gitlab-ci/check-todos.py b/.gitlab-ci/check-todos.py
index 915ee2834..7eb30b671 100755
--- a/.gitlab-ci/check-todos.py
+++ b/.gitlab-ci/check-todos.py
@@ -22,11 +22,7 @@ import sys
# itself. The keyword ‘fixme’ (in upper case) is explicitly allowed because
# that’s conventionally used as a way of marking a workaround which needs to
# be merged for now, but is to be grepped for and reverted or reworked later.
-BANNED_KEYWORDS = [
- "TO" + "DO",
- "X" + "XX",
- "W" + "IP",
-]
+BANNED_KEYWORDS = ["TO" + "DO", "X" + "XX", "W" + "IP"]
def main():
diff --git a/gio/gdbus-2.0/codegen/codegen.py b/gio/gdbus-2.0/codegen/codegen.py
index 04bf44a71..0b40c9904 100644
--- a/gio/gdbus-2.0/codegen/codegen.py
+++ b/gio/gdbus-2.0/codegen/codegen.py
@@ -392,7 +392,7 @@ class HeaderCodeGenerator:
self.outfile.write("G_GNUC_DEPRECATED ")
self.outfile.write(
"void %s_set_%s (%s *object, %svalue);\n"
- % (i.name_lower, p.name_lower, i.camel_name, p.arg.ctype_in,)
+ % (i.name_lower, p.name_lower, i.camel_name, p.arg.ctype_in)
)
self.outfile.write("\n")
@@ -2443,7 +2443,7 @@ class CodeGenerator:
self.outfile.write(
"void\n"
"%s_set_%s (%s *object, %svalue)\n"
- "{\n" % (i.name_lower, p.name_lower, i.camel_name, p.arg.ctype_in,)
+ "{\n" % (i.name_lower, p.name_lower, i.camel_name, p.arg.ctype_in)
)
self.outfile.write(
' g_object_set (G_OBJECT (object), "%s", value, NULL);\n'
diff --git a/gobject/tests/mkenums.py b/gobject/tests/mkenums.py
index ae0c683e0..abde43deb 100644
--- a/gobject/tests/mkenums.py
+++ b/gobject/tests/mkenums.py
@@ -225,7 +225,7 @@ file-tail
# Known substitutions for generated filenames.
result.subs.update(
- {"filename": h_file.name, "basename": os.path.basename(h_file.name),}
+ {"filename": h_file.name, "basename": os.path.basename(h_file.name)}
)
return result
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]