Skip to content

Commit

Permalink
Disable no more working prospector_config check
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Oct 27, 2023
1 parent 5168f1a commit fa322d0
Showing 1 changed file with 2 additions and 21 deletions.
23 changes: 2 additions & 21 deletions c2cciutils/checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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():
Expand Down

0 comments on commit fa322d0

Please sign in to comment.