mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-12 16:10:57 +00:00
Fix the rest of the typing hints (#232)
* ignore kad * fix swarm, and minor * fix init and swarm * ignore pb * enable mypy * fix basic host * fix tcp * fix mplex * add typing for pb * skip format pyi * [mypy] no need to ignore pb now * add typing to chat
This commit is contained in:
13
tox.ini
13
tox.ini
@ -20,7 +20,9 @@ include_trailing_comma=True
|
||||
force_grid_wrap=0
|
||||
use_parentheses=True
|
||||
line_length=100
|
||||
skip_glob=*_pb2*.py
|
||||
skip_glob=
|
||||
*_pb2*.py
|
||||
*.pyi
|
||||
|
||||
[testenv]
|
||||
deps =
|
||||
@ -36,8 +38,7 @@ basepython =
|
||||
basepython = python3
|
||||
extras = dev
|
||||
commands =
|
||||
# NOTE: disabling `mypy` until we get typing sorted in this repo
|
||||
# mypy -p libp2p -p examples --config-file {toxinidir}/mypy.ini
|
||||
black --check libp2p tests examples setup.py
|
||||
isort --recursive --check-only libp2p tests examples setup.py
|
||||
flake8 libp2p tests examples setup.py
|
||||
mypy -p libp2p -p examples --config-file {toxinidir}/mypy.ini
|
||||
black --check libp2p tests examples setup.py
|
||||
isort --recursive --check-only libp2p tests examples setup.py
|
||||
flake8 libp2p tests examples setup.py
|
||||
|
||||
Reference in New Issue
Block a user