diff --git a/runners/s3-benchrunner-c/scripts/lint.py b/runners/s3-benchrunner-c/scripts/lint.py index 15eb6d17..14d30646 100755 --- a/runners/s3-benchrunner-c/scripts/lint.py +++ b/runners/s3-benchrunner-c/scripts/lint.py @@ -5,15 +5,12 @@ PARSER = argparse.ArgumentParser(description="Check formatting") -GLOB_PATTERNS = [ - '*.cpp', - '*.h', -] - if __name__ == '__main__': + args = PARSER.parse_args() + runner_dir = Path(__file__).parent.parent files: list[str] = [] - for pattern in GLOB_PATTERNS: + for pattern in ['*.cpp', '*.h']: for i in runner_dir.glob(pattern): files.append(str(i))