Skip to content

Commit 7483851

Browse files
committed
Swap httpx out for niquests
1 parent 2c9e0d1 commit 7483851

File tree

4 files changed

+713
-372
lines changed

4 files changed

+713
-372
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ ci:
33

44
repos:
55
- repo: https://github.com/psf/black-pre-commit-mirror
6-
rev: 25.12.0
6+
rev: 26.3.1
77
hooks:
88
- id: black
99
- repo: https://github.com/pycqa/isort
10-
rev: 7.0.0
10+
rev: 8.0.1
1111
hooks:
1212
- id: isort
1313
name: isort
@@ -36,6 +36,6 @@ repos:
3636
- id: python-check-blanket-type-ignore
3737
- id: python-use-type-annotations
3838
- repo: https://github.com/astral-sh/ruff-pre-commit
39-
rev: v0.14.10
39+
rev: v0.15.7
4040
hooks:
4141
- id: ruff-check

pre_commit_python_eol/bump_cache.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
from pre_commit_python_eol import __url__, __version__
66

77
try:
8-
import httpx
8+
import niquests
99
except ImportError:
1010
raise RuntimeError(
11-
"httpx was not installed, please install the 'gha' dependency group"
11+
"niquests was not installed, please install the 'gha' dependency group"
1212
) from None
1313

1414
USER_AGENT = (
1515
f"pre-commit-check-eol/{__version__} ({__url__}) "
16-
f"httpx/{httpx.__version__} "
16+
f"niquests/{niquests.__version__} "
1717
f"{platform.python_implementation()}/{platform.python_version()}"
1818
)
1919

@@ -23,7 +23,7 @@
2323

2424
def bump_cache() -> None:
2525
"""Update the cached release cycle JSON from the source repository."""
26-
with httpx.Client(headers={"User-Agent": USER_AGENT}) as client:
26+
with niquests.Session(headers={"User-Agent": USER_AGENT}) as client:
2727
r = client.get(CACHE_SOURCE)
2828
r.raise_for_status()
2929

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ classifiers = [
2323

2424
requires-python = ">=3.11"
2525
dependencies = [
26-
"packaging~=25.0",
26+
"packaging~=26.0",
2727
]
2828

2929
[project.urls]
@@ -38,11 +38,11 @@ checkeol = "pre_commit_python_eol.check_eol:main"
3838

3939
[dependency-groups]
4040
dev = [
41-
"black~=25.0",
41+
"black~=26.3",
4242
"flake8~=7.1",
4343
"flake8-annotations~=3.1",
4444
"flake8-define-class-attributes~=0.2",
45-
"isort~=7.0",
45+
"isort~=8.0",
4646
"mypy~=1.14",
4747
"pre-commit~=4.0",
4848
"pytest~=9.0",
@@ -57,7 +57,7 @@ dev = [
5757

5858
[project.optional-dependencies]
5959
gha = [
60-
"httpx~=0.28",
60+
"niquests~=3.18",
6161
]
6262

6363
[tool.black]

0 commit comments

Comments
 (0)