-
Notifications
You must be signed in to change notification settings - Fork 245
codespell: Avoid project-level ignore words if possible #4691
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -210,7 +210,7 @@ def data_attrs(self) -> Mapping[str, Any]: | |
| GridFormat.NS, | ||
| GridFormat.NI, | ||
| GridFormat.NF, | ||
| GridFormat.ND, | ||
| GridFormat.ND, # codespell:ignore | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The codespell syntax for inline igore (xref: https://github.com/codespell-project/codespell#inline-ignore). |
||
| }: # Set attributes specific to CF-1.7 conventions | ||
| attrs["Conventions"] = "CF-1.7" | ||
| attrs["title"] = self.title.decode() | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -31,7 +31,7 @@ class GridFormat(IntEnum): | |
| NS = 16 #: GMT netCDF format (16-bit integer) | ||
| NI = 17 #: GMT netCDF format (32-bit integer) | ||
| NF = 18 #: GMT netCDF format (32-bit float) | ||
| ND = 19 #: GMT netCDF format (64-bit float) | ||
| ND = 19 #: GMT netCDF format (64-bit float) # codespell:ignore | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The codespell syntax for inline igore (xref: https://github.com/codespell-project/codespell#inline-ignore). |
||
| SD = 20 #: Golden Software Surfer format 7 (64-bit float, read-only) | ||
| AF = 21 #: Atlantic Geoscience Center format AGC (32-bit float) | ||
| GD = 22 #: Import through GDAL | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -126,7 +126,7 @@ | |
| or (m)\ **e**\ (ters), **f**\ (eet), **k**\ (ilometers), | ||
| **M**\ (iles), or **n**\ (autical miles) [Default is (m)\ **e**\ (ters)]. | ||
| - For projected data (**X**\|\ **Y**\|\ **D**), the unit may be | ||
| **i**\ (nches), **c**\ (entimeters), or **p**\ (oints). | ||
| **i** (inches), **c** (centimeters), or **p** (points). | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We will likely get more false positives if we keep using the syntax like |
||
| Append modifier **+a** to specify that *all* the criteria must be | ||
| met [default imposes breaks if any one criterion is met]. | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -71,7 +71,7 @@ local_scheme = "node-and-date" | |
| fallback_version = "999.999.999+unknown" | ||
|
|
||
| [tool.codespell] | ||
| ignore-words-list = "astroid,buda,oints,reenable,te,tripel,trough,ND" | ||
| ignore-words-list = "astroid,te,tripel,trough" | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We can't use the inline ignore syntax ( |
||
|
|
||
| [tool.coverage.run] | ||
| omit = ["*/tests/*", "*pygmt/__init__.py"] | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any CPT can be used in this file. Choose
SCM/hawaiiso thatcodespelldoesn't reportbuda.