Skip to content

Commit 5a5a8b5

Browse files
[pre-commit.ci] pre-commit autoupdate (#85)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/pycqa/pylint: v2.12.2 → v2.13.2](pylint-dev/pylint@v2.12.2...v2.13.2) - [github.com/pre-commit/mirrors-mypy: v0.941 → v0.942](pre-commit/mirrors-mypy@v0.941...v0.942) - [github.com/pre-commit/mirrors-prettier: v2.6.0 → v2.6.1](pre-commit/mirrors-prettier@v2.6.0...v2.6.1) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Daniël van Noord <[email protected]>
1 parent 3f89d68 commit 5a5a8b5

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ repos:
4141
exclude: *test-data
4242
additional_dependencies: [flake8-typing-imports==1.10.1]
4343
- repo: https://github.com/pycqa/pylint
44-
rev: v2.12.2
44+
rev: v2.13.2
4545
hooks:
4646
- id: pylint
4747
exclude: *test-data
4848
args: ["--disable=import-error, cyclic-import"]
4949
- repo: https://github.com/pre-commit/mirrors-mypy
50-
rev: v0.941
50+
rev: v0.942
5151
hooks:
5252
- id: mypy
5353
args: [--config-file=pyproject.toml]
@@ -61,7 +61,7 @@ repos:
6161
exclude: *test-data
6262
args: [--split-summary-body]
6363
- repo: https://github.com/pre-commit/mirrors-prettier
64-
rev: v2.6.0
64+
rev: v2.6.1
6565
hooks:
6666
- id: prettier
6767
exclude: *test-data

tests/test_run.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,9 @@ class OptionalFormatter(StringFormatter):
3939
name = "optional-formatter"
4040
optional = True
4141

42-
@staticmethod
43-
def _treat_string(tokeninfo: tokenize.TokenInfo, _: int) -> str:
42+
def _treat_string(
43+
self, tokeninfo: tokenize.TokenInfo, indent_length: int
44+
) -> str:
4445
"""Treat a string."""
4546
return tokeninfo.string
4647

@@ -49,8 +50,9 @@ class NonOptionalFormatter(StringFormatter):
4950

5051
name = "non-optional-formatter"
5152

52-
@staticmethod
53-
def _treat_string(tokeninfo: tokenize.TokenInfo, _: int) -> str:
53+
def _treat_string(
54+
self, tokeninfo: tokenize.TokenInfo, indent_length: int
55+
) -> str:
5456
"""Treat a string."""
5557
return tokeninfo.string
5658

0 commit comments

Comments
 (0)