prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  stop nox on first error
  During nox is running, if it gets an error, continues running. if we add this: `nox.options.stop_on_first_error = True`, we don't overlook check errors or others before PR.
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `noxfile.py`
  Content:
  ```
  1 import nox
  2 
  3 source_files = ("httpx", "tests", "setup.py", "noxfile.py")
  4 
  5 
  6 @nox.session(reuse_venv=True)
  7 def lint(session):
  8     session.install("autoflake", "black", "flake8", "isort", "seed-isort-config")
  9 
  10     session.run("autoflake", "--in-place", "--recursive", *source_files)
  11     session.run("seed-isort-config", "--application-directories=httpx")
  12     session.run("isort", "--project=httpx", "--recursive", "--apply", *source_files)
  13     session.run("black", "--target-version=py36", *source_files)
  14 
  15     check(session)
  16 
  17 
  18 @nox.session(reuse_venv=True)
  19 def check(session):
  20     session.install(
  21         "black", "flake8", "flake8-bugbear", "flake8-comprehensions", "mypy"
  22     )
  23 
  24     session.run("black", "--check", "--diff", "--target-version=py36", *source_files)
  25     session.run("flake8", *source_files)
  26     session.run("mypy", "httpx")
  27 
  28 
  29 @nox.session(reuse_venv=True)
  30 def docs(session):
  31     session.install("mkdocs", "mkdocs-material")
  32 
  33     session.run("mkdocs", "build")
  34 
  35 
  36 @nox.session(python=["3.6", "3.7", "3.8"])
  37 def test(session):
  38     session.install("-r", "test-requirements.txt")
  39 
  40     session.run("python", "-m", "pytest")
  41
  ```
  --- END FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
golden_diff: diff --git a/noxfile.py b/noxfile.py
  --- a/noxfile.py
  +++ b/noxfile.py
  @@ -1,5 +1,7 @@
   import nox
   
  +nox.options.stop_on_first_error = True
  +
   source_files = ("httpx", "tests", "setup.py", "noxfile.py")
  
verification_info: {"golden_diff": "diff --git a/noxfile.py b/noxfile.py\n--- a/noxfile.py\n+++ b/noxfile.py\n@@ -1,5 +1,7 @@\n import nox\n \n+nox.options.stop_on_first_error = True\n+\n source_files = (\"httpx\", \"tests\", \"setup.py\", \"noxfile.py\")\n", "issue": "stop nox on first error\nDuring nox is running, if it gets an error, continues running. if we add this: `nox.options.stop_on_first_error = True`, we don't overlook check errors or others before PR.\n", "before_files": [{"content": "import nox\n\nsource_files = (\"httpx\", \"tests\", \"setup.py\", \"noxfile.py\")\n\n\n@nox.session(reuse_venv=True)\ndef lint(session):\n    session.install(\"autoflake\", \"black\", \"flake8\", \"isort\", \"seed-isort-config\")\n\n    session.run(\"autoflake\", \"--in-place\", \"--recursive\", *source_files)\n    session.run(\"seed-isort-config\", \"--application-directories=httpx\")\n    session.run(\"isort\", \"--project=httpx\", \"--recursive\", \"--apply\", *source_files)\n    session.run(\"black\", \"--target-version=py36\", *source_files)\n\n    check(session)\n\n\n@nox.session(reuse_venv=True)\ndef check(session):\n    session.install(\n        \"black\", \"flake8\", \"flake8-bugbear\", \"flake8-comprehensions\", \"mypy\"\n    )\n\n    session.run(\"black\", \"--check\", \"--diff\", \"--target-version=py36\", *source_files)\n    session.run(\"flake8\", *source_files)\n    session.run(\"mypy\", \"httpx\")\n\n\n@nox.session(reuse_venv=True)\ndef docs(session):\n    session.install(\"mkdocs\", \"mkdocs-material\")\n\n    session.run(\"mkdocs\", \"build\")\n\n\n@nox.session(python=[\"3.6\", \"3.7\", \"3.8\"])\ndef test(session):\n    session.install(\"-r\", \"test-requirements.txt\")\n\n    session.run(\"python\", \"-m\", \"pytest\")\n", "path": "noxfile.py"}], "after_files": [{"content": "import nox\n\nnox.options.stop_on_first_error = True\n\nsource_files = (\"httpx\", \"tests\", \"setup.py\", \"noxfile.py\")\n\n\n@nox.session(reuse_venv=True)\ndef lint(session):\n    session.install(\"autoflake\", \"black\", \"flake8\", \"isort\", \"seed-isort-config\")\n\n    session.run(\"autoflake\", \"--in-place\", \"--recursive\", *source_files)\n    session.run(\"seed-isort-config\", \"--application-directories=httpx\")\n    session.run(\"isort\", \"--project=httpx\", \"--recursive\", \"--apply\", *source_files)\n    session.run(\"black\", \"--target-version=py36\", *source_files)\n\n    check(session)\n\n\n@nox.session(reuse_venv=True)\ndef check(session):\n    session.install(\n        \"black\", \"flake8\", \"flake8-bugbear\", \"flake8-comprehensions\", \"mypy\"\n    )\n\n    session.run(\"black\", \"--check\", \"--diff\", \"--target-version=py36\", *source_files)\n    session.run(\"flake8\", *source_files)\n    session.run(\"mypy\", \"httpx\")\n\n\n@nox.session(reuse_venv=True)\ndef docs(session):\n    session.install(\"mkdocs\", \"mkdocs-material\")\n\n    session.run(\"mkdocs\", \"build\")\n\n\n@nox.session(python=[\"3.6\", \"3.7\", \"3.8\"])\ndef test(session):\n    session.install(\"-r\", \"test-requirements.txt\")\n\n    session.run(\"python\", \"-m\", \"pytest\")\n", "path": "noxfile.py"}]}