blob: 72c47ff0555928c86313c987a134c5b9f6b5b0af (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#!/bin/bash -e
#
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
#
# Description:
# Runs source code style checks on Spack.
# See $SPACK_ROOT/.flake8 for a list of
# approved exceptions.
#
# Usage:
# run-flake8-tests
#
. "$(dirname $0)/setup.sh"
BASE=""
if [ -n "$GITHUB_BASE_REF" ]; then
BASE="--base ${GITHUB_BASE_REF}"
fi
# verify that the code style is correct
spack style --root-relative $BASE
# verify that the license headers are present
spack license verify
|