Skip to content

Commit

Permalink
style: spelling and grammar fixes (#682)
Browse files Browse the repository at this point in the history
  • Loading branch information
scop committed Jan 11, 2023
1 parent 6646b24 commit 1d61f82
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docs/config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ The session object

.. module:: nox.sessions

Nox will call your session functions with a an instance of the :class:`Session`
Nox will call your session functions with an instance of the :class:`Session`
class.

.. autoclass:: Session
Expand Down
2 changes: 1 addition & 1 deletion nox/sessions.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def _dblquote_pkg_install_arg(pkg_req_str: str) -> str:
# sanity check: we need an even number of double-quotes
if pkg_req_str.count('"') % 2 != 0:
raise ValueError(
f"ill-formated argument with odd number of quotes: {pkg_req_str}"
f"ill-formatted argument with odd number of quotes: {pkg_req_str}"
)

if "<" in pkg_req_str or ">" in pkg_req_str:
Expand Down
2 changes: 1 addition & 1 deletion nox/virtualenv.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def __init__(self, interpreter: str) -> None:


class ProcessEnv:
"""A environment with a 'bin' directory and a set of 'env' vars."""
"""An environment with a 'bin' directory and a set of 'env' vars."""

location: str

Expand Down
2 changes: 1 addition & 1 deletion nox/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def execute(
args.append(return_value)
return_value = function_(*args, global_config=global_config)

# If we got a integer value as a result, abort task processing
# If we got an integer value as a result, abort task processing
# and return it.
if isinstance(return_value, int):
return return_value
Expand Down
6 changes: 3 additions & 3 deletions tests/test__option_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def test_namespace(self):
namespace = optionset.namespace()

assert hasattr(namespace, "option_a")
assert not hasattr(namespace, "non_existant_option")
assert not hasattr(namespace, "non_existent_option")
assert namespace.option_a == "meep"

def test_namespace_values(self):
Expand All @@ -56,11 +56,11 @@ def test_namespace_values(self):

assert namespace.option_a == "moop"

def test_namespace_non_existant_options_with_values(self):
def test_namespace_non_existent_options_with_values(self):
optionset = _option_set.OptionSet()

with pytest.raises(KeyError):
optionset.namespace(non_existant_option="meep")
optionset.namespace(non_existent_option="meep")

def test_parser_hidden_option(self):
optionset = _option_set.OptionSet()
Expand Down
4 changes: 2 additions & 2 deletions tests/test_virtualenv.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def test_condaenv_create(make_conda):
venv.create()
assert not dir_.join("test.txt").check()

# Test running create on an existing environment with reuse_exising
# Test running create on an existing environment with reuse_existing
# enabled, it should not be deleted.
dir_.ensure("test.txt")
assert dir_.join("test.txt").check()
Expand Down Expand Up @@ -346,7 +346,7 @@ def test_create(monkeypatch, make_one):
venv.create()
assert not dir_.join("test.txt").check()

# Test running create on an existing environment with reuse_exising
# Test running create on an existing environment with reuse_existing
# enabled, it should not be deleted.
dir_.ensure("test.txt")
assert dir_.join("test.txt").check()
Expand Down

0 comments on commit 1d61f82

Please sign in to comment.