Skip to content

Commit

Permalink
Fix code climate issues in utils/find_unused_rules.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Mab879 committed Jul 1, 2024
1 parent 4f94a57 commit 5d14c90
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions utils/find_unused_rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
3 - rule_dirs.json does not exist.
"""


def _parse_args() -> argparse.Namespace:
parser = argparse.ArgumentParser(description="List rules that are not used in any datastreams."
"Note that script requires that all products "
Expand Down Expand Up @@ -49,9 +50,8 @@ def _get_ds_rules(datastream_files):
def _get_product_count(products_path):
products_count = 0
for product in products_path.iterdir():
if product.is_dir():
if product.name != "example":
products_count += 1
if product.is_dir() and product.name != "example":
products_count += 1
return products_count


Expand Down

0 comments on commit 5d14c90

Please sign in to comment.