Skip to content

Commit 9b95c1d

Browse files
authored
spring cleanup (#216)
1 parent db9ab74 commit 9b95c1d

45 files changed

Lines changed: 35 additions & 77 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/build.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ jobs:
99
runs-on: ubuntu-latest
1010
timeout-minutes: 5
1111
steps:
12-
- uses: actions/checkout@v4
12+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1313
- name: Set up Python ${{ matrix.python-version }}
14-
uses: actions/setup-python@v5
14+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
1515
with:
16-
python-version: "3.10"
16+
python-version: "3.14"
1717
- name: Lint code
1818
run: |
1919
make setup
@@ -25,9 +25,9 @@ jobs:
2525
runs-on: ubuntu-latest
2626
timeout-minutes: 5
2727
steps:
28-
- uses: actions/checkout@v4
28+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2929
- name: Set up Python 3.10
30-
uses: actions/setup-python@v5
30+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
3131
with:
3232
python-version: "3.10"
3333
- name: Run all tests + code coverage
@@ -52,9 +52,9 @@ jobs:
5252
os: [macos-latest, windows-latest, ubuntu-latest]
5353
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
5454
steps:
55-
- uses: actions/checkout@v4
55+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
5656
- name: Set up Python ${{ matrix.python-version }}
57-
uses: actions/setup-python@v5
57+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
5858
with:
5959
python-version: ${{ matrix.python-version }}
6060
- name: Run tests
@@ -72,9 +72,9 @@ jobs:
7272
id-token: write # IMPORTANT: mandatory for trusted publishing
7373
timeout-minutes: 10
7474
steps:
75-
- uses: actions/checkout@v4
75+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
7676
- name: Set up Python ${{ matrix.python-version }}
77-
uses: actions/setup-python@v5
77+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
7878
with:
7979
python-version: 3.11
8080
- name: Install pypa/build
@@ -89,7 +89,7 @@ jobs:
8989
github.event_name == 'push' &&
9090
startsWith(github.ref, 'refs/tags') &&
9191
github.actor == github.repository_owner
92-
uses: actions/upload-artifact@v4
92+
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
9393
with:
9494
name: python-package-distributions
9595
path: dist/
@@ -98,4 +98,4 @@ jobs:
9898
github.event_name == 'push' &&
9999
startsWith(github.ref, 'refs/tags') &&
100100
github.actor == github.repository_owner
101-
uses: pypa/gh-action-pypi-publish@release/v1
101+
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ setup:
77
pip install -r requirements-dev-ui.txt
88

99
format:
10-
black httpdbg tests
10+
black httpdbg tests --target-version py39
1111

1212
lint:
13-
black --check httpdbg tests
13+
black --check httpdbg tests --target-version py39
1414
flake8 httpdbg tests
1515

1616
typing:

httpdbg/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "2.1.5"
1+
__version__ = "2.1.6"
22

33
__all__ = ["export_html", "httprecord", "HTTPRecords"]
44

httpdbg/exception.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
3-
41
class HttpdbgException(Exception):
52
"""An issue occurred in httpdbg."""
63

httpdbg/hooks/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
# -*- coding: utf-8 -*-

httpdbg/hooks/external.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
from contextlib import contextmanager
32
from typing import Generator
43
import glob

httpdbg/hooks/fastapi.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
from collections.abc import Callable
32
from contextlib import contextmanager
43
import functools

httpdbg/hooks/flask.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
from collections.abc import Callable
32
from contextlib import contextmanager
43
import functools

httpdbg/hooks/pytest.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
from collections.abc import Callable
32
from contextlib import contextmanager
43
from typing import Generator

httpdbg/hooks/starlette.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
from collections.abc import Callable
32
from contextlib import contextmanager
43
from functools import wraps

0 commit comments

Comments
 (0)