Skip to content

Commit

Permalink
[explorer/puller] task: init project
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyLaw committed Jun 30, 2023
1 parent 7df597e commit 36520f6
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 0 deletions.
4 changes: 4 additions & 0 deletions explorer/puller/dev_requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
cffi==1.15.1
pytest==7.2.2
pytest-aiohttp==1.0.4
coverage>=6.3
4 changes: 4 additions & 0 deletions explorer/puller/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
aiohttp==3.8.4
psycopg2-binary==2.9.6
symbol-sdk-python==3.0.7
zenlog==1.1
1 change: 1 addition & 0 deletions explorer/puller/scripts/ci/lint.sh
7 changes: 7 additions & 0 deletions explorer/puller/scripts/ci/setup_lint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

set -ex

python3 -m pip install -r "$(git rev-parse --show-toplevel)/linters/python/lint_requirements.txt"
python3 -m pip install -r requirements.txt
python3 -m pip install -r dev_requirements.txt
6 changes: 6 additions & 0 deletions explorer/puller/scripts/ci/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

set -ex

TEST_RUNNER=$([ "$1" = "code-coverage" ] && echo "coverage run --append" || echo "python3")
${TEST_RUNNER} -m pytest --asyncio-mode=auto -v

0 comments on commit 36520f6

Please sign in to comment.