Skip to content

Commit

Permalink
Add comments to Justfile
Browse files Browse the repository at this point in the history
  • Loading branch information
jstrieb committed Dec 25, 2023
1 parent e81e3e6 commit 30f119b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Justfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
REQUIRED_COVERAGE := "100"

# Run all tests, and check coverage
test cores="auto":
python3 -m pytest \
-n {{cores}} \
-n {{ cores }} \
--failed-first \
--color yes \
--cov-config .coveragerc \
Expand All @@ -13,6 +14,7 @@ test cores="auto":
--show-missing \
--fail-under {{ REQUIRED_COVERAGE }}

# Test until the first failure
first-fail:
python3 -m pytest -v --failed-first -x test/test.py

Expand All @@ -23,8 +25,8 @@ lint-python:
mypy test/ just_sh/
ruff check --fix .

# Fail if linting is required
check:
black --check --diff --color .
mypy test/ just_sh/
ruff check .

0 comments on commit 30f119b

Please sign in to comment.