Commit Graph

50 Commits

Author SHA1 Message Date
mhchia
f1dbd52d67
Merge branch 'master' into feature/trio 2020-02-06 10:39:54 +08:00
mhchia
4db043a26a
Remove pexpect from tox 2020-01-07 16:23:00 +08:00
mhchia
fe4354d377
Fix tests_interop
- Remove pexpect
- Use new version of `p2pclient`, which makes use of anyio
- Clean up tests
2020-01-07 14:14:34 +08:00
Jonathan de Jong
a08e749150 add lru to known_third_parties 2019-12-21 12:56:44 +01:00
Alex Stokes
3b9d7c7acd
Apply PR feedback 2019-12-10 17:20:41 -08:00
Alex Stokes
4c0f511516
Add py36 tox env for testing 2019-12-02 16:33:32 -08:00
Jason Carver
d589daf00d Fill in template variables 2019-11-26 13:33:57 -08:00
Jason Carver
d1b5a56ccf Match linting rules after merging in template 2019-11-26 13:33:08 -08:00
Jason Carver
27da312285 Splice in project template
I tried to merge it so that future updates from the template will be
much easier.

The template is hosted at:
https://github.com/ethereum/ethereum-python-project-template
2019-11-26 13:30:41 -08:00
Christoph Burgdorf
02fe35663c Setup towncrier to generate release notes 2019-11-25 21:44:29 +01:00
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
Christoph Burgdorf
720b2cf3d2 Add mypy support 2019-04-26 18:22:24 +02:00
David Sanders
dd74824840
Add docstring checking with pydocstyle 2019-01-24 13:57:17 -07:00
Jason Carver
caf9050a19 Drop py3.5, add py3.7 2019-01-15 16:06:18 -08:00
David Sanders
0088da3781
Fix possibly incorrect isort config 2018-06-04 18:40:58 -06:00
David Sanders
00819dd924
Whitespace 2018-06-04 16:36:35 -06:00
David Sanders
32c8c981f2
Remove references to deprecated "py.test" 2018-06-04 16:36:02 -06:00
Jason Carver
b3461e9c93 tox.ini bugfix: whitelist make 2018-02-07 14:40:01 -08:00
Jason Carver
ecb3731cbe can't override python that way in tox 2018-02-07 11:26:47 -08:00
Jason Carver
37d978c5b3 squash warning about using make inside tox 2018-02-07 11:24:37 -08:00
Jason Carver
a1ba89ed41 every tox environment should have a basic python 2018-02-07 11:18:47 -08:00
Jason Carver
a9d9fec258 add doctest by default 2018-02-07 11:14:11 -08:00
Jason Carver
7bfa2ac5d4 add pypy3 as a supported environment, by default 2018-02-06 15:55:49 -08:00
Jason Carver
a7955a560e init 2018-01-24 16:00:28 -08:00