diff options
author | pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> | 2023-05-16 12:06:17 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-16 12:06:17 +0000 |
commit | d7baf5d43fa8de68c4c169f731ae5af43ce60790 (patch) | |
tree | d71613386d71f9fb05a39ae326e1c876347540b7 /pylint | |
parent | d392ea5d8a11049a275207cf18e488bf19a57c69 (diff) | |
download | pylint-git-d7baf5d43fa8de68c4c169f731ae5af43ce60790.tar.gz |
[pre-commit.ci] pre-commit autoupdate and simplify ruff config (#8694)
* [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/charliermarsh/ruff-pre-commit: v0.0.265 → v0.0.267](https://github.com/charliermarsh/ruff-pre-commit/compare/v0.0.265...v0.0.267)
- [github.com/pre-commit/mirrors-mypy: v1.2.0 → v1.3.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.2.0...v1.3.0)
---------
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
Diffstat (limited to 'pylint')
-rw-r--r-- | pylint/message/message_definition.py | 2 | ||||
-rw-r--r-- | pylint/utils/ast_walker.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/pylint/message/message_definition.py b/pylint/message/message_definition.py index 29a8780cb..eebcd5dae 100644 --- a/pylint/message/message_definition.py +++ b/pylint/message/message_definition.py @@ -70,7 +70,7 @@ class MessageDefinition: return f"MessageDefinition:{self.symbol} ({self.msgid})" def __str__(self) -> str: - return f"{repr(self)}:\n{self.msg} {self.description}" + return f"{self!r}:\n{self.msg} {self.description}" def may_be_emitted(self, py_version: tuple[int, ...] | sys._version_info) -> bool: """May the message be emitted using the configured py_version?""" diff --git a/pylint/utils/ast_walker.py b/pylint/utils/ast_walker.py index 338caf57a..367a39b81 100644 --- a/pylint/utils/ast_walker.py +++ b/pylint/utils/ast_walker.py @@ -98,7 +98,7 @@ class ASTWalker: if self.exception_msg is False: file = getattr(astroid.root(), "file", None) print( - f"Exception on node {repr(astroid)} in file '{file}'", + f"Exception on node {astroid!r} in file '{file}'", file=sys.stderr, ) traceback.print_exc() |