Skip to content

Commit 510daf8

Browse files
Bump pytest-examples to get tests passing with ruff v0.5.0 (#1360)
1 parent a017bd9 commit 510daf8

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ jobs:
343343
version: '3.1.46'
344344
actions-cache-folder: emsdk-cache
345345

346-
- run: pip install 'maturin>=1,<2' 'ruff==0.1.3' typing_extensions
346+
- run: pip install 'maturin>=1,<2' 'ruff==0.5.0' typing_extensions
347347

348348
- name: build wheels
349349
run: make build-wasm
@@ -475,7 +475,7 @@ jobs:
475475
python-version: '3.11'
476476
architecture: ${{ matrix.python-architecture || 'x64' }}
477477

478-
- run: pip install -U twine 'ruff==0.1.3' typing_extensions
478+
- run: pip install -U twine 'ruff==0.5.0' typing_extensions
479479

480480
# generate self-schema now, so we don't have to do so inside docker in maturin build
481481
- run: python generate_self_schema.py
@@ -539,7 +539,7 @@ jobs:
539539
with:
540540
components: llvm-tools
541541

542-
- run: pip install -U 'ruff==0.1.3' typing_extensions
542+
- run: pip install -U 'ruff==0.5.0' typing_extensions
543543

544544
# generate self-schema now, so we don't have to do so inside docker in maturin build
545545
- run: python generate_self_schema.py

tests/requirements-linting.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
griffe==0.45.2
22
pyright==1.1.365
3-
ruff==0.4.7
3+
ruff==0.5.0
44
mypy==1.10.0

tests/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ pytest==8.2.1
99
pytest-codspeed~=2.2.1; implementation_name == "cpython" and platform_machine == 'x86_64'
1010
# pytest-examples currently depends on aiohttp via black; we don't want to build
1111
# it on platforms like aarch64 musllinux in CI
12-
pytest-examples==0.0.10; implementation_name == "cpython" and platform_machine == 'x86_64'
12+
pytest-examples==0.0.11; implementation_name == "cpython" and platform_machine == 'x86_64'
1313
pytest-speed==0.3.5
1414
pytest-mock==3.14.0
1515
pytest-pretty==1.2.0

tests/validators/test_list.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def test_list_strict():
4343

4444
def test_list_no_copy():
4545
v = SchemaValidator({'type': 'list'})
46-
assert v.validate_python([1, 2, 3]) is not [1, 2, 3]
46+
assert v.validate_python([1, 2, 3]) is not [1, 2, 3] # noqa: F632
4747

4848

4949
def gen_ints():

0 commit comments

Comments
 (0)