Saturday, 25 January 2020

How to use nox with poetry?

I want to use nox in my project managed with poetry.

What is not going well is that installing dev dependency in nox session.

I have the noxfile.py as shown below:

import nox
from nox.sessions import Session
from pathlib import Path

__dir__ = Path(__file__).parent.absolute()


@nox.session(python=PYTHON)
def test(session: Session):
    session.install(str(__dir__))  # I want to use dev dependency here
    session.run("pytest")

How can I install dev dependency in nox session?



from How to use nox with poetry?

1 comment:

  1. Do this hack to drop 2 lbs of fat in 8 hours

    More than 160000 women and men are utilizing a easy and SECRET "liquids hack" to lose 1-2lbs every night in their sleep.

    It is painless and it works with anybody.

    Here are the easy steps for this hack:

    1) Go grab a clear glass and fill it half glass

    2) Proceed to learn this weight loss hack

    so you'll become 1-2lbs thinner in the morning!

    ReplyDelete