You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by be...@apache.org on 2021/06/28 15:08:51 UTC

[couchdb] branch jenkins-fix-formatter-python-compatibility created (now e8d61d6)

This is an automated email from the ASF dual-hosted git repository.

bessbd pushed a change to branch jenkins-fix-formatter-python-compatibility
in repository https://gitbox.apache.org/repos/asf/couchdb.git.


      at e8d61d6  Fix CI

This branch includes the following new commits:

     new e8d61d6  Fix CI

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


[couchdb] 01/01: Fix CI

Posted by be...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

bessbd pushed a commit to branch jenkins-fix-formatter-python-compatibility
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit e8d61d6541add9afb23b70f54868c82ae8cca5c2
Author: Bessenyei Balázs Donát <be...@apache.org>
AuthorDate: Mon Jun 28 16:32:02 2021 +0200

    Fix CI
---
 dev/format_all.py   |  1 -
 dev/format_check.py |  1 -
 dev/format_lib.py   | 15 +++++++++------
 3 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/dev/format_all.py b/dev/format_all.py
index 60dff9c..067fc79 100644
--- a/dev/format_all.py
+++ b/dev/format_all.py
@@ -26,6 +26,5 @@ if __name__ == "__main__":
     for item in get_source_paths():
         subprocess.run(
             [os.environ["ERLFMT_PATH"], "-w", item["raw_path"]],
-            encoding="utf-8",
             stdout=subprocess.PIPE,
         )
diff --git a/dev/format_check.py b/dev/format_check.py
index b9b3c34..a46daff 100644
--- a/dev/format_check.py
+++ b/dev/format_check.py
@@ -43,7 +43,6 @@ if __name__ == "__main__":
                     "--print-width=167",
                     item["raw_path"],
                 ],
-                encoding="utf-8",
                 stdout=subprocess.PIPE,
                 stderr=subprocess.PIPE,
             )
diff --git a/dev/format_lib.py b/dev/format_lib.py
index fc95fa7..563ef8d 100644
--- a/dev/format_lib.py
+++ b/dev/format_lib.py
@@ -21,12 +21,15 @@ import subprocess
 
 
 def get_source_paths():
-    for item in subprocess.run(
-        ["git", "ls-files"],
-        encoding="utf-8",
-        stdout=subprocess.PIPE,
-        stderr=subprocess.PIPE,
-    ).stdout.split("\n"):
+    for item in (
+        subprocess.run(
+            ["git", "ls-files"],
+            stdout=subprocess.PIPE,
+            stderr=subprocess.PIPE,
+        )
+        .stdout.decode("utf-8")
+        .split("\n")
+    ):
         item_path = pathlib.Path(item)
         if item_path.suffix != ".erl":
             continue