Skip to content

Commit 8196011

Browse files
author
Two Dev
committed
chore: CI
1 parent 16dad0c commit 8196011

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

.github/workflows/ci.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,11 @@ jobs:
2626
python -m pip install --upgrade pip
2727
pip install -r requirements-dev.txt
2828
29-
- name: Run pre-commit
30-
uses: pre-commit/[email protected]
29+
- name: Lint
30+
run: |
31+
make lint
3132
32-
- name: Run tests
33+
- name: Tests
3334
run: |
3435
python -m pytest tests
3536

requirements-dev.txt

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ black==24.3.0
1515
coverage[toml]==7.6.1
1616
pre-commit==3.7.0
1717
isort==5.13.2
18+
flake8==7.1.1
1819
mypy==1.11.2
1920
pytest==8.3.3
2021
pytest-asyncio==0.24.0

tests/test_hooks.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def test_request_hook(httpserver: HTTPServer):
2525

2626
def test_request_hook_no_return(httpserver: HTTPServer):
2727
httpserver.expect_request("/hooks").respond_with_data(b"OK")
28-
_ = tls_requests.get(httpserver.url_for("/hooks"), hooks={"request": [log_request_no_return]})
28+
response = tls_requests.get(httpserver.url_for("/hooks"), hooks={"request": [log_request_no_return]})
2929
assert response.status_code == 200
3030
assert response.request.headers.get("X-Hook") == "123456"
3131

0 commit comments

Comments
 (0)