Skip to content

Commit 1070d71

Browse files
Merge pull request #724 from linsword13/pre-commit
Update pre-commit config
2 parents 49beb46 + 24bb3dc commit 1070d71

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ repos:
99
name: short-unit-tests
1010
entry: share/ramble/qa/run-unit-tests
1111
language: system
12-
stages: [push]
12+
stages: [pre-push]
1313

1414
- repo: https://github.com/asottile/pyupgrade
1515
rev: v3.17.0

share/ramble/qa/run-unit-tests

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
#
1313
# Description:
14-
# Runs Spack unit tests.
14+
# Runs Ramble unit tests.
1515
#
1616
# Usage:
1717
# run-unit-tests [test ...]
@@ -33,11 +33,11 @@ if [ $? != 0 ]; then
3333
ERROR=1
3434
fi
3535

36-
# Move to root directory of Spack
36+
# Move to root directory of Ramble
3737
# Allows script to be run from anywhere
3838
cd "$RAMBLE_ROOT"
3939

40-
# Run spack help to cover command import
40+
# Run ramble help to cover command import
4141
bin/ramble -h
4242
if [ $? != 0 ]; then
4343
ERROR=1
@@ -47,9 +47,6 @@ if [ $? != 0 ]; then
4747
ERROR=1
4848
fi
4949

50-
# Profile and print top 20 lines for a simple call to spack spec
51-
#ramble -p --lines 20 spec mpileaks%gcc ^[email protected]
52-
5350
#-----------------------------------------------------------
5451
# Run unit tests with code coverage
5552
#-----------------------------------------------------------

0 commit comments

Comments
 (0)