Skip to content

Commit 958c27a

Browse files
authored
Merge pull request #269 from MalikIdreesHasanKhan/main
Fixed some typos.
2 parents 2559484 + 558ce91 commit 958c27a

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

check50/_api.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ class run:
148148
:type env: dict
149149
150150
By default, the command will be run using the same environment as ``check50``,
151-
these mappings may be overriden via the ``env`` parameter::
151+
these mappings may be overridden via the ``env`` parameter::
152152
153153
check50.run("./foo").stdin("foo").stdout("bar").exit(0)
154154
check50.run("./foo", env={ "HOME": "/" }).stdin("foo").stdout("bar").exit(0)
@@ -475,7 +475,7 @@ def hidden(failure_rationale):
475475
:param failure_rationale: the rationale that will be displayed to the student if the check fails
476476
:type failure_rationale: str
477477
478-
Exaple usage::
478+
Example usage::
479479
480480
@check50.check()
481481
@check50.hidden("Your program isn't returning the expected result. Try running it on some sample inputs.")

check50/c.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def compile(*files, exe_name=None, cc=CC, max_log_lines=50, **cflags):
3535
3636
check50.c.compile("foo.c", "bar.c", lcs50=True) # clang foo.c bar.c -o foo -std=c11 -ggdb -lm -lcs50
3737
38-
In the same vein, the default CFLAGS may be overriden via keyword arguments::
38+
In the same vein, the default CFLAGS may be overridden via keyword arguments::
3939
4040
check50.c.compile("foo.c", "bar.c", std="c99", lm=False) # clang foo.c bar.c -o foo -std=c99 -ggdb
4141
"""

check50/flask.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def content(self, output=None, str_output=None, **kwargs):
123123
raise Failure(_("expected request to return HTML, but it returned {}").format(
124124
self.response.mimetype))
125125

126-
# TODO: Remove once beautiful soup updates to accomodate python 3.7
126+
# TODO: Remove once beautiful soup updates to accommodate python 3.7
127127
with warnings.catch_warnings():
128128
warnings.filterwarnings("ignore", category=DeprecationWarning)
129129
content = BeautifulSoup(self.response.data, "html.parser")

check50/runner.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def check(dependency=None, timeout=60, max_log_lines=100):
9999
This is particularly useful when writing e.g., a ``compiles`` check that compiles a
100100
student's program (and checks that it compiled successfully). Any checks that run the
101101
student's program will logically depend on this check, and since they inherit the
102-
resulting filesystem of the check, they will immidiately have access to the compiled
102+
resulting filesystem of the check, they will immediately have access to the compiled
103103
program without needing to recompile.
104104
105105
Example usage::
@@ -235,7 +235,7 @@ def build_subgraph(self, targets):
235235

236236

237237
def dependencies_of(self, targets):
238-
"""Get all unique dependencies of the targetted checks (tartgets)."""
238+
"""Get all unique dependencies of the targeted checks (tartgets)."""
239239
inverse_graph = self._create_inverse_dependency_graph()
240240
deps = set()
241241
for target in targets:
@@ -283,7 +283,7 @@ def __enter__(self):
283283
self._cd_manager = lib50.cd(internal.run_root_dir)
284284
self._cd_manager.__enter__()
285285

286-
# TODO: Naming the module "checks" is arbitray. Better name?
286+
# TODO: Naming the module "checks" is arbitrary. Better name?
287287
self.checks_spec = importlib.util.spec_from_file_location("checks", self.checks_path)
288288

289289
# Clear check_names, import module, then save check_names. Not thread safe.
@@ -348,7 +348,7 @@ def _store_attributes(self):
348348
in case multiprocessing is using spawn as its starting method.
349349
"""
350350

351-
# Attributes only need to be passed explicitely to child processes when using spawn
351+
# Attributes only need to be passed explicitly to child processes when using spawn
352352
if multiprocessing.get_start_method() != "spawn":
353353
return
354354

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@
2929
"console_scripts": ["check50=check50.__main__:main"]
3030
},
3131
url="https://github.com/cs50/check50",
32-
version="3.3.4",
32+
version="3.3.5",
3333
include_package_data=True
3434
)

tests/runner_tests.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def setUp(self):
3131

3232
# Keep track of get_start_method
3333
# This function gets monkey patched to ensure run_check is aware of the multiprocessing context,
34-
# without needing to explicitely pass the context to run_check.
34+
# without needing to explicitly pass the context to run_check.
3535
# The same behavior can't be achieved by multiprocessing.set_start_method as that can only run once per program
3636
# https://docs.python.org/3/library/multiprocessing.html#contexts-and-start-methods
3737
self._get_start_method = multiprocessing.get_start_method()

0 commit comments

Comments
 (0)