Commit Graph

16 Commits

Author SHA1 Message Date
Abhinav Singh 315cd17fbd
Add `timeout=1` when joining acceptors (#1196)
* Add a context manager test

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* `IS_WINDOWS` must also be True for cygwin environments.  Addresses #1169

* Give an acceptor join timeout of 10 seconds instead of None

* Reduce timeout to just 1 sec

* Install necessary types (requests is translative dep)

* Remove conflicting types

* Give precommit the necessary type

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-06-15 23:48:20 +05:30
Abhinav Singh 4c22a7de48
Upgrade paramiko to avoid blowfish ciphers (#1149)
* Upgrade paramiko to avoid blowfish ciphers

* Pin cryptography for python 3.6
2022-05-18 10:11:44 +05:30
Abhinav Singh f4e98303d0
Upgrade `wemake-python-styleguide` (#1107)
* Pin `wemake-python-styleguide`

* Pin `wemake-python-styleguide`

* Ignore `S324` for now
2022-03-14 00:10:41 +05:30
Abhinav Singh 3fd608eb72
[Jupyter] Request creation notebook (#1065)
* Add plugin tests, responses notebook and enhancements to `build_http_packet`

* Add js code snip for ws example

* Fix tests

* ignore all ipynb from codespell

* ignore all ipynb from codespell

* Fix tests and doc spell
2022-01-26 19:50:12 +05:30
Abhinav Singh 600b3e7c21
[Jupyter] Add a response notebook (#1064)
* Add a response generation jupyter notebook

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Make codespell happy

* precommit codespell exclude

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-01-26 15:28:27 +05:30
Abhinav Singh 79cb5b749e
Add a skeleton app to demonstrate how to use `proxy.py` for standalone projects (#1029)
* Add a skeleton app structure

* Update `README.md` for skeleton app

* Add `skeleton-app` to pre commit

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update readme

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-01-21 14:05:32 +05:30
Abhinav Singh 54e74a911f
[isort] Lib modules (#1016)
* isort `proxy.py` main class

* isort init and main

* isort common

* pre-commit fix

* isort dashboard and testing

* isort plugins

* isort core

* Only sort top level http py files

* isort http exception and websocket

* Remove proxy auth plugin from proxy package exports and force discover `PLUGIN_PROXY_AUTH` flags

* isort parser and web server

* no setattr

* isort all

* Enable pre-commit isort hook

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-01-20 15:34:54 +05:30
Abhinav Singh 35e9c57af7
`isort` everything except lib (for now) (#952)
* isort the tests folder

* Carry over changes from #672

* Disable pre-commit

* Revert flake8 config change

* isort examples too
2022-01-10 13:28:22 +05:30
Abhinav Singh 82be14ef13
Remove menubar (#930)
Remove `menubar`
2022-01-01 12:36:27 +05:30
Abhinav Singh af31564a4d
Add benchmarks comparison for `proxy.py`, `tornado`, `aiohttp`, `flask` (#827)
* Add benchmarks for `proxy.py`, `tornado`, `aiohttp`, `flask`

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Lint happy

* Disable W0223 for tornado

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-11-29 20:20:23 +05:30
Sviatoslav Sydorenko fa89944891
Add initial Sphinx docs 2021-11-18 01:36:13 +01:00
Sviatoslav Sydorenko 8d3fe87155
Switch versioning to be SCM-based (#715)
Co-authored-by: Abhinav Singh <mailsforabhinav@gmail.com>
2021-11-14 02:46:07 +05:30
Sviatoslav Sydorenko a7cdcc81ce
Pre-install mypy deps in `pre-commit.ci` (#666)
Co-authored-by: Abhinav Singh <mailsforabhinav@gmail.com>
2021-11-05 01:20:26 +05:30
Sviatoslav Sydorenko 05a78567ac
Enable the `add-trailing-comma` pre-commit fixer (#661)
Co-authored-by: Abhinav Singh <mailsforabhinav@gmail.com>
2021-11-04 16:58:36 +05:30
Sviatoslav Sydorenko 9fa14d70ff
Enable yamllint for all previously ignored files (#658) 2021-11-04 12:26:46 +05:30
Sviatoslav Sydorenko 7ae8211fcb
Organize the linting setup around tox+pre-commit (#657)
* Add a no-op check job to GHA for branch protection

This patch adds an "empty" job that depends on all the important ones
making it possible to use just this `check` job in the branch
protection settings. This reduces the maintenance burden by preventing
the need to update these settings on any changes to the job
declarations.

* Add a config for YAMLLint

* Add a config for flake8

* Add an initial auto-generated PyLint config

* Align pylint line length settings in with flake8

* Colorize the pylint report output

* Correct spelling mistakes caught by `codespell`

* Disable all currently violated PyLint rules

* Start managing the linters setup with pre-commit

Co-authored-by: Abhinav Singh <mailsforabhinav@gmail.com>
2021-11-03 18:07:59 +05:30