Skip to content

Commit 8c7c2be

Browse files
committed
Explicitly specify shellcheck directives to ignore a (non-available) source file
1 parent 12e405d commit 8c7c2be

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/shellcheck.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,3 @@ jobs:
77
- uses: actions/checkout@v4
88
- name: Run ShellCheck
99
uses: ludeeus/action-shellcheck@master
10-
env:
11-
SHELLCHECK_OPTS: -x

scripts/setup_venv.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
# This script sets up the python environment if it doesn't exist yet.
44
# It should be sourced (i.e. called with "source scripts/setup_venv.sh")
55
# so that the python environment will be available in the calling shell.
66

77
if [ -d "venv" ]; then
8+
# shellcheck source=/dev/null
89
source venv/bin/activate
910
else
1011
# Create a venv and activate it
1112
python3 -m venv venv
13+
# shellcheck source=/dev/null
1214
source venv/bin/activate
1315
# Install dependencies from PyPi
1416
pip3 install -r requirements.txt

0 commit comments

Comments
 (0)