From 55268605eb1fd6dbf205141616befc1601cf08fa Mon Sep 17 00:00:00 2001 From: Lucino772 Date: Wed, 4 May 2022 20:07:36 +0200 Subject: [PATCH] chore(nox): added example session --- examples/microsoft_flask/requirements.txt | 20 -------------------- noxfile.py | 8 ++++++++ 2 files changed, 8 insertions(+), 20 deletions(-) diff --git a/examples/microsoft_flask/requirements.txt b/examples/microsoft_flask/requirements.txt index 0f763dd8..ca08a4fc 100644 --- a/examples/microsoft_flask/requirements.txt +++ b/examples/microsoft_flask/requirements.txt @@ -1,22 +1,2 @@ -certifi==2021.5.30 -cffi==1.14.6 -charset-normalizer==2.0.5 -click==8.0.1 -colorama==0.4.4 -cryptography==3.4.8 -decorator==5.1.0 Flask==2.0.1 -idna==3.2 -itsdangerous==2.0.1 -Jinja2==3.0.1 -MarkupSafe==2.0.1 -msal==1.14.0 -pycparser==2.20 -PyJWT==2.1.0 -pymojang==1.3.0 python-dotenv==0.19.0 -requests==2.26.0 -six==1.16.0 -urllib3==1.26.6 -validators==0.18.2 -Werkzeug==2.0.1 diff --git a/noxfile.py b/noxfile.py index f2e78f99..a102f696 100644 --- a/noxfile.py +++ b/noxfile.py @@ -20,3 +20,11 @@ def docs(session: nox.Session): def lint(session: nox.Session): session.install("pre-commit") session.run("pre-commit", "run", *session.posargs) + + +@nox.session +def example(session: nox.Session): + session.install(".") + with session.chdir("examples/microsoft_flask"): + session.install("-r", "requirements.txt") + session.run("python", "app.py")