Commit Graph

91 Commits

Author SHA1 Message Date
47ae20d29c fix: run pytests parallely in CI and makefile 2025-06-09 18:58:51 +00:00
bdadec7519 ft. modernise py-libp2p (#618)
* fix pyproject.toml , add ruff

* rm lock

* make progress

* add poetry lock ignore

* fix type issues

* fix tcp type errors

* fix text example - type error - wrong args

* add setuptools to dev

* test ci

* fix docs build

* fix type issues for new_swarm & new_host

* fix types in gossipsub

* fix type issues in noise

* wip: factories

* revert factories

* fix more type issues

* more type fixes

* fix: add null checks for noise protocol initialization and key handling

* corrected argument-errors in peerId and Multiaddr in peer tests

* fix: Noice - remove redundant type casts in BaseNoiseMsgReadWriter

* fix: update test_notify.py to use SwarmFactory.create_batch_and_listen, fix type hints, and comment out ClosedStream assertions

* Fix type checks for pubsub module

Signed-off-by: sukhman <sukhmansinghsaluja@gmail.com>

* Fix type checks for pubsub module-tests

Signed-off-by: sukhman <sukhmansinghsaluja@gmail.com>

* noise: add checks for uninitialized protocol and key states in PatternXX

Signed-off-by: varun-r-mallya <varunrmallya@gmail.com>

* pubsub: add None checks for optional fields in FloodSub and Pubsub

Signed-off-by: varun-r-mallya <varunrmallya@gmail.com>

* Fix type hints and improve testing

Signed-off-by: varun-r-mallya <varunrmallya@gmail.com>

* remove redundant checks

Signed-off-by: varun-r-mallya <varunrmallya@gmail.com>

* fix build issues

* add optional to trio service

* fix types

* fix type errors

* Fix type errors

Signed-off-by: varun-r-mallya <varunrmallya@gmail.com>

* fixed more-type checks in crypto and peer_data files

* wip: factories

* replaced union with optional

* fix: type-error in interp-utils and peerinfo

* replace pyright with pyrefly

* add pyrefly.toml

* wip: fix multiselect issues

* try typecheck

* base check

* mcache test fixes , typecheck ci update

* fix ci

* will this work

* minor fix

* use poetry

* fix wokflow

* use cache,fix err

* fix pyrefly.toml

* fix pyrefly.toml

* fix cache in ci

* deploy commit

* add main baseline

* update to v5

* improve typecheck ci (#14)

* fix typo

* remove holepunching code (#16)

* fix gossipsub typeerrors (#17)

* fix: ensure initiator user includes remote peer id in handshake (#15)

* fix ci (#19)

* typefix: custom_types | core/peerinfo/test_peer_info | io/abc | pubsub/floodsub | protocol_muxer/multiselect (#18)

* fix: Typefixes in PeerInfo  (#21)

* fix minor type issue (#22)

* fix type errors in pubsub (#24)

* fix: Minor typefixes in tests (#23)

* Fix failing tests for type-fixed test/pubsub (#8)

* move pyrefly & ruff to pyproject.toml & rm .project-template (#28)

* move the async_context file to tests/core

* move crypto test to crypto folder

* fix: some typefixes (#25)

* fix type errors

* fix type issues

* fix: update gRPC API usage in autonat_pb2_grpc.py (#31)

* md: typecheck ci

* rm comments

* clean up : from review suggestions

* use | None over Optional as per new python standards

* drop supporto for py3.9

* newsfragments

---------

Signed-off-by: sukhman <sukhmansinghsaluja@gmail.com>
Signed-off-by: varun-r-mallya <varunrmallya@gmail.com>
Co-authored-by: acul71 <luca.pisani@birdo.net>
Co-authored-by: kaneki003 <sakshamchauhan707@gmail.com>
Co-authored-by: sukhman <sukhmansinghsaluja@gmail.com>
Co-authored-by: varun-r-mallya <varunrmallya@gmail.com>
Co-authored-by: varunrmallya <100590632+varun-r-mallya@users.noreply.github.com>
Co-authored-by: lla-dane <abhinavagarwalla6@gmail.com>
Co-authored-by: Collins <ArtemisfowlX@protonmail.com>
Co-authored-by: Abhinav Agarwalla <120122716+lla-dane@users.noreply.github.com>
Co-authored-by: guha-rahul <52607971+guha-rahul@users.noreply.github.com>
Co-authored-by: Sukhman Singh <63765293+sukhman-sukh@users.noreply.github.com>
Co-authored-by: acul71 <34693171+acul71@users.noreply.github.com>
Co-authored-by: pacrob <5199899+pacrob@users.noreply.github.com>
2025-06-09 11:39:59 -06:00
05d89cb20e added all and docs dependencies in tox.ini for testenv:docs 2025-05-09 17:31:15 -06:00
99238403dd added logger in test file and added dependency in tox.ini 2025-05-09 17:31:15 -06:00
f6279c23ac added : demos to test ci 2025-03-23 14:46:24 -06:00
20580b9a4e drop py38 from CI 2025-01-25 15:48:39 -07:00
460db3dce8 merge template, fill vars, lint 2025-01-25 14:43:45 -07:00
4be68af0db Put python3.8 support back in:
- We should create a breaking changes branch to be
  merged only when we are ready to start the next
  major version release cycle for all our
  maintained libraries.
2024-12-12 14:29:06 -07:00
1280617249 run mypy local 2024-11-22 10:41:50 -07:00
6a927ac1e7 drop py38, add py13, add 2024 to license 2024-11-22 10:41:50 -07:00
c5cc0ee969 run mypy locally, bump mypy to 1.10.0, fix new errors 2024-07-04 13:19:00 -06:00
d8d0f05a88 update default docs and release process, drop bumpversion for
bump-my-version
2024-05-21 14:01:08 -06:00
eea065fb57 reorg test structure to match tox and CI jobs, drop bumpversion for bump-my-version and move config to pyproject.toml, fix docs building 2024-04-20 09:18:26 -06:00
d74895903d blocklint for linting project code for non-inclusive language (#122) 2024-03-18 16:34:27 -06:00
121c1d0afc add interop tests, but not turned on 2024-03-02 11:50:40 -07:00
94483714a3 run lint and fix errors, except mypy 2024-02-19 16:05:58 -07:00
42605c0288 merge template updates and refill vars 2024-02-19 14:49:30 -07:00
bdd1a342d9 add docs build path for ci to check pdf and epub 2024-01-31 16:20:42 -07:00
2eff6f8be8 update windows wheel ci jobs to use pyenv, add py312 job 2024-01-31 11:13:12 -07:00
b853f5ccdf add py312 support 2024-01-31 11:13:12 -07:00
8ffe3b8900 Update tox.ini
Add `pre-commit install` here since it was removed from ci config
2024-01-12 15:03:07 -07:00
885bef7b5e condense tox lint envs as linting now a pre-commit call, not tox 2023-10-27 12:40:23 -06:00
86440ee879 add autoflake to lint and move config to pyproject.toml 2023-10-12 12:11:12 -06:00
82425694f6 drop py37 support (#104) 2023-10-04 15:36:57 -06:00
7099bbaaa4 Add pre commit (#103)
* add pre-commit

* run pre-commit

* skip lint on README.md as it breaks template filling
2023-10-04 13:32:07 -06:00
4245675648 ignore flake8 F401 errors in __init__.py files 2023-09-14 14:25:14 -06:00
23a192f62c change references to doc to all be docs 2023-05-03 14:20:55 -06:00
484b6b55cd Template updates post ssz and ethabi (#82)
* add updates found when merging template with py-ssz and eth-abi

* add wheel and wheel-windows to ci and reorg
2023-05-01 15:19:15 -06:00
68d37fa50f repin flake8 and misc updates (#79)
* repin flake8, bump tox to >=4.0.0 as that's where whitelist was deprecated, misc updates
2023-05-01 15:19:14 -06:00
ffd6ad8b9f Various template default updates (#74)
* bump versions in dependencies and ci builds

* move tox to [dev] per issue #34

* move RTD deps pointer into .readthedocs.yml

* unpin flake8 add flake8-bugbear to lint deps
2023-05-01 15:19:13 -06:00
642ae9627c Update isort CLI commands (#72) 2022-12-09 11:25:55 -07:00
7b0bc76f6f Add Python 3.11, add more black checks, remove upper pins (#69) 2022-11-09 11:11:28 -07:00
94eacb9c30 A couple extra tweaks for black support 2022-09-22 13:38:32 -07:00
8a4cb1d938 Upgrade isort to v5 for black support 2022-09-22 13:38:20 -07:00
99af2f4d53 Misc Updates (#65)
* Tweaks to release process

* Drop python 3.6
2022-09-19 14:35:39 -06:00
c6f13bfd94 Show full explanation for pydocstyle failures 2022-05-18 12:19:24 -07:00
d21d58250b Add python 3.10 support 2021-11-19 13:48:19 -07:00
fcb5577fa1 Add python 3.9 support 2021-11-19 13:43:36 -07:00
765b2e4414 Add python3.8 support 2021-11-19 13:43:20 -07:00
d74a5e2bd8 Latest mypy refuses package with file path 2020-09-02 15:54:34 -07:00
f4c545ed68 isort: add noise to 3rd party config 2020-02-15 12:18:44 +08:00
f1dbd52d67 Merge branch 'master' into feature/trio 2020-02-06 10:39:54 +08:00
4db043a26a Remove pexpect from tox 2020-01-07 16:23:00 +08:00
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
a08e749150 add lru to known_third_parties 2019-12-21 12:56:44 +01:00
3b9d7c7acd Apply PR feedback 2019-12-10 17:20:41 -08:00
4c0f511516 Add py36 tox env for testing 2019-12-02 16:33:32 -08:00
d589daf00d Fill in template variables 2019-11-26 13:33:57 -08:00
d1b5a56ccf Match linting rules after merging in template 2019-11-26 13:33:08 -08:00
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