Skip to content

Commit d8cb944

Browse files
committed
chore(pre-commit): update hooks
1 parent 021ab1f commit d8cb944

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.pre-commit-config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v2.3.0
3+
rev: v5.0.0
44
hooks:
55
- id: check-yaml
66
- id: end-of-file-fixer
77
- id: trailing-whitespace
88
- repo: https://github.com/astral-sh/ruff-pre-commit
99
# Ruff version.
10-
rev: v0.4.7
10+
rev: v0.9.6
1111
hooks:
1212
# Run the linter.
1313
- id: ruff

tests/test_providers.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from collections import namedtuple
22

33
import pytest
4+
45
from scottzach1.pif import exceptions, providers
56

67

@@ -167,7 +168,7 @@ def test_singleton():
167168
dict_3 = provider()
168169

169170
assert dict_1 == {"a": 1, "b": 2}
170-
assert dict_1 is not {"a": 1, "b": 2}
171+
assert dict_1 is not {"a": 1, "b": 2} # noqa: F632
171172
assert dict_2 is dict_1
172173
assert dict_3 is dict_1
173174

@@ -190,7 +191,7 @@ def test_factory():
190191
dict_3 = provider()
191192

192193
assert dict_1 == {"a": 1, "b": 2}
193-
assert dict_1 is not {"a": 1, "b": 2}
194+
assert dict_1 is not {"a": 1, "b": 2} # noqa: F632
194195

195196
assert dict_2 == dict_1
196197
assert dict_2 is not dict_1

0 commit comments

Comments
 (0)