spack/share/spack/qa/run-style-tests

24 lines
549 B
Plaintext
Raw Normal View History

#!/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)
#
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-08-23 03:35:41 +08:00
# Usage:
# run-flake8-tests
#
. "$(dirname $0)/setup.sh"
# verify that the code style is correct
spack style --root-relative
# verify that the license headers are present
spack license verify