Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ lint = { cmd = "pre-commit install && pre-commit run --all-files", help = "Insta
build = { cmd = "docker build -t capy-discord .", help = "Builds the application's Docker image." }
run = { cmd = "docker run -it --rm capy-discord", help = "Runs the application inside a new Docker container." }
dev = { cmd = "docker run -it --rm -v ./bot:/app/bot capy-discord", help = "Runs the app in Docker with local code mounted for live changes." }
test = { cmd = "pytest -n auto --ff", help = "Runs all tests, starting with previously failed ones." }
retest = { cmd = "pytest -n auto --lf", help = "Reruns only the tests that failed during the last run." }
test = { cmd = "pytest -n auto --ff || (code=$?; if [ $code -eq 5 ]; then exit 0; else exit $code; fi)", help = "Runs all tests, starting with previously failed ones." }
retest = { cmd = "pytest -n auto --lf || (code=$?; if [ $code -eq 5 ]; then exit 0; else exit $code; fi)", help = "Reruns only the tests that failed during the last run." }
testcov = { cmd = "pytest -n auto --cov=bot --cov-report= && coverage report", help = "Runs tests, generates coverage data, and fails if coverage is below 80%." }
commit = { cmd = "pre-commit install && git add . && git commit -m", help = "Stages all changes and commits with message." }

Expand Down