94483714a3
run lint and fix errors, except mypy
2024-02-19 16:05:58 -07:00
2287dc95be
Fix test for info_from_p2p_addr
...
It is because I removed some checks in the function. This checks should
be useless thanks to mypy
2019-12-24 18:08:33 +08:00
94c7a0bca4
Apply PR feedback and fix
2019-11-26 14:04:28 +08:00
bcd7890124
Move test utilities to tools ( #356 )
...
* move test factories to libp2p/tools
* remove unused inits
* move pubsub test utils to tools
* cleanup test_interop
* fix typing libp2p/tools/utils
* add typing to pubsub utils
* fix factories typing
* fix typing for floodsub_integration_test_settings
* fix rest of the typing
* fix isort
2019-11-21 11:47:54 +08:00
dfd9ebdc5e
Change PeerInfo to remove dep on PeerData
2019-09-02 14:30:27 +08:00
10e30beb42
Disable "friendly" IDs for tests that expect a full string
2019-08-24 22:57:22 +02:00
87d943aa39
Internalize the protobuf serialization to the concept of a Key
...
Given its use across various components of `libp2p` (not just peer IDs),
it makes the abstraction cleaner to pull the serialization into the
key class and expose the canonical serialization to bytes.
2019-08-20 19:01:36 +02:00
67744bcb0f
Add a basic interop test for Go and Python peer IDs
2019-08-14 09:00:40 -07:00
ad20d8cb00
Make a KeyPair dataclass for passing around key pairs
2019-08-14 09:00:40 -07:00
329bd4eb0f
Clean up peer ID tests
2019-08-14 09:00:40 -07:00
3debd2c808
Run black and isort w/ the new config
2019-08-13 14:36:42 -07:00
c536aa3e07
flake8
2019-08-08 16:09:02 +08:00
7a04ebb51f
run black
2019-08-05 11:21:20 +08:00
7477b29508
run black w/ extended line length
2019-08-04 12:37:41 +08:00
cb301fcc51
Opt-out of linting on the special cases we have, given new ignore rules
2019-08-04 12:37:27 +08:00
c8005c8113
Run isort in repo
2019-08-03 17:50:14 +08:00
bd8d45fbc1
Refactor ID to not use third-party type for cryptographic keys
...
Remove `ID.from_privkey` which would require specific knowledge per cryptosystem
2019-08-02 21:51:16 -07:00
2e94fcf56c
Remove pylint:disable
2019-08-02 23:26:06 +08:00
568454534f
Remove unused ID type conversions
2019-08-02 16:48:38 +08:00
924e965537
Change argument name of Network.listen and blakc format
2019-08-02 14:45:59 +08:00
b928bdb356
Convert from base58/pubkey/privkey to class method
2019-08-02 14:42:10 +08:00
80481252ca
Refactor ID to take in type bytes only
2019-08-02 14:42:10 +08:00
0ae9840928
Run black over repo
2019-07-31 15:00:12 -07:00
f2de986c74
Add type hints to peer folder
2019-07-30 16:24:51 +08:00
a2d1aadf25
Add test for checking p2p code
2019-07-20 22:43:32 +08:00
d3eb68fa50
Increase coverage
2019-07-20 22:43:32 +08:00
73125b99b0
Fix the error due to the breaking change
...
In multiaddr, `split` is moved to `Multiaddr`'s method.
2019-07-20 22:43:31 +08:00
a4529d827d
Modify peer_id str
2019-05-22 11:37:07 -04:00
4b40339b63
Update peerid tests for longer peerids
2019-05-22 11:37:07 -04:00
ebd5ddc21f
Update unit tests from peer package ( #103 )
...
* Update more test for peerid.py
Signed-off-by: Tran Ly Vu <tranly.vu@accellion.com >
* Update more tests for peerid.py
Signed-off-by: Tran Ly Vu <tranly.vu@accellion.com >
* Update more tests for peerid.py
Signed-off-by: Tran Ly Vu <tranly.vu@accellion.com >
* Update more unit tests
Signed-off-by: Tran Ly Vu <tranly.vu@accellion.com >
* Update more unit tests
Signed-off-by: Tran Ly Vu <tranly.vu@accellion.com >
* FIx travis failaure
Signed-off-by: Tran Ly Vu <tranly.vu@accellion.com >
* Fix travis failaure
Signed-off-by: Tran Ly Vu <tranly.vu@accellion.com >
* Update indent-string to tab
Signed-off-by: Tran Ly Vu <tranly.vu@accellion.com >
* Fix lines that too long
Signed-off-by: Tran Ly Vu <tranly.vu@accellion.com >
* Convert indent back to space
Signed-off-by: Tran Ly Vu <tranly.vu@accellion.com >
* Fix lines that too long
Signed-off-by: Tran Ly Vu <tranly.vu@accellion.com >
* Fix lines that too long
Signed-off-by: Tran Ly Vu <tranly.vu@accellion.com >
* Fix lines that too long
Signed-off-by: Tran Ly Vu <tranly.vu@accellion.com >
* Fix lines that too long
Signed-off-by: Tran Ly Vu <tranly.vu@accellion.com >
* Disable W0212 and E1120
Signed-off-by: Tran Ly Vu <tranly.vu@accellion.com >
* Fix lines that too long
Signed-off-by: Tran Ly Vu <tranly.vu@accellion.com >
* Fix failure from travis
Signed-off-by: Tran Ly Vu <tranly.vu@accellion.com >
* Fix failure from travis
Signed-off-by: Tran Ly Vu <tranly.vu@accellion.com >
* Remove W0212 and E1120
Signed-off-by: Tran Ly Vu <vutransingapore@gmail.com >
* Fix packages import
Signed-off-by: Tran Ly Vu <vutransingapore@gmail.com >
* Add pylint dsiable
Signed-off-by: Tran Ly Vu <vutransingapore@gmail.com >
2019-01-12 11:31:08 -05:00
ce6ddb27a9
Migrate to new project structure.
2019-01-09 21:38:56 +03:00
4c0cd8730f
updating to proper multiaddr and changing to p2p
2018-12-28 01:56:00 -05:00
611de28aca
Add basic support for multiaddr addresses and improvement around peer id ( #75 )
...
* Improved peer ID construction and usage
* peer id object is directly passed to the network
no need to cast from a string to an ID
* don't base64 encode the peer id when loading from public key
* use proper multiaddr address
- keep multiaddr object into peerstore instead of string
- update network code to use new multiaddr lib
- update tests and example
* don't instanciate peerstore object in constructor
This has side effect where the same peerstore
is used for different instance of Libp2p
* add connect method to basic_host
* use zaibon's fork of sbuss/py-multiaddr
* lint
2018-11-29 10:06:40 -05:00
8bcffb67cb
WIP CI Build Errors ( #76 )
...
* ignore TODO and kademlia
* remove unnecessary pass
* fixed swarm warnings
* fixed peerdata_interface warnings
* fixed peer warnings
* fixed rest of linting errors
* trying to fix last error
* fixed dup errors
2018-11-26 18:24:29 -05:00
db6b846251
Peer tests and minor peer features/bug fixes.
2018-11-02 16:16:46 -04:00