Skip to content

Commit 3922263

Browse files
committed
Use more inclusive language
Committed via https://github.com/asottile/all-repos
1 parent 2c28197 commit 3922263

11 files changed

+25
-25
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1444,7 +1444,7 @@ that have helped us get this far!
14441444

14451445
0.13.1 - 2017-02-16
14461446
===================
1447-
- Fix dummy gem for ruby local hooks
1447+
- Fix placeholder gem for ruby local hooks
14481448

14491449
0.13.0 - 2017-02-16
14501450
===================
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use ExtUtils::MakeMaker;
22

33
WriteMakefile(
4-
NAME => "PreCommitDummy",
4+
NAME => "PreCommitPlaceholder",
55
VERSION => "0.0.1",
66
);
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
module pre-commit-dummy-empty-module
1+
module pre-commit-placeholder-empty-module
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"name": "pre_commit_dummy_package",
2+
"name": "pre_commit_placeholder_package",
33
"version": "0.0.0"
44
}

pre_commit/resources/empty_template_pre_commit_dummy_package.gemspec

Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Gem::Specification.new do |s|
2+
s.name = 'pre_commit_placeholder_package'
3+
s.version = '0.0.0'
4+
s.summary = 'placeholder gem for pre-commit hooks'
5+
s.authors = ['Anthony Sottile']
6+
end
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
from setuptools import setup
22

33

4-
setup(name='pre-commit-dummy-package', version='0.0.0')
4+
setup(name='pre-commit-placeholder-package', version='0.0.0')

pre_commit/store.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def _git_cmd(*args: str) -> None:
188188

189189
LOCAL_RESOURCES = (
190190
'Cargo.toml', 'main.go', 'go.mod', 'main.rs', '.npmignore',
191-
'package.json', 'pre_commit_dummy_package.gemspec', 'setup.py',
191+
'package.json', 'pre_commit_placeholder_package.gemspec', 'setup.py',
192192
'environment.yml', 'Makefile.PL',
193193
'renv.lock', 'renv/activate.R', 'renv/LICENSE.renv',
194194
)

tests/commands/run_test.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -526,9 +526,9 @@ def test_merge_conflict(cap_out, store, in_merge_conflict):
526526

527527
def test_merge_conflict_modified(cap_out, store, in_merge_conflict):
528528
# Touch another file so we have unstaged non-conflicting things
529-
assert os.path.exists('dummy')
530-
with open('dummy', 'w') as dummy_file:
531-
dummy_file.write('bar\nbaz\n')
529+
assert os.path.exists('placeholder')
530+
with open('placeholder', 'w') as placeholder_file:
531+
placeholder_file.write('bar\nbaz\n')
532532

533533
ret, printed = _do_run(cap_out, store, in_merge_conflict, run_opts())
534534
assert ret == 1
@@ -831,9 +831,9 @@ def test_local_hook_passes(cap_out, store, repo_with_passing_hook):
831831
}
832832
add_config_to_repo(repo_with_passing_hook, config)
833833

834-
with open('dummy.py', 'w') as staged_file:
834+
with open('placeholder.py', 'w') as staged_file:
835835
staged_file.write('"""TODO: something"""\n')
836-
cmd_output('git', 'add', 'dummy.py')
836+
cmd_output('git', 'add', 'placeholder.py')
837837

838838
_test_run(
839839
cap_out,
@@ -858,9 +858,9 @@ def test_local_hook_fails(cap_out, store, repo_with_passing_hook):
858858
}
859859
add_config_to_repo(repo_with_passing_hook, config)
860860

861-
with open('dummy.py', 'w') as staged_file:
861+
with open('placeholder.py', 'w') as staged_file:
862862
staged_file.write('"""TODO: something"""\n')
863-
cmd_output('git', 'add', 'dummy.py')
863+
cmd_output('git', 'add', 'placeholder.py')
864864

865865
_test_run(
866866
cap_out,

tests/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ def _make_conflict():
9090
@pytest.fixture
9191
def in_merge_conflict(tempdir_factory):
9292
path = make_consuming_repo(tempdir_factory, 'script_hooks_repo')
93-
open(os.path.join(path, 'dummy'), 'a').close()
94-
cmd_output('git', 'add', 'dummy', cwd=path)
93+
open(os.path.join(path, 'placeholder'), 'a').close()
94+
cmd_output('git', 'add', 'placeholder', cwd=path)
9595
git_commit(msg=in_merge_conflict.__name__, cwd=path)
9696

9797
conflict_path = tempdir_factory.get()

0 commit comments

Comments
 (0)