Skip to content
Snippets Groups Projects
Commit 7adaf60d authored by Wojciech Barcik's avatar Wojciech Barcik Committed by Marcin
Browse files

Change shebang to "#!/usr/bin/env python3" in python shell scripts. Fix #103

parent 29508cf8
No related branches found
No related tags found
2 merge requests!456Release candidate v1 24,!372issue #99: From follows only 'follow blog' events generate notifications
Showing with 15 additions and 16 deletions
...@@ -3,7 +3,6 @@ stages: ...@@ -3,7 +3,6 @@ stages:
- data-supply - data-supply
- e2e-test - e2e-test
variables: variables:
PGPASSWORD: $HIVEMIND_POSTGRES_PASSWORD PGPASSWORD: $HIVEMIND_POSTGRES_PASSWORD
......
#!/usr/bin/env python #!/usr/bin/env python3
"""CLI service router""" """CLI service router"""
......
#!/usr/local/bin/python3 #!/usr/bin/env python3
"""Hive profiling tools""" """Hive profiling tools"""
import cProfile import cProfile
......
#!/usr/bin/python3 #!/usr/bin/env python3
from json import dumps from json import dumps
......
#!/usr/bin/python3 #!/usr/bin/env python3
""" Parse json file generated by pytest benchmarks and create htm report file """ Parse json file generated by pytest benchmarks and create htm report file
for files exceeding expected threshold print information to the console for files exceeding expected threshold print information to the console
""" """
......
#!/usr/bin/python3 #!/usr/bin/env python3
import os import os
import subprocess import subprocess
from json import load, dump from json import load, dump
...@@ -60,7 +60,7 @@ if __name__ == "__main__": ...@@ -60,7 +60,7 @@ if __name__ == "__main__":
hivemind_url = "http://{}:{}".format(args.hivemind_address, args.hivemind_port) hivemind_url = "http://{}:{}".format(args.hivemind_address, args.hivemind_port)
test_directories = get_test_directories(args.tests_root_dir) test_directories = get_test_directories(args.tests_root_dir)
benchmarks_files = [] benchmarks_files = []
for test_directory in test_directories: for test_directory in test_directories:
benchmark_file_name = "benchmark_" + test_directory.split("/")[-1] + ".py" benchmark_file_name = "benchmark_" + test_directory.split("/")[-1] + ".py"
......
#!/usr/bin/python3 #!/usr/bin/env python3
""" """
This script will scan blocks from range `from_block` to `to_block` if it finds operation defined in `operations` it will This script will scan blocks from range `from_block` to `to_block` if it finds operation defined in `operations` it will
save such block to a `output_file`. Blocks not containing any operations from list `operations` will be saved empty. save such block to a `output_file`. Blocks not containing any operations from list `operations` will be saved empty.
......
#!/usr/bin/python3 #!/usr/bin/env python3
import os import os
from xml.dom import minidom from xml.dom import minidom
......
#!/usr/bin/python3 #!/usr/bin/env python3
from test_base import run_test from test_base import run_test
......
#!/usr/bin/python3 #!/usr/bin/env python3
from test_base import run_test from test_base import run_test
if __name__ == '__main__': if __name__ == '__main__':
......
#!/usr/bin/python3 #!/usr/bin/env python3
from test_base import run_test from test_base import run_test
if __name__ == '__main__': if __name__ == '__main__':
......
#!/usr/bin/python3 #!/usr/bin/env python3
from test_base import run_test from test_base import run_test
if __name__ == '__main__': if __name__ == '__main__':
......
#!/usr/bin/python3 #!/usr/bin/env python3
from test_base import run_test from test_base import run_test
if __name__ == '__main__': if __name__ == '__main__':
...@@ -6,7 +6,7 @@ if __name__ == '__main__': ...@@ -6,7 +6,7 @@ if __name__ == '__main__':
test_hive_node_url = 'http://127.0.0.1:8080' test_hive_node_url = 'http://127.0.0.1:8080'
payload = { payload = {
"jsonrpc" : "2.0", "jsonrpc" : "2.0",
"method" : "database_api.list_comments", "method" : "database_api.list_comments",
"params" : { "params" : {
"start" : ['steemit', 'firstpost', '', ''], "start" : ['steemit', 'firstpost', '', ''],
......
#!/usr/bin/python3 #!/usr/bin/env python3
from test_base import run_test from test_base import run_test
if __name__ == '__main__': if __name__ == '__main__':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment