Skip to content

Commit 1112432

Browse files
[pre-commit.ci] pre-commit autoupdate (#299)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Tobias Raabe <raabe@posteo.de>
1 parent ea91c98 commit 1112432

File tree

3 files changed

+15
-12
lines changed

3 files changed

+15
-12
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ repos:
4444
hooks:
4545
- id: setup-cfg-fmt
4646
- repo: https://github.com/myint/docformatter
47-
rev: v1.4
47+
rev: v1.5.0
4848
hooks:
4949
- id: docformatter
5050
args: [--in-place, --wrap-summaries, "88", --wrap-descriptions, "88", --blank]
@@ -73,7 +73,7 @@ repos:
7373
Pygments,
7474
]
7575
- repo: https://github.com/executablebooks/mdformat
76-
rev: 0.7.14
76+
rev: 0.7.15
7777
hooks:
7878
- id: mdformat
7979
additional_dependencies: [
@@ -83,7 +83,7 @@ repos:
8383
args: [--wrap, "88"]
8484
files: (README\.md)
8585
- repo: https://github.com/executablebooks/mdformat
86-
rev: 0.7.14
86+
rev: 0.7.15
8787
hooks:
8888
- id: mdformat
8989
additional_dependencies: [
@@ -112,10 +112,10 @@ repos:
112112
args: [-v, --fail-under=75]
113113
exclude: ^(tests/|docs/|scripts/)
114114
- repo: https://github.com/codespell-project/codespell
115-
rev: v2.1.0
115+
rev: v2.2.1
116116
hooks:
117117
- id: codespell
118-
args: [-L hist,-L unparseable]
118+
args: [-L hist,-L unparseable, -L falsy]
119119
- repo: https://github.com/mgedmin/check-manifest
120120
rev: "0.48"
121121
hooks:

tests/test_capture.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -609,8 +609,8 @@ class TestTeeStdCapture(TestStdCapture):
609609
captureclass = staticmethod(TeeStdCapture)
610610

611611
def test_capturing_error_recursive(self):
612-
r"""For TeeStdCapture since we passthrough stderr/stdout, cap1
613-
should get all output, while cap2 should only get "cap2\n"."""
612+
r"""For TeeStdCapture since we passthrough stderr/stdout, cap1 should get all
613+
output, while cap2 should only get "cap2\n"."""
614614

615615
with self.getcapture() as cap1:
616616
print("cap1")

tests/test_mark_expression.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -190,11 +190,14 @@ def test_invalid_idents(ident: str) -> None:
190190

191191
@pytest.mark.unit
192192
def test_backslash_not_treated_specially() -> None:
193-
r"""When generating nodeids, if the source name contains special characters
194-
like a newline, they are escaped into two characters like \n. Therefore, a
195-
user will never need to insert a literal newline, only \n (two chars). So
196-
mark expressions themselves do not support escaping, instead they treat
197-
backslashes as regular identifier characters."""
193+
r"""When generating nodeids, if the source name contains special characters like a
194+
newline, they are escaped into two characters like \n.
195+
196+
Therefore, a user will never need to insert a literal newline, only \n (two chars).
197+
So mark expressions themselves do not support escaping, instead they treat
198+
backslashes as regular identifier characters.
199+
200+
"""
198201
matcher = {r"\nfoo\n"}.__contains__
199202

200203
assert evaluate(r"\nfoo\n", matcher)

0 commit comments

Comments
 (0)