Skip to content

Commit d99ac0e

Browse files
Updated pdm, dev dependencies, and pre-commit pinned versions (#390)
1 parent 80371ec commit d99ac0e

File tree

12 files changed

+319
-323
lines changed

12 files changed

+319
-323
lines changed

.github/actions/openbsd-vm/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ runs:
2929
with:
3030
envFile: ${{ github.action_path }}/python/${{ inputs.python-version }}.conf
3131
- name: Install PDM
32-
uses: pdm-project/setup-pdm@2f3a9be7ac56a6e5c1ea605f8e9d0f0500363705 # v4
32+
uses: pdm-project/setup-pdm@v4.2
3333
id: pdm
3434
with:
3535
version: ${{ env.PDM_VERSION }}

.github/actions/pdm.conf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
# This file is loaded in runner environment by:
22
# - setup-tox
33
# - freebsd-vm
4+
# - openbsd-vm
5+
# - netbsd-vm
46

5-
PDM_VERSION=2.20.1
7+
PDM_VERSION=2.22.2
68
PDM_CHECK_UPDATE=False
79
WORKFLOW_CACHE_KEY_FILE=.github/.workflow.cache.key

.github/actions/setup-tox/action.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,8 @@ runs:
2727
- name: Show cache key
2828
run: cat ${{ env.WORKFLOW_CACHE_KEY_FILE }}
2929
shell: bash
30-
# Use a pinned commit to use the new feature added (and which is not currently added to v4)
31-
# c.f. https://github.com/pdm-project/setup-pdm/pull/60
3230
- name: Install PDM
33-
uses: pdm-project/setup-pdm@2f3a9be7ac56a6e5c1ea605f8e9d0f0500363705 # v4
31+
uses: pdm-project/setup-pdm@v4.2
3432
id: pdm
3533
with:
3634
version: ${{ env.PDM_VERSION }}

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ci:
1212

1313
repos:
1414
- repo: https://github.com/asottile/pyupgrade
15-
rev: v3.19.0
15+
rev: v3.19.1
1616
hooks:
1717
- id: pyupgrade
1818
args: ['--py311-plus']
@@ -35,7 +35,7 @@ repos:
3535
'git+https://github.com/francis-clairicia/flake8-dunder-all.git@v0.1.0'
3636
]
3737
- repo: https://github.com/PyCQA/bandit
38-
rev: '1.7.10'
38+
rev: '1.8.2'
3939
hooks:
4040
- id: bandit
4141
args: ['-c', '.bandit.yml']
@@ -46,7 +46,7 @@ repos:
4646
types: [] # Overwrite with empty in order to fallback to types_or
4747
types_or: [python, pyi]
4848
- repo: https://github.com/pdm-project/pdm
49-
rev: '2.20.1'
49+
rev: '2.22.2'
5050
hooks:
5151
- id: pdm-lock-check
5252
- id: pdm-export

.readthedocs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build:
66
python: "3.11"
77
jobs:
88
post_create_environment:
9-
- pip install --no-cache-dir pdm==2.20.1
9+
- pip install --no-cache-dir pdm==2.22.2
1010
- pdm config check_update false
1111
- pdm use -f $READTHEDOCS_VIRTUALENV_PATH
1212
post_install:

DEVELOPMENT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
### System Requirements
66

77
- CPython >= 3.11.0
8-
- [PDM](https://pdm-project.org/latest/#installation) >= 2.20
8+
- [PDM](https://pdm-project.org/latest/#installation) >= 2.22
99
- The [Rust Toolchain](https://rustup.rs/)
1010

1111
### Virtual environment

benchmark_server/servers/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
# Please do not edit it manually.
33

44
asyncio-dgram==2.1.2
5-
attrs==24.2.0
5+
attrs==24.3.0
66
cffi==1.17.1
77
idna==3.10
88
outcome==1.3.0.post0
99
pycparser==2.22
1010
sniffio==1.3.1
1111
sortedcontainers==2.4.0
12-
trio==0.27.0
12+
trio==0.28.0
1313
uvloop==0.21.0; os_name == "posix"

pdm.lock

Lines changed: 300 additions & 303 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,7 @@ trio = [
6262
"outcome~=1.3",
6363
]
6464

65-
############################ pdm configuration ############################
66-
67-
[tool.pdm.dev-dependencies]
65+
[dependency-groups]
6866
dev = [
6967
"bump2version>=1.0.1,<2",
7068
"hatch>=1.8,<2",
@@ -104,7 +102,7 @@ test = [
104102
"pytest-xdist~=3.3",
105103
"pytest-mock~=3.10",
106104
"pytest-cov~=6.0",
107-
"pytest-asyncio~=0.24.0",
105+
"pytest-asyncio~=0.25.0",
108106
"trove-classifiers>=2023.11.9",
109107
# "pytest-retry~=1.6",
110108
# Temporary use VCS to get the modifications added on main (c.f. https://github.com/str0zzapreti/pytest-retry/pull/39)
@@ -136,7 +134,8 @@ benchmark-servers = [
136134
"plotly~=5.18",
137135
]
138136
benchmark-servers-deps = [
139-
"easynetwork[uvloop, trio]",
137+
{include-group = "uvloop"},
138+
"easynetwork[trio]",
140139
"asyncio-dgram==2.1.2",
141140
]
142141

src/easynetwork/lowlevel/_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def prepend_argument(
141141
func: Callable[Concatenate[_T_Arg, _P], _T_Return] | None = None,
142142
) -> Callable[[Callable[Concatenate[_T_Arg, _P], _T_Return]], Callable[_P, _T_Return]] | Callable[_P, _T_Return]:
143143
def decorator(func: Callable[Concatenate[_T_Arg, _P], _T_Return], /) -> Callable[_P, _T_Return]:
144-
return functools.partial(func, arg) # type: ignore[call-arg]
144+
return functools.partial(func, arg)
145145

146146
if func is not None:
147147
return decorator(func)

0 commit comments

Comments
 (0)