mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 08:24:40 +01:00
[pre-commit.ci] pre-commit autoupdate (#5126)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/charliermarsh/ruff-pre-commit: v0.0.261 → v0.0.262](https://github.com/charliermarsh/ruff-pre-commit/compare/v0.0.261...v0.0.262) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
479413b5d0
commit
a787ee10d7
2 changed files with 4 additions and 3 deletions
|
@ -14,7 +14,7 @@ repos:
|
|||
pass_filenames: false
|
||||
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
||||
# Ruff version.
|
||||
rev: 'v0.0.261'
|
||||
rev: 'v0.0.262'
|
||||
hooks:
|
||||
- id: ruff
|
||||
args: [., --fix, --exit-non-zero-on-fix]
|
||||
|
|
|
@ -242,8 +242,9 @@ class TokenInfo(collections.namedtuple("TokenInfo", "type string start end line"
|
|||
def __repr__(self):
|
||||
annotated_type = "%d (%s)" % (self.type, tok_name[self.type])
|
||||
return (
|
||||
"TokenInfo(type=%s, string=%r, start=%r, end=%r, line=%r)"
|
||||
% self._replace(type=annotated_type)
|
||||
"TokenInfo(type={}, string={!r}, start={!r}, end={!r}, line={!r})".format(
|
||||
*self._replace(type=annotated_type)
|
||||
)
|
||||
)
|
||||
|
||||
@property
|
||||
|
|
Loading…
Add table
Reference in a new issue