Skip to content

Commit

Permalink
Add mypy's stubtest to linting
Browse files Browse the repository at this point in the history
Closes #54
  • Loading branch information
brettcannon committed Oct 12, 2023
1 parent 54e08f8 commit f9dc600
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions microvenv/__init__.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from os import PathLike
from os import PathLike, _Environ
from typing import TypedDict

IN_VIRTUAL_ENV: bool
Expand All @@ -13,4 +13,4 @@ class _ActivationEnvVars(TypedDict):
PATH: str
VIRTUAL_ENV: str

def activation(env_vars: dict[str, str] = ...) -> _ActivationEnvVars: ...
def activation(env_vars: _Environ[str] = ...) -> _ActivationEnvVars: ...
2 changes: 2 additions & 0 deletions microvenv/_create.pyi
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
from os import PathLike
from typing import Iterable

DEFAULT_ENV_DIR: str

def create(
env_dir: str | PathLike[str] = ..., *, scm_ignore_files=Iterable[str]
) -> None: ...
Expand Down
1 change: 1 addition & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ def lint(session):
session.run("ruff", "check", ".")
session.run("black", "--check", ".")
session.run("mypy", ".")
session.run("stubtest", "microvenv")


@nox.session
Expand Down

0 comments on commit f9dc600

Please sign in to comment.