Enable flake8-comprehensions linting rules (#267)

See https://docs.astral.sh/ruff/rules/#flake8-comprehensions-c4.
This commit is contained in:
Marc Wrobel
2023-12-30 10:58:27 +01:00
parent 1bb97fe2b4
commit 54e7091fd2
4 changed files with 4 additions and 4 deletions

View File

@@ -8,7 +8,7 @@ products = {}
count = 0
count_auto = 0
products_dir = sys.argv[1] if len(sys.argv) > 1 else 'website/products/'
for product_file in sorted(list(glob(f'{products_dir}/*.md'))):
for product_file in sorted(glob(f'{products_dir}/*.md')):
with open(product_file) as f:
data = frontmatter.load(f)
count += 1