You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ha...@apache.org on 2022/04/07 09:52:38 UTC

[iotdb] 01/01: test

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

haonan pushed a commit to branch test_black
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit a0034561479b4bdc1ed0f295b7c874f7d3f4169c
Author: HTHou <hh...@outlook.com>
AuthorDate: Thu Apr 7 17:52:18 2022 +0800

    test
---
 .github/workflows/client-python.yml | 3 +++
 client-py/SessionExample.py         | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/client-python.yml b/.github/workflows/client-python.yml
index 230f9a29c5..ef2f30633e 100644
--- a/.github/workflows/client-python.yml
+++ b/.github/workflows/client-python.yml
@@ -8,6 +8,7 @@ on:
       - master
       - 'rel/*'
       - "new_*"
+      - test_black
     paths-ignore:
       - 'docs/**'
   pull_request:
@@ -57,6 +58,8 @@ jobs:
           docker images
       - name: Install IoTDB python client requirements
         run: pip3 install -r client-py/requirements_dev.txt
+      - name: Check python code format
+        run: black --check client-py
       - name: Integration test
         shell: bash
         run: |
diff --git a/client-py/SessionExample.py b/client-py/SessionExample.py
index 75897a44fb..13cccffd0c 100644
--- a/client-py/SessionExample.py
+++ b/client-py/SessionExample.py
@@ -200,7 +200,7 @@ session.insert_tablet(np_tablet_)
 
 # insert one unsorted numpy tablet into the database.
 np_values_unsorted = [
-    np.array([False, False, False, True, True], np.dtype(">?")),
+    np.array([False, False, False, True, True], np.dtype('>?')),
     np.array([0, 10, 100, 1000, 10000], np.dtype(">i4")),
     np.array([1, 11, 111, 1111, 11111], np.dtype(">i8")),
     np.array([1.1, 1.25, 188.1, 0, 8.999], np.dtype(">f4")),