Skip to content

Commit 4294978

Browse files
committed
Code review
1 parent f638514 commit 4294978

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

.github/workflows/ci-cd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
submodules: true
4242
- name: >-
4343
Verify that `requirements/runtime-deps.in`
44-
is in sync with `setup.cfg`
44+
is in sync with `pyproject.toml`
4545
run: |
4646
set -eEuo pipefail
4747
make sync-direct-runtime-deps

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ dependencies = [
4141
"propcache >= 0.2.0",
4242
"yarl >= 1.17.0, < 2.0",
4343
]
44-
dynamic = ["version"]
44+
dynamic = [
45+
"version",
46+
]
4547

4648
[project.optional-dependencies]
4749
speedups = [

requirements/lint.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ pytest-mock
1111
pytest_codspeed
1212
python-on-whales
1313
slotscheck
14-
tomli; python_version < "3.11"
1514
trustme
1615
uvloop; platform_system != "Windows"
1716
valkey

requirements/lint.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# This file is autogenerated by pip-compile with Python 3.10
2+
# This file is autogenerated by pip-compile with Python 3.12
33
# by the following command:
44
#
55
# pip-compile --allow-unsafe --output-file=requirements/lint.txt --strip-extras requirements/lint.in
@@ -98,9 +98,8 @@ six==1.17.0
9898
# via python-dateutil
9999
slotscheck==0.19.1
100100
# via -r requirements/lint.in
101-
tomli==2.3.0 ; python_version < "3.11"
101+
tomli==2.3.0
102102
# via
103-
# -r requirements/lint.in
104103
# mypy
105104
# pytest
106105
# slotscheck

requirements/sync-direct-runtime-deps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
if sys.version_info >= (3, 11):
88
import tomllib
99
else:
10-
import tomli as tomllib # noqa: I900
10+
raise RuntimeError(f"Use Python 3.11+ to run 'make sync-direct-runtime-deps'")
1111

1212
data = tomllib.loads(Path("pyproject.toml").read_text())
1313
reqs = (

0 commit comments

Comments
 (0)