swydd/tasks.py
2024-03-06 00:48:24 -06:00

15 lines
234 B
Python
Executable file

#!/usr/bin/env python3
import swydd as s
@s.task
@s.help(types="also run mypy")
def check(types: bool = False):
"""run pre-commit (and mypy)"""
s.sh("pre-commit run --all")
if types:
s.sh("mypy src/")
s.cli()