Skip to content

Commit ca5902f

Browse files
committed
fix format
1 parent 86154bd commit ca5902f

File tree

2 files changed

+18
-9
lines changed

2 files changed

+18
-9
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ We welcome contributions to the project, visit our contributing
137137

138138
- Join our Slack:
139139
[vizzu-community.slack.com](https://join.slack.com/t/vizzu-community/shared_invite/zt-w2nqhq44-2CCWL4o7qn2Ns1EFSf9kEg)
140-
141140

142141
- Drop us a line at hello@vizzu.io
143142

tools/ci/std_check.py

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,29 @@
22

33
import sys
44
import subprocess
5+
import os
56

67

78
def main() -> None:
9+
env = os.environ.copy()
10+
11+
env["PYTHONWARNINGS"] = "ignore:pkg_resources is deprecated"
12+
813
with subprocess.Popen(
9-
sys.argv[1:], stdout=subprocess.PIPE, stderr=subprocess.PIPE
14+
sys.argv[1:], stdout=subprocess.PIPE, stderr=subprocess.PIPE, env=env
1015
) as process:
1116
out, err = process.communicate()
12-
if out or err or process.returncode:
13-
if out:
14-
print(out.decode())
15-
if err:
16-
print(err.decode())
17-
raise RuntimeError(f"failed to run {sys.argv[1]}")
17+
18+
out_str = out.decode() if out else ""
19+
err_str = err.decode() if err else ""
20+
21+
if out_str or err_str or process.returncode != 0:
22+
if out_str:
23+
print(out_str)
24+
if err_str:
25+
print(err_str)
26+
raise RuntimeError(f"failed to run {sys.argv[1]}")
1827

1928

20-
main()
29+
if __name__ == "__main__":
30+
main()

0 commit comments

Comments
 (0)