Skip to content

Commit

Permalink
Include extras appropriately
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanIsCoding committed Sep 12, 2023
1 parent 8a6109a commit 7290689
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@
"stestr",
]

extras = [
"mpl",
"graphviz",
]

lint_deps = [
"black~=22.0",
"flake8",
Expand All @@ -27,14 +22,14 @@
@nox.session(python=["3"])
def test(session):
session.install(*deps)
session.install(".", "-c", "constraints.txt")
session.install(".[all]", "-c", "constraints.txt")
session.chdir("tests")
session.run("python", "-m", "stestr", "run", *session.posargs)

@nox.session(python=["3"])
def lint(session):
session.install(*deps)
session.install(".", "-c", "constraints.txt")
session.install(".[all]", "-c", "constraints.txt")
session.install(*lint_deps)
session.run("black", "--check", "--diff", "rustworkx", "tests", "retworkx", *session.posargs)
session.run("flake8p", "--per-file-ignores='rustworkx/__init__.py':F405,F403", "setup.py", "rustworkx", "retworkx")
Expand All @@ -44,7 +39,7 @@ def lint(session):
@nox.session(python=["3"])
def docs(session):
session.install(*deps)
session.install(".", "-c", "constraints.txt")
session.install(".[all]", "-c", "constraints.txt")
session.install("-r", "docs/source/requirements.txt", "-c", "constraints.txt")
session.run("python", "-m", "ipykernel", "install", "--user")
session.run("jupyter", "kernelspec", "list")
Expand All @@ -59,7 +54,7 @@ def black(session):
@nox.session(python=["3"])
def stubs(session):
session.install(*deps)
session.install(".", "-c", "constraints.txt")
session.install(".[all]", "-c", "constraints.txt")
session.install("mypy==1.0.1")
session.chdir("tests")
session.run("python", "-m", "mypy.stubtest", "--concise", "--ignore-missing-stub", "rustworkx.rustworkx")

0 comments on commit 7290689

Please sign in to comment.