diff --git a/c2cciutils/checks.py b/c2cciutils/checks.py index 3fcdec33d..fa41ed9c7 100644 --- a/c2cciutils/checks.py +++ b/c2cciutils/checks.py @@ -206,26 +206,7 @@ def prospector_config( args: The parsed command arguments """ del full_config, args - success = True - - # If there is no python file the check is disabled - for filename in ( - subprocess.check_output(["git", "ls-files", ".prospector.yaml"]).decode().strip().split("\n") - ): - if filename: - with open(filename, encoding="utf-8") as prospector_file: - properties: CommentedMap = ruamel.yaml.round_trip_load(prospector_file) - success &= _check_properties( - "prospector_config", - filename, - "", - properties, - config.get( - "properties", c2cciutils.configuration.PROSPECTOR_CONFIGURATION_PROPERTIES_DEFAULT - ), - ) - - return success + return True def editorconfig( @@ -245,7 +226,7 @@ def editorconfig( full_config: All the CI config args: The parsed command arguments """ - del full_config, args + del config, full_config, args success = True for pattern, wanted_properties in config.get("properties", {}).items():