Fix typos all around

This commit is contained in:
Viktor Szépe 2024-10-07 21:53:27 +00:00
parent dbccd57db0
commit 1e7506dba6
5 changed files with 7 additions and 7 deletions

View file

@ -331,7 +331,7 @@
### Features ### Features
- Expose `source` and `object-name` (positional args) of `prepare-commit-msg` - Expose `source` and `object-name` (positional args) of `prepare-commit-msg`
hook as `PRE_COMMIT_COMIT_MSG_SOURCE` and `PRE_COMMIT_COMMIT_OBJECT_NAME`. hook as `PRE_COMMIT_COMMIT_MSG_SOURCE` and `PRE_COMMIT_COMMIT_OBJECT_NAME`.
- #2407 PR by @M-Whitaker. - #2407 PR by @M-Whitaker.
- #2406 issue by @M-Whitaker. - #2406 issue by @M-Whitaker.
@ -681,7 +681,7 @@
- Add `types_or` which allows matching multiple disparate `types` in a hook - Add `types_or` which allows matching multiple disparate `types` in a hook
- #1677 by @MarcoGorelli. - #1677 by @MarcoGorelli.
- #607 by @asottile. - #607 by @asottile.
- Add Github Sponsors / Open Collective links - Add GitHub Sponsors / Open Collective links
- https://github.com/sponsors/asottile - https://github.com/sponsors/asottile
- https://opencollective.com/pre-commit - https://opencollective.com/pre-commit

View file

@ -29,7 +29,7 @@ def is_valid_according_to_schema(obj, obj_schema):
return False return False
@pytest.mark.parametrize('value', ('definitely-not-a-tag', 'fiel')) @pytest.mark.parametrize('value', ('definitely-not-a-tag', 'file'))
def test_check_type_tag_failures(value): def test_check_type_tag_failures(value):
with pytest.raises(cfgv.ValidationError): with pytest.raises(cfgv.ValidationError):
check_type_tag(value) check_type_tag(value)

View file

@ -879,7 +879,7 @@ def test_post_rewrite_integration(tempdir_factory, store):
assert not os.path.exists('post-rewrite.tmp') assert not os.path.exists('post-rewrite.tmp')
git_commit('--amend', '-m', 'ammended message') git_commit('--amend', '-m', 'amended message')
assert os.path.exists('post-rewrite.tmp') assert os.path.exists('post-rewrite.tmp')
@ -1071,7 +1071,7 @@ def test_install_allow_missing_config(tempdir_factory, store):
assert expected in output assert expected in output
def test_install_temporarily_allow_mising_config(tempdir_factory, store): def test_install_temporarily_allow_missing_config(tempdir_factory, store):
path = make_consuming_repo(tempdir_factory, 'script_hooks_repo') path = make_consuming_repo(tempdir_factory, 'script_hooks_repo')
with cwd(path): with cwd(path):
remove_config_from_repo(path) remove_config_from_repo(path)

View file

@ -197,7 +197,7 @@ def test_error_handler_no_tty(tempdir_factory):
@xfailif_windows # pragma: win32 no cover @xfailif_windows # pragma: win32 no cover
def test_error_handler_read_only_filesystem(mock_store_dir, cap_out, capsys): def test_error_handler_read_only_filesystem(mock_store_dir, cap_out, capsys):
# a better scenario would be if even the Store crash would be handled # a better scenario would be if even the Store crash would be handled
# but realistically we're only targetting systems where the Store has # but realistically we're only targeting systems where the Store has
# already been set up # already been set up
Store() Store()

View file

@ -291,7 +291,7 @@ def test_health_check_without_version(prefix, installed_environment, version):
prefix=prefix, version=C.DEFAULT, cwd=env_dir, prefix=prefix, version=C.DEFAULT, cwd=env_dir,
) )
# no R version specified fails as unhealty # no R version specified fails as unhealthy
msg = 'Hooks were installed with an unknown R version' msg = 'Hooks were installed with an unknown R version'
check_output = r.health_check(prefix, C.DEFAULT) check_output = r.health_check(prefix, C.DEFAULT)
assert check_output is not None and check_output.startswith(msg) assert check_output is not None and check_output.startswith(msg)