Skip to content

Commit

Permalink
session.install for lint
Browse files Browse the repository at this point in the history
Install current `packaging` and its dependencies during lint.
`nox` depends on `packaging`, by installing `nox` during lint phase,
`packaging` dependencies defined in working branch are overridden by
latest `packaging` release dependencies.
In this case, since the PR changes the constraints on `pyparsing`,
without a `session.install(".")` the incorrect `pyparsing` version will
be installed.
  • Loading branch information
moyiz committed Oct 30, 2021
1 parent 0039779 commit 478d8a0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ def lint(session):
session.install("pre-commit")
session.run("pre-commit", "run", "--all-files")

# Install current package and dependencies
session.install(".")

# Check the distribution
session.install("build", "twine")
session.run("python", "-m", "build")
Expand Down

0 comments on commit 478d8a0

Please sign in to comment.