Skip to content

Commit 424931f

Browse files
authored
Merge pull request #2855 from skshetry/fix-typo
Fix typos
2 parents 38be142 + 461a79e commit 424931f

File tree

23 files changed

+24
-24
lines changed

23 files changed

+24
-24
lines changed

dvc/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def get_parent_parser():
105105
"""Create instances of a parser containing common arguments shared among
106106
all the commands.
107107
108-
When overwritting `-q` or `-v`, you need to instantiate a new object
108+
When overwriting `-q` or `-v`, you need to instantiate a new object
109109
in order to prevent some weird behavior.
110110
"""
111111
parent_parser = argparse.ArgumentParser(add_help=False)

dvc/command/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def get_fs_type(path):
9393
for parent in itertools.chain([path], path.parents):
9494
if parent in partition:
9595
return partition[parent]
96-
return ("unkown", "none")
96+
return ("unknown", "none")
9797

9898
@staticmethod
9999
def get_linktype_support_info(repo):

dvc/daemon.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def _spawn_windows(cmd, env):
3939

4040
def _spawn_posix(cmd, env):
4141
# NOTE: using os._exit instead of sys.exit, because dvc built
42-
# with PyInstaller has trouble with SystemExit exeption and throws
42+
# with PyInstaller has trouble with SystemExit exception and throws
4343
# errors such as "[26338] Failed to execute script __main__"
4444
try:
4545
pid = os.fork()

dvc/logger.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class ColorFormatter(logging.Formatter):
4949
__ https://pypi.python.org/pypi/colorama
5050
5151
For records containing `exc_info`, it will use a custom `_walk_exc` to
52-
retrieve the whole tracebak.
52+
retrieve the whole traceback.
5353
"""
5454

5555
color_code = {
@@ -154,7 +154,7 @@ def handleError(self, record):
154154
raise LoggingException(record)
155155

156156
def emit(self, record):
157-
"""Write to Tqdm's stream so as to not break progressbars"""
157+
"""Write to Tqdm's stream so as to not break progress-bars"""
158158
try:
159159
msg = self.format(record)
160160
Tqdm.write(

dvc/path_info.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def from_posix(cls, s):
4343
def as_posix(self):
4444
f = self._flavour
4545
# Unlike original implementation [1] that uses `str()` we actually need
46-
# to use `fspath`, because we've overriden `__str__` method to return
46+
# to use `fspath`, because we've overridden `__str__` method to return
4747
# relative paths, which will break original `as_posix`.
4848
#
4949
# [1] https://github.com/python/cpython/blob/v3.7.0/Lib/pathlib.py#L692

dvc/remote/local.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def hardlink(self, from_info, to_info):
183183
# will get something like: `too many links error`
184184
#
185185
# This is because all those empty files will have the same checksum
186-
# (i.e. 68b329da9893e34099c7d8ad5cb9c940), therfore, they will be
186+
# (i.e. 68b329da9893e34099c7d8ad5cb9c940), therefore, they will be
187187
# linked to the same file in the cache.
188188
#
189189
# From https://en.wikipedia.org/wiki/Hard_link

dvc/repo/brancher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def brancher( # noqa: E302
2323
str: the display name for the currently selected tree, it could be:
2424
- a git revision identifier
2525
- empty string it there is no branches to iterate over
26-
- "Working Tree" if there are uncommited changes in the SCM repo
26+
- "Working Tree" if there are uncommitted changes in the SCM repo
2727
"""
2828
if not any([branches, all_branches, tags, all_tags, all_commits]):
2929
yield ""

dvc/repo/diff.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ def _diff_royal(self, target, diff_dct):
220220

221221
@locked
222222
def diff(self, a_ref, target=None, b_ref=None):
223-
"""Gerenates diff message string output
223+
"""Generates diff message string output
224224
225225
Args:
226226
target(str) - file/directory to check diff of

dvc/repo/reproduce.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def _reproduce_stages(
137137
138138
The derived evaluation of D would be: [A, B, C, D]
139139
140-
In case that `downstream` option is specifed, the desired effect
140+
In case that `downstream` option is specified, the desired effect
141141
is to derive the evaluation starting from the given stage up to the
142142
ancestors. However, the `networkx.ancestors` returns a set, without
143143
any guarantee of any order, so we are going to reverse the graph and

dvc/scm/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def is_tracked(self, path): # pylint: disable=no-self-use, unused-argument
104104
return False
105105

106106
def is_dirty(self):
107-
"""Return whether the SCM contains uncommited changes."""
107+
"""Return whether the SCM contains uncommitted changes."""
108108
return False
109109

110110
def active_branch(self): # pylint: disable=no-self-use

0 commit comments

Comments
 (0)