Skip to content

Commit 1ad24f1

Browse files
authored
Merge pull request #749 from Faless/ci/4.x_black
2 parents 0b05044 + b47dfb6 commit 1ad24f1

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,12 @@ jobs:
179179
sudo apt-get install -qq dos2unix recode clang-format-11
180180
sudo update-alternatives --remove-all clang-format
181181
sudo update-alternatives --install /usr/bin/clang-format clang-format /usr/bin/clang-format-11 100
182+
python -m pip install black==22.3.0
182183
183184
- name: Style checks via clang-format
184185
run: |
185186
bash ./misc/scripts/clang_format.sh
187+
188+
- name: Python style checks via black (black_format.sh)
189+
run: |
190+
bash ./misc/scripts/black_format.sh

SConstruct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ else:
8181

8282
env = Environment(ENV=os.environ)
8383

84-
is64 = sys.maxsize > 2 ** 32
84+
is64 = sys.maxsize > 2**32
8585
if (
8686
env["TARGET_ARCH"] == "amd64"
8787
or env["TARGET_ARCH"] == "emt64"

binding_generator.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1132,9 +1132,13 @@ def generate_engine_class_source(class_api, used_classes, fully_used_classes, us
11321132
is_ref = True
11331133
else:
11341134
if method["is_static"]:
1135-
method_call += f"return internal::_call_native_mb_ret_obj<{return_type}>(___method_bind, nullptr"
1135+
method_call += (
1136+
f"return internal::_call_native_mb_ret_obj<{return_type}>(___method_bind, nullptr"
1137+
)
11361138
else:
1137-
method_call += f"return internal::_call_native_mb_ret_obj<{return_type}>(___method_bind, _owner"
1139+
method_call += (
1140+
f"return internal::_call_native_mb_ret_obj<{return_type}>(___method_bind, _owner"
1141+
)
11381142
else:
11391143
if method["is_static"]:
11401144
method_call += f"internal::_call_native_mb_no_ret(___method_bind, nullptr"

0 commit comments

Comments
 (0)