Skip to content

Commit

Permalink
Run pre-commit in Nox
Browse files Browse the repository at this point in the history
  • Loading branch information
object-Object committed Nov 5, 2023
1 parent 5b91397 commit bbf13d8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ repos:
rev: v1.1.334
hooks:
- id: pyright
args: ["--warnings"]
4 changes: 2 additions & 2 deletions noxfile.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import nox


@nox.session
@nox.session(reuse_venv=True)
def tests(session: nox.Session):
session.install("-e", ".[test]", "-e", "./test/_submodules/HexMod")

session.run("pyright", "src/hexdoc", "--warnings")
session.run("pre-commit")

# test cookiecutter last so the extra package install doesn't interfere
session.run("pytest", *session.posargs)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@ test = [
"pytest-cookies~=0.7",
"pytest-dependency~=0.5",
"syrupy~=4.6",
"pre-commit",
]
dev = [
"hexdoc[pdoc,test]",
"ruff==0.1.4",
"hatch",
"nox",
"pre-commit",
]

[project.urls]
Expand Down

0 comments on commit bbf13d8

Please sign in to comment.