Skip to content

Commit f42da43

Browse files
seismanleouieda
authored andcommitted
Fix typos in comments and docstrings (#302)
1 parent 8889966 commit f42da43

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

.pylintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ confidence=
4545
# can either give multiple identifiers separated by comma (,) or put this
4646
# option multiple times (only on the command line, not in the configuration
4747
# file where it should appear only once).You can also use "--disable=all" to
48-
# disable everything first and then reenable specific checks. For example, if
48+
# disable everything first and then re-enable specific checks. For example, if
4949
# you want to run only the similarities checker, you can use "--disable=all
5050
# --enable=similarities". If you want to run only the classes checker, but have
5151
# no Warning level messages displayed, use"--disable=all --enable=classes

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# We use miniconda for Python so don't need any Python specific tools
44
language: generic
55

6-
# Use the container builds so we don't need sudo priviledges
6+
# Use the container builds so we don't need sudo privileges
77
sudo: false
88

99
cache:

pygmt/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ def git_pieces_from_vcs(tag_prefix, root, verbose, run_command=run_command):
293293
# TAG-NUM-gHEX
294294
mo = re.search(r"^(.+)-(\d+)-g([0-9a-f]+)$", git_describe)
295295
if not mo:
296-
# unparseable. Maybe git-describe is misbehaving?
296+
# unparsable. Maybe git-describe is misbehaving?
297297
pieces["error"] = "unable to parse git-describe output: '%s'" % describe_out
298298
return pieces
299299

pygmt/base_plotting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def grdcontour(self, grid, **kwargs):
171171
- Specify a fixed annotation interval ``annot_int`` or a
172172
single annotation level ``+[annot_int]``
173173
- Disable all annotation with ``'-'``
174-
- Optional label modifers can be specifed as a single string
174+
- Optional label modifiers can be specified as a single string
175175
``'[annot_int]+e'`` or with a list of options
176176
``([annot_int], 'e', 'f10p', 'gred')``.
177177
L : str or list of 2 ints

pygmt/datasets/earth_relief.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def load_earth_relief(resolution="60m"):
4343
grid.attrs["units"] = "meters"
4444
grid.attrs["vertical_datum"] = "EMG96"
4545
grid.attrs["horizontal_datum"] = "WGS84"
46-
# Remove the actual range because it get's outdated when indexing the grid, which
46+
# Remove the actual range because it gets outdated when indexing the grid, which
4747
# causes problems when exporting it to netCDF for usage on the command-line.
4848
grid.attrs.pop("actual_range")
4949
for coord in grid.coords:

pygmt/helpers/decorators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def fmt_docstring(module_func):
125125
filler_text["aliases"] = "\n".join(aliases)
126126

127127
for marker, text in COMMON_OPTIONS.items():
128-
# Remove the identation from the multiline strings so that it doesn't
128+
# Remove the indentation from the multiline strings so that it doesn't
129129
# mess up the original docstring
130130
filler_text[marker] = textwrap.dedent(text)
131131

versioneer.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@
180180
`setup.cfg`, and `tox.ini`. Projects like these produce multiple PyPI
181181
distributions (and upload multiple independently-installable tarballs).
182182
* Source trees whose main purpose is to contain a C library, but which also
183-
provide bindings to Python (and perhaps other langauges) in subdirectories.
183+
provide bindings to Python (and perhaps other languages) in subdirectories.
184184
185185
Versioneer will look for `.git` in parent directories, and most operations
186186
should get the right version string. However `pip` and `setuptools` have bugs
@@ -688,7 +688,7 @@ def git_pieces_from_vcs(tag_prefix, root, verbose, run_command=run_command):
688688
# TAG-NUM-gHEX
689689
mo = re.search(r'^(.+)-(\d+)-g([0-9a-f]+)$', git_describe)
690690
if not mo:
691-
# unparseable. Maybe git-describe is misbehaving?
691+
# unparsable. Maybe git-describe is misbehaving?
692692
pieces["error"] = ("unable to parse git-describe output: '%%s'"
693693
%% describe_out)
694694
return pieces
@@ -1080,7 +1080,7 @@ def git_pieces_from_vcs(tag_prefix, root, verbose, run_command=run_command):
10801080
# TAG-NUM-gHEX
10811081
mo = re.search(r'^(.+)-(\d+)-g([0-9a-f]+)$', git_describe)
10821082
if not mo:
1083-
# unparseable. Maybe git-describe is misbehaving?
1083+
# unparsable. Maybe git-describe is misbehaving?
10841084
pieces["error"] = ("unable to parse git-describe output: '%s'"
10851085
% describe_out)
10861086
return pieces

0 commit comments

Comments
 (0)