mirror of
https://github.com/daylinmorgan/swydd.git
synced 2024-11-07 01:33:14 -06:00
16 lines
234 B
Python
16 lines
234 B
Python
|
#!/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()
|