diff --git a/Justfile b/Justfile index d4f0898..d1446d1 100644 --- a/Justfile +++ b/Justfile @@ -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 \ @@ -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 @@ -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 . -