Commit Graph

481 Commits

Author SHA1 Message Date
Sviatoslav Sydorenko 62969b86ab
Make names in the GHA lib workflow short (#669)
Co-authored-by: Abhinav Singh <mailsforabhinav@gmail.com>
2021-11-05 01:55:32 +05:30
Sviatoslav Sydorenko 91a8fb14be
Fix the YTT201 flake8 violation (#667)
This approach makes sure that if there's ever Python 4, it wouldn't
fall back to the Python 2 behavior silently.

Co-authored-by: Abhinav Singh <mailsforabhinav@gmail.com>
2021-11-05 01:21:00 +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 7c5877b74a
Migrate the pytest invocation to `tox` (#662)
* Fix the `commands` setting in the tox config

* Wire up `pytest` invocations via tox
2021-11-04 17:47:23 +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
pyup.io bot d8bd69436f
Update twine from 3.4.2 to 3.5.0 (#665)
Co-authored-by: Abhinav Singh <mailsforabhinav@gmail.com>
2021-11-04 12:30:18 +05:30
Sviatoslav Sydorenko eeb11e2b7c
Add autocancellation of the stale PR GHA jobs (#663)
Co-authored-by: Abhinav Singh <mailsforabhinav@gmail.com>
2021-11-04 12:29:06 +05:30
Sviatoslav Sydorenko 9fa14d70ff
Enable yamllint for all previously ignored files (#658) 2021-11-04 12:26:46 +05:30
Abhinav Singh cf6f7e442e
Merge branch 'master' into develop 2021-11-03 18:31: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
Sviatoslav Sydorenko 05f8a86697
Add a config for pylint (#655)
* Add an initial auto-generated PyLint config

* Align pylint line length settings in with flake8

* Colorize the pylint report output

* Disable all currently violated PyLint rules

Co-authored-by: Abhinav Singh <mailsforabhinav@gmail.com>
2021-11-03 17:33:46 +05:30
Sviatoslav Sydorenko 1bd97678c8
Correct spelling mistakes caught by `codespell` (#656)
Co-authored-by: Abhinav Singh <mailsforabhinav@gmail.com>
2021-11-03 17:33:05 +05:30
Sviatoslav Sydorenko 0e5ecec057
Add a config for flake8 (#654)
Co-authored-by: Abhinav Singh <mailsforabhinav@gmail.com>
2021-11-03 17:31:59 +05:30
Sviatoslav Sydorenko 6aa53e2440
Add a config for YAMLLint (#653)
Co-authored-by: Abhinav Singh <mailsforabhinav@gmail.com>
2021-11-03 17:30:21 +05:30
Sviatoslav Sydorenko 426dfd55b9
Add a no-op check job to GHA for branch protection (#652)
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.
2021-11-03 17:29:40 +05:30
Sviatoslav Sydorenko fae694fe86
Revert "Upgrade `master` to `develop` in `setup.py`" (#650)
This reverts commit 06f6f56219.
2021-11-02 09:52:23 +05:30
Sviatoslav Sydorenko 7606c1d495
Add tox envs for building dists via PEP 517 (#647)
* Invoke self-install via PEP517 in the CI

* Add tox envs for building dists via PEP 517

* Add linting dists via tox to GHA

* Upgrade `master` to `develop` in `setup.py`

* Simplify `python_requires` in `setup.py`

* Convert dynamic `setup.py` into static `setup.cfg`
2021-11-02 03:00:00 +05:30
Abhinav Singh d4ee4fa15c
Async proxy pool, Event manager, Custom access log, Expose loop to plugins (#645)
* Async proxy pool

* Async proxy pool

* Late upstream initialization and exception guards

* Close upstream proxy connection on client connection close

* Refactor into EventManager

* Fix tests accounting in the event manager

* Ensure each process initializes logger

* pragma no cover

* Teardown connection when proxy pool upstream proxy closes

* Add ability to customize access log format and add additional context to it

* Maintain total size for response bytes in access logs

* Fix tests broken due to new plugin methods missing mock

* Update pubsub_eventing to use EventManager to avoid entire bootstrapping step
2021-11-01 01:19:19 +05:30
pyup.io bot 567d616274
Update coverage from 6.1 to 6.1.1 (#646) 2021-10-31 21:00:26 +05:30
imgbot[bot] fbbb917e99
[ImgBot] Optimize images (#644)
*Total -- 1,253.27kb -> 774.20kb (38.23%)

/Dashboard.png -- 1,072.21kb -> 617.66kb (42.39%)
/ProxyPy.png -- 56.83kb -> 38.15kb (32.86%)
/shortlink.gif -- 124.23kb -> 118.39kb (4.7%)

Signed-off-by: ImgBotApp <ImgBotHelp@gmail.com>

Co-authored-by: ImgBotApp <ImgBotHelp@gmail.com>
2021-10-31 09:38:57 +05:30
Abhinav Singh 627645fa7c
Fix path to dashboard.png (#643) 2021-10-31 09:05:35 +05:30
pyup.io bot 2f614e18c1
Update coverage from 6.0.2 to 6.1 (#640)
Co-authored-by: Abhinav Singh <mailsforabhinav@gmail.com>
2021-10-31 09:03:11 +05:30
Sviatoslav Sydorenko cb243895f1
Fix the `typing_extensions` runtime dependency version (#641)
* Only use `typing_extensions` below Python 3.8

* Rely on unconstrained `typing-extensions` version
2021-10-31 08:31:34 +05:30
pyup.io bot 03ed5d4d40
Update autopep8 from 1.5.7 to 1.6.0 (#632)
Co-authored-by: Abhinav Singh <mailsforabhinav@gmail.com>
2021-10-30 05:01:19 +05:30
Abhinav Singh 7448c44cc6
v3.4.0 (#638)
* Build docker from 3.10-alpine

* Bump version to 3.4.0

* Add instructions for how to run dashboard

* Order of menu

* Override dashboard png path until submitted

* Add some doc string for top-level Proxy class.  Also some TODOs and warnings regarding PID file overwrite

* Allow HttpProxyBasePlugin implementations to register custom descriptors for read/write events

* Remove hardcoded adblock regex into json config. Update upstream filter to block facebook, not google

* ProxyPoolPlugin and ReverseProxyPlugin must now be updated to use get/read/write descriptor APIs

* Add get/read/write descriptor API for HttpWebServerBasePlugin too

* Surface actual listening port via flags.port
2021-10-30 04:32:05 +05:30
Abhinav Singh 3d8bf056fc
Add support for 3.10 (#637)
* Add support for 3.10

* Upgrade to v2 actions
2021-10-29 23:15:23 +05:30
pyup.io bot daa30d452d
Update flake8 from 3.9.2 to 4.0.1 (#627)
Co-authored-by: Abhinav Singh <mailsforabhinav@gmail.com>
2021-10-29 16:58:39 +00:00
pyup.io bot 1e33d37058
Update rope from 0.20.1 to 0.21.0 (#631) 2021-10-20 08:13:37 +05:30
pyup.io bot 64cb6d771d
Update types-paramiko from 2.7.2 to 2.7.3 (#630) 2021-10-16 00:16:36 +05:30
pyup.io bot 574bb85faa
Update types-paramiko from 2.7.1 to 2.7.2 (#629) 2021-10-13 20:57:00 +05:30
pyup.io bot a1217e0797
Update coverage from 6.0.1 to 6.0.2 (#628) 2021-10-12 15:28:36 +05:30
pyup.io bot 4a5d888f36
Update paramiko from 2.7.2 to 2.8.0 (#624) 2021-10-10 11:15:27 +05:30
pyup.io bot 464897abe7
Update coverage from 6.0 to 6.0.1 (#623) 2021-10-07 09:46:59 +05:30
pyup.io bot bac1ebab22
Update types-paramiko from 2.7.0 to 2.7.1 (#620) 2021-10-05 11:13:13 +05:30
pyup.io bot a73d56907b
Update pytest-cov from 2.12.1 to 3.0.0 (#619) 2021-10-04 12:56:53 +05:30
pyup.io bot 90a4b0caa5
Update coverage from 5.5 to 6.0 (#618) 2021-10-04 01:52:42 +05:30
pyup.io bot 4b4acae35f
Update py-spy from 0.3.9 to 0.3.10 (#616) 2021-09-28 04:24:46 +05:30
Abhinav Singh df33b40a57
add paramiko types for mypy compliance (#613) 2021-09-22 23:37:00 +00:00
pyup.io bot bca5dd5ecc
Update tox from 3.24.3 to 3.24.4 (#607)
Co-authored-by: Abhinav Singh <mailsforabhinav@gmail.com>
2021-09-23 04:31:36 +05:30
pyup.io bot b5ad9f294b
Update pylint from 2.10.2 to 2.11.1 (#609)
Co-authored-by: Abhinav Singh <mailsforabhinav@gmail.com>
2021-09-23 04:31:15 +05:30
pyup.io bot 21d95d31f1
Update rope from 0.19.0 to 0.20.1 (#611) 2021-09-23 04:28:41 +05:30
pyup.io bot ece583f8d9
Update py-spy from 0.3.7 to 0.3.9 (#604) 2021-09-15 22:18:52 +05:30
dependabot[bot] b7b10de2a8
Bump path-parse from 1.0.6 to 1.0.7 in /dashboard (#586)
Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/jbgutierrez/path-parse/releases)
- [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7)

---
updated-dependencies:
- dependency-name: path-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Abhinav Singh <mailsforabhinav@gmail.com>
2021-09-03 18:55:51 +05:30
pyup.io bot ea85d44f1e
Update pylint from 2.9.5 to 2.10.2 (#591)
Co-authored-by: Abhinav Singh <mailsforabhinav@gmail.com>
2021-09-03 18:55:07 +05:30
pyup.io bot cc0fb0431f
Update tox from 3.24.0 to 3.24.3 (#592)
Co-authored-by: Abhinav Singh <mailsforabhinav@gmail.com>
2021-09-03 18:54:39 +05:30
pyup.io bot 288225381f
Update pytest from 6.2.4 to 6.2.5 (#598)
Co-authored-by: Abhinav Singh <mailsforabhinav@gmail.com>
2021-09-03 18:54:14 +05:30
pyup.io bot c8223db9b3
Update typing-extensions from 3.10.0.0 to 3.10.0.2 (#599) 2021-09-03 18:53:49 +05:30
pyup.io bot 8975c8e653
Update codecov from 2.1.11 to 2.1.12 (#582)
Co-authored-by: Abhinav Singh <mailsforabhinav@gmail.com>
2021-08-13 19:20:11 +05:30
pyup.io bot 8e3684e9e7
Update wheel from 0.36.2 to 0.37.0 (#585) 2021-08-13 19:19:46 +05:30
pyup.io bot 2041809f88
Update pylint from 2.9.3 to 2.9.5 (#577)
Co-authored-by: Abhinav Singh <mailsforabhinav@gmail.com>
2021-07-28 01:55:58 +05:30