Skip to content

Commit f43b629

Browse files
authored
Update test deps (#3589)
1 parent 008b41c commit f43b629

File tree

8 files changed

+15
-14
lines changed

8 files changed

+15
-14
lines changed

.config/requirements-lock.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# pip-compile --no-annotate --output-file=.config/requirements-lock.txt --resolver=backtracking --strip-extras --unsafe-package=resolvelib --unsafe-package=ruamel-yaml-clib pyproject.toml
66
#
77
ansible-compat==4.1.2
8-
ansible-core==2.15.0
8+
ansible-core==2.15.1
99
attrs==23.1.0
1010
black==23.3.0
1111
bracex==2.3.post1
@@ -25,7 +25,7 @@ mdurl==0.1.2
2525
mypy-extensions==1.0.0
2626
packaging==23.1
2727
pathspec==0.11.1
28-
platformdirs==3.6.0
28+
platformdirs==3.7.0
2929
pycparser==2.21
3030
pygments==2.15.1
3131
pyrsistent==0.19.3

.config/requirements.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# pip-compile --extra=docs --extra=test --no-annotate --output-file=.config/requirements.txt --resolver=backtracking --strip-extras --unsafe-package=resolvelib --unsafe-package=ruamel-yaml-clib pyproject.toml
66
#
77
ansible-compat==4.1.2
8-
ansible-core==2.15.0
8+
ansible-core==2.15.1
99
astroid==2.15.5
1010
attrs==23.1.0
1111
beautifulsoup4==4.12.2
@@ -61,15 +61,15 @@ mkdocs-minify-plugin==0.6.4
6161
mkdocs-monorepo-plugin==1.0.5
6262
mkdocstrings==0.22.0
6363
mkdocstrings-python==1.1.0
64-
mypy==1.3.0
64+
mypy==1.4.0
6565
mypy-extensions==1.0.0
6666
netaddr==0.8.0
6767
packaging==23.1
6868
pathspec==0.11.1
6969
pillow==9.5.0
7070
pipdeptree==2.7.1
71-
platformdirs==3.6.0
72-
pluggy==1.0.0
71+
platformdirs==3.7.0
72+
pluggy==1.2.0
7373
ply==3.11
7474
psutil==5.9.5
7575
pycparser==2.21

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ repos:
130130
types: [file, yaml]
131131
entry: yamllint --strict
132132
- repo: https://github.com/charliermarsh/ruff-pre-commit
133-
rev: "v0.0.272"
133+
rev: "v0.0.274"
134134
hooks:
135135
- id: ruff
136136
args: [--fix, --exit-non-zero-on-fix]
@@ -140,7 +140,7 @@ repos:
140140
- id: black
141141
language_version: python3
142142
- repo: https://github.com/pre-commit/mirrors-mypy
143-
rev: v1.3.0
143+
rev: v1.4.0
144144
hooks:
145145
- id: mypy
146146
# empty args needed in order to match mypy cli behavior

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ python_files = [
223223
xfail_strict = true
224224

225225
[tool.ruff]
226-
required-version = "0.0.272"
226+
required-version = "0.0.274"
227227
ignore = [
228228
"E501", # we use black
229229
"ERA001", # auto-removal of commented out code affects development and vscode integration
@@ -237,6 +237,7 @@ ignore = [
237237
"FBT001",
238238
"FBT003",
239239
"PLR",
240+
"RUF012", # Mutable class attributes should be annotated with `typing.ClassVar`
240241
"TRY",
241242
]
242243
select = ["ALL"]

src/ansiblelint/_internal/rules.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def match(self, line: str) -> bool | str:
143143

144144
def __lt__(self, other: BaseRule) -> bool:
145145
"""Enable us to sort rules by their id."""
146-
return (self._order, self.id) < (other._order, other.id) # noqa: SLF001
146+
return (self._order, self.id) < (other._order, other.id)
147147

148148
def __repr__(self) -> str:
149149
"""Return a AnsibleLintRule instance representation."""

src/ansiblelint/errors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def __lt__(self, other: object) -> bool:
153153
"""Return whether the current object is less than the other."""
154154
if not isinstance(other, self.__class__):
155155
return NotImplemented
156-
return bool(self._hash_key < other._hash_key) # noqa: SLF001
156+
return bool(self._hash_key < other._hash_key)
157157

158158
def __eq__(self, other: object) -> bool:
159159
"""Identify whether the other object represents the same rule match."""

src/ansiblelint/rules/meta_video_links.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def matchyaml(self, file: Lintable) -> list[MatchError]:
6969
)
7070
continue
7171

72-
for _, expr in self.VIDEO_REGEXP.items():
72+
for expr in self.VIDEO_REGEXP.values():
7373
if expr.match(video["url"]):
7474
break
7575
else:

src/ansiblelint/skip_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ def _get_rule_skips_from_yaml(
263263
return []
264264

265265
def traverse_yaml(obj: Any) -> None:
266-
for _, entry in obj.ca.items.items():
266+
for entry in obj.ca.items.values():
267267
for v in entry:
268268
if isinstance(v, CommentToken):
269269
comment_str = v.value
@@ -278,7 +278,7 @@ def traverse_yaml(obj: Any) -> None:
278278
)
279279
yaml_comment_obj_strings.append(str(obj.ca.items))
280280
if isinstance(obj, dict):
281-
for _, val in obj.items():
281+
for val in obj.values():
282282
if isinstance(val, (dict, list)):
283283
traverse_yaml(val)
284284
elif isinstance(obj, list):

0 commit comments

Comments
 (0)