Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
hauntsaninja committed Jul 1, 2024
1 parent cb5d124 commit e4568e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion mypy_primer/type_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ async def pip_install(*targets: str) -> None:
# pth file that lets us let mypy import plugins from another venv
# importantly, this puts the plugin paths at the back of sys.path, so they cannot
# clobber mypy or its dependencies
f.write(r"""import os; import sys; exec('''env = os.environ.get("MYPY_PRIMER_PLUGIN_SITE_PACKAGES")\nif env: sys.path.extend(env.split(os.pathsep))''')""")
f.write(
r"""import os; import sys; exec('''env = os.environ.get("MYPY_PRIMER_PLUGIN_SITE_PACKAGES")\nif env: sys.path.extend(env.split(os.pathsep))''')"""
)

mypy_exe = venv.script("mypy")
if sys.platform == "darwin":
Expand Down
2 changes: 1 addition & 1 deletion test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ set -ex

isort --diff --check --quiet .
black --diff --check --quiet .
flake8 --max-line-length=100 --ignore=E203,W503 $(git ls-files | grep "py$")
flake8 --max-line-length=100 --ignore=E203,E501,W503 $(git ls-files | grep "py$")
mypy -p mypy_primer --strict --python-version 3.10
# check we have unique projects
python -c 'from mypy_primer.projects import get_projects; get_projects()'
Expand Down

0 comments on commit e4568e9

Please sign in to comment.