2017-04-28 02:47:56 +08:00
|
|
|
#!/bin/bash -e
|
2018-10-08 04:52:23 +08:00
|
|
|
#
|
2021-01-02 15:10:28 +08:00
|
|
|
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
|
2018-10-08 04:52:23 +08:00
|
|
|
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
|
|
|
|
2016-05-11 17:01:24 +08:00
|
|
|
#
|
2016-08-23 03:35:41 +08:00
|
|
|
# Description:
|
|
|
|
# Runs source code style checks on Spack.
|
|
|
|
# See $SPACK_ROOT/.flake8 for a list of
|
|
|
|
# approved exceptions.
|
2016-05-11 17:01:24 +08:00
|
|
|
#
|
2016-08-23 03:35:41 +08:00
|
|
|
# Usage:
|
|
|
|
# run-flake8-tests
|
|
|
|
#
|
2017-04-28 02:47:56 +08:00
|
|
|
. "$(dirname $0)/setup.sh"
|
2016-05-11 17:01:24 +08:00
|
|
|
|
2018-10-08 12:59:04 +08:00
|
|
|
# verify that the code style is correct
|
2021-07-04 16:53:02 +08:00
|
|
|
spack style --root-relative
|
2018-10-08 12:59:04 +08:00
|
|
|
|
|
|
|
# verify that the license headers are present
|
|
|
|
spack license verify
|