Commit Graph

28 Commits

Author SHA1 Message Date
bafdd8512d Enforce pre-summary newline in docstrings 2019-10-24 20:10:45 +02:00
eef505f2d9 Add automatic docstring formatter and apply 2019-10-24 08:41:10 +02:00
b8b5ac5e06 Add test for notifee disconnected 2019-09-19 16:31:41 +08:00
6cb033fd1f Refactor multiselect out of Swarm to BasicHost 2019-09-19 13:59:50 +08:00
0bd213bbb7 Refactor mplex and start to add close detection 2019-09-19 13:56:05 +08:00
786a03544c Add some loggings to swarm and cosmetic updates 2019-09-14 21:47:49 +08:00
c61a06706a Refactor interop tests and factories
- Add `close` and `disconnect` in `Host`
- Add `close` and `close_peer` in `Network`
- Change `IListener.close` to async, to await for server's closing
- Add factories for security transports, and modify `HostFactory`
2019-08-29 21:38:06 +08:00
16a4fd33c1 PR feedbacks
- Move exceptions to exceptions.py
- Raise `UpgradeFailure` in upgrader
- Refine the try/catch for upgraders in swarm
2019-08-22 22:53:49 +08:00
3debd2c808 Run black and isort w/ the new config 2019-08-13 14:36:42 -07:00
28f6de37ee 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
2019-08-11 16:47:54 +08:00
c536aa3e07 flake8 2019-08-08 16:09:02 +08:00
5903012e0e add typing to protocol_muxer 2019-08-08 16:09:02 +08:00
9e0a806218 move stream and connection interfaces to abc 2019-08-05 11:17:38 +08:00
7477b29508 run black w/ extended line length 2019-08-04 12:37:41 +08:00
c8005c8113 Run isort in repo 2019-08-03 17:50:14 +08:00
3a4b592a5a Fix missing asterisk 2019-08-02 15:06:39 +08:00
924e965537 Change argument name of Network.listen and blakc format 2019-08-02 14:45:59 +08:00
0ae9840928 Run black over repo 2019-07-31 15:00:12 -07:00
5e215901c0 Apply PR feedback 2019-07-30 23:41:28 +08:00
c4105688d1 Fix after rebase 2019-07-30 17:31:08 +08:00
e53727d301 Apply PR feedback: fix type hints 2019-07-30 16:28:25 +08:00
2d4e23cfe2 Fix cyclic import and lint 2019-07-30 16:28:05 +08:00
a4a0d79f6d Improve import layout 2019-07-30 16:27:29 +08:00
d716e90e17 Fix on type hints 2019-07-30 16:25:33 +08:00
edd164c878 Add type hints to network folder 2019-07-30 16:25:17 +08:00
a5fa053815 Add return value to Notify 2019-03-15 11:22:20 -04:00
f7d1bb3a89 Add notify function to network interface 2019-03-15 11:22:20 -04:00
ce6ddb27a9 Migrate to new project structure. 2019-01-09 21:38:56 +03:00