Skip to content

Commit

Permalink
Improve bash usage in pre_commit.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
ConstantineLignos committed Oct 30, 2023
1 parent f1e6c2c commit b896c1f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/pre_commit.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/env bash
set -euxo pipefail

files='seqscore/ tests/ *.py'
ruff format $files
ruff $files
mypy $files
files=(seqscore/ tests/ *.py)
ruff format "${files[@]}"
ruff "${files[@]}"
mypy "${files[@]}"
pytest --cov-report term-missing --cov=seqscore tests/

0 comments on commit b896c1f

Please sign in to comment.