Skip to content

Commit

Permalink
ci: use python3 -m in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
purarue authored Sep 7, 2023
1 parent 4306011 commit 92d8118
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions install
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ ci_config() {
ci_tests() {
echo 'Running tests' | maybe_boxes
ci && unset HPI_TESTS_SEANB
pytest ./tests || return $?
python3 -m pytest ./tests || return $?
}

ci_mypy() {
Expand Down Expand Up @@ -239,7 +239,7 @@ ci_mypy() {
ci_lint() {
pip_install flake8 || return $?
echo 'Linting...' | maybe_boxes
flake8 ./my || return $?
python3 -m flake8 ./my || return $?
}

ci_run() {
Expand Down
6 changes: 3 additions & 3 deletions scripts/lint
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ update_fork() {

main() {
(update_fork) # cd in subshell
pytest "$@" || prompt ''
python3 -m pytest "$@" || prompt ''
echo "Running mypy..."
MY_CONFIG="${BASE_DIR}/tests/my" mypy --install-types --non-interactive --color-output -p my || prompt ''
mypy ~/.config/my/my/config/ || prompt ''
flake8 ./my || prompt ''
python3 -m mypy ~/.config/my/my/config/ || prompt ''
python3 -m flake8 ./my || prompt ''
echo "Running shellcheck..."
shellcheck_scripts
# format everything in the repo
Expand Down

0 comments on commit 92d8118

Please sign in to comment.