Skip to content

Custom Sessions

Count lines of code with pygount

@nox.session(name="count-loc")
def count_lines_of_code(session: nox.Session):
    session.install("pygount")
    
    log.info("Counting lines of code with pygount")
    session.run("pygount", "--format=summary", "./")
Last updated on