Skip to content

Commit

Permalink
[python] Add testing coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
davidiw committed May 18, 2023
1 parent a0da5e0 commit 4427375
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ecosystem/python/sdk/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
test:
poetry run python -m unittest discover -s aptos_sdk/ -p '*.py' -t ..

test-coverage:
poetry run python -m coverage run -m unittest discover -s aptos_sdk/ -p '*.py' -t ..
poetry run python -m coverage report

fmt:
find ./examples ./aptos_sdk *.py -type f -name "*.py" | xargs poetry run autoflake -i -r --remove-all-unused-imports --remove-unused-variables --ignore-init-module-imports
poetry run isort aptos_sdk examples setup.py
Expand Down
69 changes: 68 additions & 1 deletion ecosystem/python/sdk/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions ecosystem/python/sdk/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ python = ">=3.7,<4.0"
[tool.poetry.dev-dependencies]
autoflake = "1.4.0"
black = "^22.6.0"
coverage = "^7.2.4"
flake8 = ">=3.8.3,<6.0.0"
isort = "^5.10.1"
mypy = "^0.982"
Expand Down

0 comments on commit 4427375

Please sign in to comment.