Skip to content

Commit

Permalink
initialize mypy, update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
paouvrard committed Feb 21, 2020
1 parent b0d4dd5 commit 0002c6b
Show file tree
Hide file tree
Showing 7 changed files with 469 additions and 387 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -20,3 +20,4 @@ VENV/
*.out
*.diff
htmlcov/
.mypy_cache/
3 changes: 3 additions & 0 deletions Makefile
Expand Up @@ -114,6 +114,9 @@ clean_local_testnets:
docker-compose -f ./local_test_nodes/docker-compose.yml down
rm -fr ./local_test_nodes/*/data

mypy:
mypy -p aergo -p tests

ex: ## run all examples in the examples directory
pip show aergo-herapy
@echo "===============================" > make.ex.out
Expand Down
1 change: 1 addition & 0 deletions Pipfile
Expand Up @@ -26,6 +26,7 @@ twine = "*"
Sphinx = "*"
sphinx_rtd_theme = "*"
urllib3 = ">=1.24.3"
mypy = "*"

[requires]
python_version = "3.7"
767 changes: 410 additions & 357 deletions Pipfile.lock

Large diffs are not rendered by default.

25 changes: 25 additions & 0 deletions mypy.ini
@@ -0,0 +1,25 @@
[mypy]

[mypy-aergo.herapy.grpc.*]
ignore_errors = True

[mypy-grpc]
ignore_missing_imports = True
[mypy-grpc._channel]
ignore_missing_imports = True

[mypy-pytest]
ignore_missing_imports = True

[mypy-ecdsa]
ignore_missing_imports = True
[mypy-ecdsa.ecdsa]
ignore_missing_imports = True
[mypy-ecdsa.util]
ignore_missing_imports = True

# https://github.com/python/typeshed/issues/2521
# aergo/herapy/obj/change_conf_info.py:15: error: Argument 1 to "Value" of "EnumTypeWrapper" has incompatible type "str"; expected "bytes"
# error seems to be raised due to protobuf
[mypy-aergo.herapy.obj.change_conf_info]
ignore_errors = True
9 changes: 4 additions & 5 deletions requirements.txt
@@ -1,11 +1,10 @@
asn1crypto==1.3.0
base58==2.0.0
cffi==1.13.2
cffi==1.14.0
cryptography==2.8
ecdsa==0.15
googleapis-common-protos==1.6.0
grpcio==1.26.0
protobuf==3.11.2
googleapis-common-protos==1.51.0
grpcio==1.27.2
protobuf==3.11.3
pycparser==2.19
six==1.14.0
toml==0.10.0
50 changes: 25 additions & 25 deletions requirements_dev.txt
@@ -1,64 +1,64 @@
alabaster==0.7.12
asn1crypto==1.3.0
atomicwrites==1.3.0
appdirs==1.4.3
attrs==19.3.0
Babel==2.8.0
base58==2.0.0
bleach==3.1.0
babel==2.8.0
bleach==3.1.1
certifi==2019.11.28
cffi==1.13.2
chardet==3.0.4
codecov==2.0.15
coverage==5.0.3
cryptography==2.8
distlib==0.3.0
docutils==0.16
ecdsa==0.15
entrypoints==0.3
filelock==3.0.12
flake8==3.7.9
googleapis-common-protos==1.6.0
grpcio==1.26.0
grpcio-tools==1.26.0
idna==2.8
grpcio-tools==1.27.2
grpcio==1.27.2
idna==2.9
imagesize==1.2.0
importlib-metadata==1.5.0
Jinja2==2.11.1
MarkupSafe==1.1.1
importlib-metadata==1.5.0 ; python_version < '3.8'
jinja2==2.11.1
keyring==21.1.0
markupsafe==1.1.1
mccabe==0.6.1
more-itertools==8.2.0
mypy-extensions==0.4.3
mypy==0.761
packaging==20.1
pkginfo==1.5.0.1
pluggy==0.13.1
protobuf==3.11.2
protobuf==3.11.3
py==1.8.1
pycodestyle==2.5.0
pycparser==2.19
pyflakes==2.1.1
Pygments==2.5.2
pygments==2.5.2
pyparsing==2.4.6
pytest==5.3.5
pytest-cov==2.8.1
pytest-mock==2.0.0
pytest==5.3.5
pytz==2019.3
readme-renderer==24.0
requests==2.22.0
requests-toolbelt==0.9.1
requests==2.23.0
six==1.14.0
snowballstemmer==2.0.0
Sphinx==2.3.1
sphinx-rtd-theme==0.4.3
sphinx==2.4.2
sphinxcontrib-applehelp==1.0.1
sphinxcontrib-devhelp==1.0.1
sphinxcontrib-htmlhelp==1.0.2
sphinxcontrib-jsmath==1.0.1
sphinxcontrib-qthelp==1.0.2
sphinxcontrib-serializinghtml==1.1.3
toml==0.10.0
tox==3.14.3
tqdm==4.42.0
tox==3.14.5
tqdm==4.43.0
twine==3.1.1
typed-ast==1.4.1
typing-extensions==3.7.4.1
urllib3==1.25.8
virtualenv==16.7.9
virtualenv==20.0.4
wcwidth==0.1.8
webencodings==0.5.1
zipp==2.1.0
wheel==0.34.2
zipp==3.0.0

0 comments on commit 0002c6b

Please sign in to comment.