mirror of
https://github.com/daylinmorgan/swydd.git
synced 2024-11-07 01:33:14 -06:00
build: add bootstap task
This commit is contained in:
parent
151ec62d21
commit
2aa643ad79
1 changed files with 12 additions and 0 deletions
12
tasks.py
12
tasks.py
|
@ -2,9 +2,21 @@
|
|||
|
||||
__import__("sys").path.append("src") # noqa
|
||||
|
||||
import shutil
|
||||
import sys
|
||||
|
||||
import swydd as s
|
||||
|
||||
|
||||
@s.task
|
||||
def bootstrap():
|
||||
"""setup swydd dev environment"""
|
||||
if not shutil.which("pdm"):
|
||||
sys.exit("pdm necessary for swydd development")
|
||||
s.sh("pdm install")
|
||||
s.sh("pdm run pre-commit install")
|
||||
|
||||
|
||||
@s.task
|
||||
@s.option("types", "also run mypy")
|
||||
def check(types: bool = False):
|
||||
|
|
Loading…
Reference in a new issue