Skip to content

Commit

Permalink
format scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
cadnce committed Oct 14, 2022
1 parent d9da922 commit 77bf12a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions poetry_scripts.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import subprocess



def run_cmd(cmd):
subprocess.run(cmd, shell=True, check=True)


def run_tests():
# Install requirements
run_cmd("poetry install")

# Run pre-commit tests
run_cmd("poetry run pre-commit run --all-files")

Expand Down

0 comments on commit 77bf12a

Please sign in to comment.