diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 51d12db..511656c 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -24,7 +24,7 @@ jobs: - name: seed the database run: pipenv run invoke dbseed - name: format - run: pipenv run invoke fmt + run: pipenv run invoke fmtcheck - name: lint run: pipenv run invoke lint - name: check types diff --git a/tasks.py b/tasks.py index 27a75ea..c3ae647 100644 --- a/tasks.py +++ b/tasks.py @@ -32,6 +32,11 @@ def fmt(c): c.run("mdformat README.md") c.run("mdformat doc") +@task +def fmtcheck(c): + """Checks if the code is formatted properly.""" + c.run("black --check .") + @task def lint(c):