Skip to content

Commit eab2bca

Browse files
authored
chore(deps): remove unused development dependencies (#3164)
1 parent 3b7c24c commit eab2bca

4 files changed

Lines changed: 6 additions & 19 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ repos:
2222
rev: v1.17.0
2323
hooks:
2424
- id: mypy
25-
additional_dependencies: [types-pyOpenSSL==24.1.0.20240722, types-requests==2.32.4.20250611]
25+
additional_dependencies: [types-pyOpenSSL==24.1.0.20240722]
2626
- repo: https://github.com/pycqa/flake8
2727
rev: 7.3.0
2828
hooks:

CONTRIBUTING.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,6 @@ pre-commit run --all-files
5252

5353
For more details look at the [CI configuration](./.github/workflows/ci.yml).
5454

55-
Collect coverage
56-
57-
```sh
58-
pytest --browser chromium --cov-report html --cov=playwright
59-
open htmlcov/index.html
60-
```
61-
6255
### Regenerating APIs
6356

6457
`update_api.sh` generates `api.json` from a nearby `microsoft/playwright`

local-requirements.txt

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
asyncio-atexit==1.0.1
22
autobahn==23.1.2
3-
black==26.5.1
43
build==1.5.0
5-
flake8==7.3.0
64
mypy==2.3.0
75
objgraph==3.6.2
86
Pillow==12.3.0
@@ -11,13 +9,8 @@ pre-commit==3.5.0
119
pyOpenSSL==26.0.0
1210
pytest==9.0.3
1311
pytest-asyncio==1.4.0
14-
pytest-cov==7.1.0
15-
pytest-repeat==0.9.4
1612
pytest-rerunfailures==16.4
1713
pytest-timeout==2.4.0
18-
pytest-xdist==3.8.0
19-
requests==2.34.2
2014
service_identity==24.2.0
2115
twisted==25.5.0
2216
types-pyOpenSSL==24.1.0.20240722
23-
types-requests==2.33.0.20260712

tests/async/test_browsertype_connect_cdp.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@
1313
# limitations under the License.
1414

1515
import asyncio
16+
import json
17+
import urllib.request
1618
from typing import Dict
1719

1820
import pytest
19-
import requests
2021

2122
from playwright.async_api import BrowserType, Error
2223
from tests.server import Server, WebSocketProtocol, find_free_port
@@ -64,9 +65,9 @@ async def test_connect_to_an_existing_cdp_session_twice(
6465

6566

6667
def _ws_endpoint_from_url(url: str) -> str:
67-
response = requests.get(url)
68-
assert response.ok
69-
response_body = response.json()
68+
with urllib.request.urlopen(url) as response:
69+
assert response.status == 200
70+
response_body: Dict[str, str] = json.load(response)
7071
return response_body["webSocketDebuggerUrl"]
7172

7273

0 commit comments

Comments
 (0)