mirror of
https://github.com/daylinmorgan/viv.git
synced 2024-12-22 02:30:44 -06:00
build: add seperate session for typechecking
This commit is contained in:
parent
cd0f4d5c95
commit
495ac80cbd
1 changed files with 6 additions and 1 deletions
|
@ -5,7 +5,7 @@ from pathlib import Path
|
|||
|
||||
import nox
|
||||
|
||||
nox.options.sessions = ["lint"]
|
||||
nox.options.sessions = ["lint", "types"]
|
||||
nox.options.reuse_existing_virtualenvs = True
|
||||
os.environ.update({"PDM_IGNORE_SAVED_PYTHON": "1"})
|
||||
|
||||
|
@ -18,6 +18,11 @@ def pdm_install(session, group):
|
|||
def lint(session):
|
||||
pdm_install(session, "dev")
|
||||
session.run("pre-commit", "run")
|
||||
|
||||
|
||||
@nox.session
|
||||
def typecheck(session):
|
||||
pdm_install(session, "dev")
|
||||
session.run("mypy", "src/")
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue