Skip to content

Commit 5e8f86d

Browse files
authored
chore: update dev dependencies (#713)
1 parent eb98ff1 commit 5e8f86d

File tree

3 files changed

+47
-47
lines changed

3 files changed

+47
-47
lines changed

poetry.lock

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

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ pytest-xdist = '^3.1.0'
4141
[tool.poetry.group.dev.dependencies]
4242
isort = '^5.12.0'
4343
black = '^23.1.0'
44-
mypy = '^1.0.0'
44+
mypy = '^1.0.1'
4545
py-githooks = '^1.1.1'
4646
flake8 = '^6.0.0'
47-
flake8-bugbear = '^23.1.20'
47+
flake8-bugbear = '^23.2.13'
4848
flake8-builtins = '^2.1.0'
4949
flake8-comprehensions = '^3.10.1'
5050
twine = '^4.0.2'

src/syrupy/extensions/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ def write_snapshot(
184184
test_location.basename,
185185
line_end="\n",
186186
)
187-
warnings.warn(warning_msg)
187+
warnings.warn(warning_msg, stacklevel=1)
188188

189189
if not test_location.matches_snapshot_name(snapshot.name):
190190
warning_msg = gettext(
@@ -196,7 +196,7 @@ def write_snapshot(
196196
test_location.testname,
197197
line_end="\n",
198198
)
199-
warnings.warn(warning_msg)
199+
warnings.warn(warning_msg, stacklevel=1)
200200

201201
# Ensures the folder path for the snapshot file exists.
202202
Path(snapshot_location).parent.mkdir(parents=True, exist_ok=True)

0 commit comments

Comments
 (0)