Commit Graph

27 Commits

Author SHA1 Message Date
Dominik Muhs
3439a2c10e Add docformatter to lintroll and tox CI check 2019-10-26 12:45:26 +02:00
Dominik Muhs
61cd5e5659 Show diff on incorrectly sorted imports 2019-10-24 09:16:49 +02:00
mhchia
1bfc6b41e4
Add pexpect in isort third party 2019-09-24 12:18:31 +08:00
mhchia
d1c25b8b1e
Fix interop pubsub tests and PR feedback
- Use `from_id`, the changed field name in `PSMessage`.
- PR feedbacks
        - Add label `test` in `testenv` in tox.ini, to avoid wrong
dispatching an environment's command in the future.
        - Use `pytest` over `py.test`.
2019-09-24 11:30:52 +08:00
mhchia
19c17dd512
Remove the leftover test in testenv commands
To make `tox -e py37-interop` run.
2019-09-23 22:10:47 +08:00
mhchia
006002f687
Move interop tests out of tests
It is moved to the top level package `tests_interop`, to avoid circular
dependency, with the dependency moved to `tox`.
2019-09-23 22:00:40 +08:00
mhchia
b23bf5d704
Avoid isort sorting the import wrong 2019-09-03 23:00:31 +08:00
mhchia
b726d7c9da
Add tox and CI for interop 2019-08-28 23:39:33 +08:00
Alex Stokes
9bff7b8ebf
Remove code coverage check from CI 2019-08-13 21:25:22 -07:00
Alex Stokes
87375e0f23
Use the default line length for black ('no configuration')
and update `isort` to a stable configuration given the black line length
2019-08-13 14:36:05 -07:00
Chih Cheng Liang
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
Alex Stokes
a20c172480 update isort line length 2019-08-04 12:37:41 +08:00
Alex Stokes
905dfa9a8d Remove dependence on make in tox CI run 2019-08-04 12:37:41 +08:00
Alex Stokes
03b1304fe7 Remove rules we want to enforce or are unnecessary with our style 2019-08-04 12:37:27 +08:00
mhchia
727342a767
Move flake8 settings to tox.ini
And add flake8 in the Makefile.
2019-08-04 00:11:49 +08:00
mhchia
4fef80595c Skip pb files in linters
In isort, black, and flake8, respectively.

Add `format` in Makefile

Run top level packages only

With `setup.py`, to avoid running other unrelated directories.

Refactor
2019-08-03 23:34:56 +08:00
Alex Stokes
d78e6dbf04 Add black-compatible isort config 2019-08-03 17:50:14 +08:00
Alex Stokes
224b54ad93
Add basic flake8 config 2019-08-02 14:38:03 -07:00
Alex Stokes
da9d5cadec
Disables mypy in CI
Also moves linting to Makefile to take advantage of globbing.
2019-08-02 11:46:43 -07:00
Alex Stokes
51cc710dc0
remove pylint 2019-07-31 15:14:56 -07:00
Alex Stokes
a2133d8c7c
Add black check to CI 2019-07-31 14:59:47 -07:00
NIC619
5e215901c0
Apply PR feedback 2019-07-30 23:41:28 +08:00
NIC619
60d6703964
Temporary disable pylint on tests folder 2019-07-30 17:41:46 +08:00
mhchia
04b7df9fcf
Lint examples in tox 2019-07-24 18:00:57 +08:00
mhchia
529829b9f1
Move codecov to tox.ini 2019-07-24 16:41:19 +08:00
mhchia
1ae306ae8f
Fix mypy command
- Remove requirements_dev.txt
- Add detailed versions
2019-07-24 16:34:55 +08:00
mhchia
9497c3180f
Add tox
- Put extras_require to setup.py
- Add mypy
2019-07-24 15:54:30 +08:00