@@ -65,10 +65,10 @@ def in_git_dir(tmpdir):
6565def test_commit_version (in_git_dir ):
6666 _commit_version (
6767 '.' ,
68- version = '0.24.1' , language = 'ruby' , name = 'scss-lint' , entry = 'scss-lint ' ,
69- id = 'scss-lint' , match_key = 'files' , match_val = r'\. scss$ ' , args = '[] ' ,
70- additional_dependencies = ' []' , require_serial = 'false ' ,
71- minimum_pre_commit_version = '0' ,
68+ version = '0.24.1' , language = 'ruby' , name = 'scss-lint' , description = ' ' ,
69+ entry = 'scss-lint' , id = ' scss-lint ' , match_key = 'files ' ,
70+ match_val = r'\.scss$' , args = ' []' , additional_dependencies = '[] ' ,
71+ require_serial = 'false' , minimum_pre_commit_version = '0' ,
7272 )
7373
7474 # Assert that our things got copied over
@@ -86,15 +86,17 @@ def test_commit_version(in_git_dir):
8686def test_arguments (in_git_dir ):
8787 _commit_version (
8888 '.' ,
89- version = '0.6.2' , language = 'python' , name = 'yapf' , entry = 'yapf' ,
90- id = 'yapf' , match_key = 'files' , match_val = r'\.py$' , args = '["-i"]' ,
89+ version = '0.6.2' , language = 'python' , name = 'yapf' ,
90+ description = 'Yet another Python formatter.' , entry = 'yapf' , id = 'yapf' ,
91+ match_key = 'files' , match_val = r'\.py$' , args = '["-i"]' ,
9192 additional_dependencies = '["scikit-learn"]' , require_serial = 'false' ,
9293 minimum_pre_commit_version = '0' ,
9394 )
9495 contents = in_git_dir .join ('.pre-commit-hooks.yaml' ).read ()
9596 assert yaml .safe_load (contents ) == [{
9697 'id' : 'yapf' ,
9798 'name' : 'yapf' ,
99+ 'description' : 'Yet another Python formatter.' ,
98100 'entry' : 'yapf' ,
99101 'language' : 'python' ,
100102 'files' : r'\.py$' ,
@@ -115,8 +117,8 @@ def fake_versions():
115117def test_make_repo_starting_empty (in_git_dir , fake_versions ):
116118 make_repo (
117119 '.' ,
118- language = 'ruby' , name = 'scss-lint' , entry = 'scss-lint ' , id = 'scss-lint' ,
119- match_key = 'files' , match_val = r'\.scss$' , args = '[]' ,
120+ language = 'ruby' , name = 'scss-lint' , description = ' ' , entry = 'scss-lint' ,
121+ id = 'scss-lint' , match_key = 'files' , match_val = r'\.scss$' , args = '[]' ,
120122 require_serial = 'false' , minimum_pre_commit_version = '0' ,
121123 )
122124
@@ -147,8 +149,8 @@ def test_make_repo_starting_at_version(in_git_dir, fake_versions):
147149
148150 make_repo (
149151 '.' ,
150- language = 'ruby' , name = 'scss-lint' , entry = 'scss-lint ' , id = 'scss-lint' ,
151- match_key = 'files' , match_val = r'\.scss$' , args = '[]' ,
152+ language = 'ruby' , name = 'scss-lint' , description = ' ' , entry = 'scss-lint' ,
153+ id = 'scss-lint' , match_key = 'files' , match_val = r'\.scss$' , args = '[]' ,
152154 require_serial = 'false' , minimum_pre_commit_version = '0' ,
153155 )
154156
@@ -167,8 +169,8 @@ def test_make_repo_starting_at_version(in_git_dir, fake_versions):
167169def test_ruby_integration (in_git_dir ):
168170 make_repo (
169171 '.' ,
170- language = 'ruby' , name = 'scss-lint' , entry = 'scss-lint ' , id = 'scss-lint' ,
171- match_key = 'files' , match_val = r'\.scss$' , args = '[]' ,
172+ language = 'ruby' , name = 'scss-lint' , description = ' ' , entry = 'scss-lint' ,
173+ id = 'scss-lint' , match_key = 'files' , match_val = r'\.scss$' , args = '[]' ,
172174 require_serial = 'false' , minimum_pre_commit_version = '0' ,
173175 )
174176 # Our files should exist
@@ -187,8 +189,8 @@ def test_ruby_integration(in_git_dir):
187189def test_node_integration (in_git_dir ):
188190 make_repo (
189191 '.' ,
190- language = 'node' , name = 'jshint' , entry = 'jshint ' , id = 'jshint' ,
191- match_key = 'files' , match_val = r'\.js$' , args = '[]' ,
192+ language = 'node' , name = 'jshint' , description = ' ' , entry = 'jshint' ,
193+ id = 'jshint' , match_key = 'files' , match_val = r'\.js$' , args = '[]' ,
192194 require_serial = 'false' , minimum_pre_commit_version = '0' ,
193195 )
194196 # Our files should exist
@@ -207,8 +209,8 @@ def test_node_integration(in_git_dir):
207209def test_python_integration (in_git_dir ):
208210 make_repo (
209211 '.' ,
210- language = 'python' , name = 'flake8' , entry = 'flake8 ' , id = 'flake8' ,
211- match_key = 'files' , match_val = r'\.py$' , args = '[]' ,
212+ language = 'python' , name = 'flake8' , description = ' ' , entry = 'flake8' ,
213+ id = 'flake8' , match_key = 'files' , match_val = r'\.py$' , args = '[]' ,
212214 require_serial = 'false' , minimum_pre_commit_version = '0' ,
213215 )
214216 # Our files should exist
@@ -230,9 +232,9 @@ def test_python_integration(in_git_dir):
230232def test_rust_integration (in_git_dir ):
231233 make_repo (
232234 '.' ,
233- language = 'rust' , name = 'shellharden' , entry = 'shellharden ' ,
234- id = 'shellharden' , match_key = 'types ' , match_val = 'shell ' ,
235- args = '["--replace"]' , require_serial = 'false' ,
235+ language = 'rust' , name = 'shellharden' , description = ' ' ,
236+ entry = 'shellharden' , id = 'shellharden ' , match_key = 'types ' ,
237+ match_val = 'shell' , args = '["--replace"]' , require_serial = 'false' ,
236238 minimum_pre_commit_version = '0' ,
237239 )
238240 # Our files should exist
0 commit comments