diff --git a/check50/_api.py b/check50/_api.py index 7b0b1ec..bb7f2e0 100644 --- a/check50/_api.py +++ b/check50/_api.py @@ -148,7 +148,7 @@ class run: :type env: dict By default, the command will be run using the same environment as ``check50``, - these mappings may be overriden via the ``env`` parameter:: + these mappings may be overridden via the ``env`` parameter:: check50.run("./foo").stdin("foo").stdout("bar").exit(0) check50.run("./foo", env={ "HOME": "/" }).stdin("foo").stdout("bar").exit(0) @@ -475,7 +475,7 @@ def hidden(failure_rationale): :param failure_rationale: the rationale that will be displayed to the student if the check fails :type failure_rationale: str - Exaple usage:: + Example usage:: @check50.check() @check50.hidden("Your program isn't returning the expected result. Try running it on some sample inputs.") diff --git a/check50/c.py b/check50/c.py index 3fd5ca7..d38078f 100644 --- a/check50/c.py +++ b/check50/c.py @@ -35,7 +35,7 @@ def compile(*files, exe_name=None, cc=CC, max_log_lines=50, **cflags): check50.c.compile("foo.c", "bar.c", lcs50=True) # clang foo.c bar.c -o foo -std=c11 -ggdb -lm -lcs50 - In the same vein, the default CFLAGS may be overriden via keyword arguments:: + In the same vein, the default CFLAGS may be overridden via keyword arguments:: check50.c.compile("foo.c", "bar.c", std="c99", lm=False) # clang foo.c bar.c -o foo -std=c99 -ggdb """ diff --git a/check50/flask.py b/check50/flask.py index 3ee266d..13191a4 100644 --- a/check50/flask.py +++ b/check50/flask.py @@ -123,7 +123,7 @@ def content(self, output=None, str_output=None, **kwargs): raise Failure(_("expected request to return HTML, but it returned {}").format( self.response.mimetype)) - # TODO: Remove once beautiful soup updates to accomodate python 3.7 + # TODO: Remove once beautiful soup updates to accommodate python 3.7 with warnings.catch_warnings(): warnings.filterwarnings("ignore", category=DeprecationWarning) content = BeautifulSoup(self.response.data, "html.parser") diff --git a/check50/runner.py b/check50/runner.py index 004378b..0ccf0c8 100644 --- a/check50/runner.py +++ b/check50/runner.py @@ -99,7 +99,7 @@ def check(dependency=None, timeout=60, max_log_lines=100): This is particularly useful when writing e.g., a ``compiles`` check that compiles a student's program (and checks that it compiled successfully). Any checks that run the student's program will logically depend on this check, and since they inherit the - resulting filesystem of the check, they will immidiately have access to the compiled + resulting filesystem of the check, they will immediately have access to the compiled program without needing to recompile. Example usage:: @@ -235,7 +235,7 @@ def build_subgraph(self, targets): def dependencies_of(self, targets): - """Get all unique dependencies of the targetted checks (tartgets).""" + """Get all unique dependencies of the targeted checks (tartgets).""" inverse_graph = self._create_inverse_dependency_graph() deps = set() for target in targets: @@ -283,7 +283,7 @@ def __enter__(self): self._cd_manager = lib50.cd(internal.run_root_dir) self._cd_manager.__enter__() - # TODO: Naming the module "checks" is arbitray. Better name? + # TODO: Naming the module "checks" is arbitrary. Better name? self.checks_spec = importlib.util.spec_from_file_location("checks", self.checks_path) # Clear check_names, import module, then save check_names. Not thread safe. @@ -348,7 +348,7 @@ def _store_attributes(self): in case multiprocessing is using spawn as its starting method. """ - # Attributes only need to be passed explicitely to child processes when using spawn + # Attributes only need to be passed explicitly to child processes when using spawn if multiprocessing.get_start_method() != "spawn": return diff --git a/setup.py b/setup.py index 8fe6233..1ec51a8 100644 --- a/setup.py +++ b/setup.py @@ -29,6 +29,6 @@ "console_scripts": ["check50=check50.__main__:main"] }, url="https://github.com/cs50/check50", - version="3.3.4", + version="3.3.5", include_package_data=True ) diff --git a/tests/runner_tests.py b/tests/runner_tests.py index 83d39b6..a61f0c2 100644 --- a/tests/runner_tests.py +++ b/tests/runner_tests.py @@ -31,7 +31,7 @@ def setUp(self): # Keep track of get_start_method # This function gets monkey patched to ensure run_check is aware of the multiprocessing context, - # without needing to explicitely pass the context to run_check. + # without needing to explicitly pass the context to run_check. # The same behavior can't be achieved by multiprocessing.set_start_method as that can only run once per program # https://docs.python.org/3/library/multiprocessing.html#contexts-and-start-methods self._get_start_method = multiprocessing.get_start_method()