We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e78eede commit 65a6cc4Copy full SHA for 65a6cc4
.gitlab-ci.yml
@@ -3,7 +3,7 @@ lint:
3
- cvmfs
4
script:
5
- DHI_COMBINE_PYTHON_ONLY=1 source setup.sh
6
- - flake8 dhi --exclude dhi/tasks/postfit.py,dhi/scripts/postfit_plots.py
+ - ./lint.sh
7
8
test:
9
when: manual
lint.sh
@@ -0,0 +1,13 @@
1
+#!/usr/bin/env bash
2
+
+action() {
+ local shell_is_zsh="$( [ -z "${ZSH_VERSION}" ] && echo "false" || echo "true" )"
+ local this_file="$( ${shell_is_zsh} && echo "${(%):-%x}" || echo "${BASH_SOURCE[0]}" )"
+ local this_dir="$( cd "$( dirname "${this_file}" )" && pwd )"
+ (
+ cd "${this_dir}" && \
10
+ flake8 dhi --exclude dhi/tasks/postfit.py,dhi/scripts/postfit_plots.py
11
+ )
12
+}
13
+action "$@"
0 commit comments