Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc1ec9cb

Browse files
committed
Update flake8 additional dependencies, fix warning
This bumps the versions of the flake8 plugins specified with pinnedversions as additional dependencies of flake8 for pre-commit.Doing so gains a warning about a call to warnings.warn with nostacklevel argument. This appears to be the uncommon case where theimplifit effect of stacklevel=1 is intended, so I have made thatexplicit, which clarifies this intent and dismisses the warning.
1 parentbf7af69 commitc1ec9cb

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

‎.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ repos:
55
-id:flake8
66
additional_dependencies:
77
[
8-
flake8-bugbear==22.12.6,
9-
flake8-comprehensions==3.10.1,
8+
flake8-bugbear==23.9.16,
9+
flake8-comprehensions==3.14.0,
1010
flake8-typing-imports==1.14.0,
1111
]
1212
exclude:^doc|^git/ext/|^test/

‎git/repo/base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,8 @@ def __init__(
206206
ifexpand_varsandre.search(self.re_envvars,epath):
207207
warnings.warn(
208208
"The use of environment variables in paths is deprecated"
209-
+"\nfor security reasons and may be removed in the future!!"
209+
+"\nfor security reasons and may be removed in the future!!",
210+
stacklevel=1,
210211
)
211212
epath=expand_path(epath,expand_vars)
212213
ifepathisnotNone:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp