Skip to content

Commit

Permalink
Make dependencies importable for pylint.
Browse files Browse the repository at this point in the history
  • Loading branch information
ubernostrum committed Jun 10, 2023
1 parent c2a2e32 commit 13fc9d0
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions noxfile.py
Expand Up @@ -288,11 +288,10 @@ def lint_pylint(session: nox.Session) -> None:
Lint code with Pyling.
"""
# Pylint requires that all dependencies be importable during the run. This package
# does not have any direct dependencies, nor does the normal test suite, but the
# full conformance suite does require a few extra libraries, so they're installed
# here.
session.install("pylint", "pylint-django", "confusable_homoglyphs~=3.0")
# Pylint requires that all dependencies be importable during the run, so unlike
# other lint tasks we just install the package.
session.install(".")
session.install("pylint", "pylint-django")
session.run(f"python{session.python}", "-Im", "pylint", "--version")
session.run(f"python{session.python}", "-Im", "pylint", "src/", "tests/")

Expand Down

0 comments on commit 13fc9d0

Please sign in to comment.