Skip to content

Commit 2c58ed3

Browse files
committed
misc spelling fixes
1 parent 1598e41 commit 2c58ed3

File tree

12 files changed

+36
-36
lines changed

12 files changed

+36
-36
lines changed

.github/workflows/ci-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Continous integration tests
1+
name: Continuous integration tests
22

33
on:
44
push:

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ diff_pydocstyle_report: pydocstyle_report.txt
102102

103103
## codespell : check for common misspellings
104104
codespell:
105-
codespell -w $(shell git ls-files | grep -v mypy-stubs | grep -v gitignore | grep -v EDAM.owl | grep -v pre.yml)
105+
codespell -w $(shell git ls-files | grep -v mypy-stubs | grep -v gitignore | grep -v EDAM.owl | grep -v pre.yml | grep -v test_schema)
106106

107107
## format : check/fix all code indentation and formatting (runs black)
108108
format:
@@ -189,7 +189,7 @@ pyupgrade: $(filter-out schema_salad/metaschema.py,$(PYSOURCES))
189189
pyupgrade --exit-zero-even-if-changed --py36-plus $^
190190

191191
release-test: FORCE
192-
git diff-index --quiet HEAD -- || ( echo You have uncommited changes, please commit them and try again; false )
192+
git diff-index --quiet HEAD -- || ( echo You have uncommitted changes, please commit them and try again; false )
193193
./release-test.sh
194194

195195
release:

schema_salad/codegen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Generate langauge specific loaders for a particular SALAD schema."""
1+
"""Generate language specific loaders for a particular SALAD schema."""
22
import sys
33
from io import TextIOWrapper
44
from typing import (

schema_salad/dotnet/util/Utilities.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
public static class Utilities
44
{
55
/**
6-
* Compute the shortname of a fully qualified identifer.
6+
* Compute the shortname of a fully qualified identifier.
77
* See https://w3id.org/cwl/v1.2/SchemaSalad.html#Short_names.
88
*
99
*/

schema_salad/metaschema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,7 @@ def save_relative_uri(
720720

721721
def shortname(inputid: str) -> str:
722722
"""
723-
Compute the shortname of a fully qualified identifer.
723+
Compute the shortname of a fully qualified identifier.
724724
725725
See https://w3id.org/cwl/v1.2/SchemaSalad.html#Short_names.
726726
"""

schema_salad/metaschema/metaschema.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ $graph:
154154
then finally `#foo`. The first valid URI in the search order shall be
155155
used as the fully resolved value of the identifier. The value of the
156156
refScope field is the specified number of levels from the containing
157-
identifer scope before starting the search, so if `refScope: 2` then
157+
identifier scope before starting the search, so if `refScope: 2` then
158158
"baz" and "bar" must be stripped to get the base `#foo` and search
159159
`#foo/foo` and the `#foo`. The last scope searched must be the top
160160
level scope before determining if the identifier cannot be resolved.

schema_salad/python_codegen.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,8 @@ def prologue(self) -> None:
135135
"""
136136
)
137137

138-
for primative in prims.values():
139-
self.declare_type(primative)
138+
for primitive in prims.values():
139+
self.declare_type(primitive)
140140

141141
def begin_class(
142142
self, # pylint: disable=too-many-arguments

schema_salad/python_codegen_support.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,7 @@ def save_relative_uri(
717717

718718
def shortname(inputid: str) -> str:
719719
"""
720-
Compute the shortname of a fully qualified identifer.
720+
Compute the shortname of a fully qualified identifier.
721721
722722
See https://w3id.org/cwl/v1.2/SchemaSalad.html#Short_names.
723723
"""

schema_salad/ref_resolver.py

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -734,21 +734,21 @@ def _resolve_identifier(
734734
self, document: CommentedMap, loader: "Loader", base_url: str
735735
) -> str:
736736
# Expand identifier field (usually 'id') to resolve scope
737-
for identifer in loader.identifiers:
738-
if identifer in document:
739-
if isinstance(document[identifer], str):
740-
document[identifer] = loader.expand_url(
741-
document[identifer], base_url, scoped_id=True
737+
for identifier in loader.identifiers:
738+
if identifier in document:
739+
if isinstance(document[identifier], str):
740+
document[identifier] = loader.expand_url(
741+
document[identifier], base_url, scoped_id=True
742742
)
743-
if document[identifer] not in loader.idx or isinstance(
744-
loader.idx[document[identifer]], str
743+
if document[identifier] not in loader.idx or isinstance(
744+
loader.idx[document[identifier]], str
745745
):
746-
loader.idx[document[identifer]] = document
747-
base_url = document[identifer]
746+
loader.idx[document[identifier]] = document
747+
base_url = document[identifier]
748748
else:
749749
raise ValidationException(
750750
"identifier field '{}' must be a string".format(
751-
document[identifer]
751+
document[identifier]
752752
)
753753
)
754754
return base_url
@@ -761,17 +761,17 @@ def _resolve_identity(
761761
) -> None:
762762
# Resolve scope for identity fields (fields where the value is the
763763
# identity of a standalone node, such as enum symbols)
764-
for identifer in loader.identity_links:
765-
if identifer in document and isinstance(
766-
document[identifer], MutableSequence
764+
for identifier in loader.identity_links:
765+
if identifier in document and isinstance(
766+
document[identifier], MutableSequence
767767
):
768-
for n, v in enumerate(document[identifer]):
768+
for n, v in enumerate(document[identifier]):
769769
if isinstance(v, str):
770-
document[identifer][n] = loader.expand_url( # type: ignore
770+
document[identifier][n] = loader.expand_url( # type: ignore
771771
v, base_url, scoped_id=True
772772
)
773-
if document[identifer][n] not in loader.idx:
774-
loader.idx[cast(str, document[identifer][n])] = v
773+
if document[identifier][n] not in loader.idx:
774+
loader.idx[cast(str, document[identifier][n])] = v
775775

776776
def _normalize_fields(self, document: CommentedMap, loader: "Loader") -> None:
777777
# Normalize fields which are prefixed or full URIn to vocabulary terms
@@ -877,13 +877,13 @@ def resolve_all(
877877
if newctx is not None:
878878
loader = newctx
879879

880-
for identifer in loader.identity_links:
881-
if identifer in document:
882-
if isinstance(document[identifer], str):
883-
document[identifer] = loader.expand_url(
884-
document[identifer], base_url, scoped_id=True
880+
for identifier in loader.identity_links:
881+
if identifier in document:
882+
if isinstance(document[identifier], str):
883+
document[identifier] = loader.expand_url(
884+
document[identifier], base_url, scoped_id=True
885885
)
886-
loader.idx[document[identifer]] = document
886+
loader.idx[document[identifier]] = document
887887

888888
metadata = document
889889
if "$graph" in document:

schema_salad/tests/metaschema-pre.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@
359359
"null",
360360
"int"
361361
],
362-
"doc": "If the field contains a relative reference, it must be resolved by\nsearching for valid document references in each successive parent scope\nin the document fragment. For example, a reference of `foo` in the\ncontext `#foo/bar/baz` will first check for the existence of\n`#foo/bar/baz/foo`, followed by `#foo/bar/foo`, then `#foo/foo` and\nthen finally `#foo`. The first valid URI in the search order shall be\nused as the fully resolved value of the identifier. The value of the\nrefScope field is the specified number of levels from the containing\nidentifer scope before starting the search, so if `refScope: 2` then\n\"baz\" and \"bar\" must be stripped to get the base `#foo` and search\n`#foo/foo` and the `#foo`. The last scope searched must be the top\nlevel scope before determining if the identifier cannot be resolved.\n"
362+
"doc": "If the field contains a relative reference, it must be resolved by\nsearching for valid document references in each successive parent scope\nin the document fragment. For example, a reference of `foo` in the\ncontext `#foo/bar/baz` will first check for the existence of\n`#foo/bar/baz/foo`, followed by `#foo/bar/foo`, then `#foo/foo` and\nthen finally `#foo`. The first valid URI in the search order shall be\nused as the fully resolved value of the identifier. The value of the\nrefScope field is the specified number of levels from the containing\nidentifier scope before starting the search, so if `refScope: 2` then\n\"baz\" and \"bar\" must be stripped to get the base `#foo` and search\n`#foo/foo` and the `#foo`. The last scope searched must be the top\nlevel scope before determining if the identifier cannot be resolved.\n"
363363
},
364364
{
365365
"name": "https://w3id.org/cwl/salad#JsonldPredicate/typeDSL",

0 commit comments

Comments
 (0)