From 9b718c4745dceba08ba1a3a7302aeea0240b46dc Mon Sep 17 00:00:00 2001 From: Josie Fegan Date: Mon, 22 Jun 2026 12:05:35 +0100 Subject: [PATCH] Add Ruff to our test bundle. In theory Ruff should be able to replace some of our other steps, like flake8 and black. But for now let's leave everything in until we see it in action. --- runtests.sh | 3 ++- test-requirements.txt | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/runtests.sh b/runtests.sh index 17f31a4..c94aa87 100755 --- a/runtests.sh +++ b/runtests.sh @@ -1,6 +1,6 @@ #!/bin/bash # -# (c) Copyright 2019-2022 Hewlett Packard Enterprise Development LP +# (c) Copyright 2019-2026 Hewlett Packard Enterprise Development LP # # runtests.sh # This script runs the actual test commands and assumes that the required @@ -26,6 +26,7 @@ if [ -n "$windowsnewlines" ]; then echo 'Windows newlines are not allowed in Python sources in this repo' >&2 exit 1 fi +ruff check black --check opsramp samples setup.py tests yamllint . flake8 . diff --git a/test-requirements.txt b/test-requirements.txt index 561b15e..f278c0c 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1,4 +1,4 @@ -# (c) Copyright 2019-2022 Hewlett Packard Enterprise Development LP +# (c) Copyright 2019-2026 Hewlett Packard Enterprise Development LP # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -19,4 +19,5 @@ flake8-import-order mock pytest requests_mock +ruff yamllint