Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#670)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.5.2 → v0.5.4](astral-sh/ruff-pre-commit@v0.5.2...v0.5.4)
- [github.com/pre-commit/mirrors-mypy: v1.10.1 → v1.11.0](pre-commit/mirrors-mypy@v1.10.1...v1.11.0)
- [github.com/commitizen-tools/commitizen: v3.27.0 → v3.28.0](commitizen-tools/commitizen@v3.27.0...v3.28.0)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* chore: ignore mypy warnings

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: W. Augusto Andreoli <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and andreoliwa authored Jul 23, 2024
1 parent f07fc1c commit 9381104
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ repos:
# - poetry.lock: auto-generated file
exclude: (ideas/|resources/|tests/|poetry.lock)
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.2
rev: v0.5.4
hooks:
- id: ruff
args: [--fix]
Expand Down Expand Up @@ -86,7 +86,7 @@ repos:
- id: prettier
stages: [commit]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.10.1
rev: v1.11.0
hooks:
- id: mypy
# https://mypy.readthedocs.io/en/stable/command_line.html#cmdoption-mypy-show-error-codes
Expand Down Expand Up @@ -131,7 +131,7 @@ repos:
# https://docs.openstack.org/bashate/latest/man/bashate.html#options
args: [-i, E006]
- repo: https://github.com/commitizen-tools/commitizen
rev: v3.27.0
rev: v3.28.0
hooks:
- id: commitizen
stages: [commit-msg]
8 changes: 4 additions & 4 deletions src/nitpick/blender.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,21 +315,21 @@ def missing(self) -> TBaseDoc | None:
"""Missing data."""
if not self.missing_dict:
return None
return self.doc_class(obj=(unflatten_quotes(self.missing_dict)))
return self.doc_class(obj=(unflatten_quotes(self.missing_dict))) # type: ignore[return-value]

@property
def diff(self) -> TBaseDoc | None:
"""Different data."""
if not self.diff_dict:
return None
return self.doc_class(obj=(unflatten_quotes(self.diff_dict)))
return self.doc_class(obj=(unflatten_quotes(self.diff_dict))) # type: ignore[return-value]

@property
def replace(self) -> TBaseDoc | None:
"""Data to be replaced."""
if not self.replace_dict:
return None
return self.doc_class(obj=unflatten_quotes(self.replace_dict))
return self.doc_class(obj=unflatten_quotes(self.replace_dict)) # type: ignore[return-value]

@property
def has_changes(self) -> bool:
Expand Down Expand Up @@ -370,7 +370,7 @@ def __call__(self) -> Comparison:

return self

def _compare_list_elements( # pylint: disable=too-many-arguments # noqa: PLR0913
def _compare_list_elements( # pylint: disable=too-many-arguments
self, key: str, parent_key: str, child_key: str, actual_detail: ListDetail, expected_detail: ListDetail
) -> None:
"""Compare list elements by their keys or hashes."""
Expand Down

0 comments on commit 9381104

Please sign in to comment.