We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 550112d commit e73d641Copy full SHA for e73d641
1 file changed
tests/sync_pre_commit_deps_test.py
@@ -35,11 +35,20 @@
35
' - mypy==0.123\n',
36
id='local hook shadows supported lib',
37
),
38
+ pytest.param(
39
+ 'repos:\n'
40
+ '- repo: https://github.com/psf/black\n'
41
+ ' rev: 23.3.0\n'
42
+ ' hooks:\n'
43
+ ' - name: \N{SNOWMAN} black\n'
44
+ ' id: black\n',
45
+ id='unicode no-op',
46
+ ),
47
48
)
49
def test_main_noop(tmpdir, s):
50
cfg = tmpdir.join('.pre-commit-config.yaml')
- cfg.write(s)
51
+ cfg.write_binary(s.encode())
52
53
assert not main((str(cfg),))
54
0 commit comments