Skip to content

Commit 67c2168

Browse files
committed
Add script to install and run shellcheck and tweak shellcheckrc
Run a script to install and run pre-commit in a python3 virtual environment and tweak shellcheckrc to allow the venv activation source as part of the script. shellcheck...............................................................Passed
1 parent 1759785 commit 67c2168

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.shellcheckrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# shellcheck
22
# allow for non-alphanumeric filenames
33
disable=SC2038
4+
external-sources=true

scripts/install_run_precommit.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/env bash
2+
3+
python3 -m venv .venv
4+
5+
. .venv/bin/activate && python3 -m pip install --upgrade pip setuptools wheel
6+
. .venv/bin/activate && python3 -m pip install pip-tools
7+
. .venv/bin/activate && python3 -m piptools sync requirements.txt
8+
. .venv/bin/activate && python3 -m piptools sync requirements-dev.txt
9+
. .venv/bin/activate && pre-commit run -a

0 commit comments

Comments
 (0)