mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Fix typos all around
This commit is contained in:
parent
dbccd57db0
commit
1e7506dba6
5 changed files with 7 additions and 7 deletions
|
|
@ -331,7 +331,7 @@
|
|||
|
||||
### Features
|
||||
- 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.
|
||||
- #2406 issue by @M-Whitaker.
|
||||
|
||||
|
|
@ -681,7 +681,7 @@
|
|||
- Add `types_or` which allows matching multiple disparate `types` in a hook
|
||||
- #1677 by @MarcoGorelli.
|
||||
- #607 by @asottile.
|
||||
- Add Github Sponsors / Open Collective links
|
||||
- Add GitHub Sponsors / Open Collective links
|
||||
- https://github.com/sponsors/asottile
|
||||
- https://opencollective.com/pre-commit
|
||||
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ def is_valid_according_to_schema(obj, obj_schema):
|
|||
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):
|
||||
with pytest.raises(cfgv.ValidationError):
|
||||
check_type_tag(value)
|
||||
|
|
|
|||
|
|
@ -879,7 +879,7 @@ def test_post_rewrite_integration(tempdir_factory, store):
|
|||
|
||||
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')
|
||||
|
||||
|
||||
|
|
@ -1071,7 +1071,7 @@ def test_install_allow_missing_config(tempdir_factory, store):
|
|||
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')
|
||||
with cwd(path):
|
||||
remove_config_from_repo(path)
|
||||
|
|
|
|||
|
|
@ -197,7 +197,7 @@ def test_error_handler_no_tty(tempdir_factory):
|
|||
@xfailif_windows # pragma: win32 no cover
|
||||
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
|
||||
# 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
|
||||
Store()
|
||||
|
||||
|
|
|
|||
|
|
@ -291,7 +291,7 @@ def test_health_check_without_version(prefix, installed_environment, version):
|
|||
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'
|
||||
check_output = r.health_check(prefix, C.DEFAULT)
|
||||
assert check_output is not None and check_output.startswith(msg)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue