diff options
Diffstat (limited to 'tools/check_pycodestyle.py')
-rw-r--r-- | tools/check_pycodestyle.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/check_pycodestyle.py b/tools/check_pycodestyle.py index 6194d7de221b..4517f84f533e 100644 --- a/tools/check_pycodestyle.py +++ b/tools/check_pycodestyle.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # # Arm SCP/MCP Software -# Copyright (c) 2021, Arm Limited and Contributors. All rights reserved. +# Copyright (c) 2021-2022, Arm Limited and Contributors. All rights reserved. # # SPDX-License-Identifier: BSD-3-Clause @@ -13,6 +13,8 @@ This script runs pycodestyle to check all python scripts. import sys import subprocess +INCLUDE_DIRECTORIES = "tools/" + def banner(text): columns = 80 @@ -24,7 +26,7 @@ def main(): banner("Build and run PyCodeStyle tests") result = subprocess.Popen( - "python -m pycodestyle tools/", + "python -m pycodestyle {}".format(INCLUDE_DIRECTORIES), shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE) |