Remove ci_lint.sh

After the previous commit, it doesn't do much, only passes the linting
exceptions file on the command line. Instead, make the lint.exceptions
file the default for that argument (if it exists), and remove the shell
script.
This commit is contained in:
Philip Chimento 2024-11-04 16:33:45 -08:00 committed by Philip Chimento
parent 7fc86bca6a
commit 0df1565532
4 changed files with 7 additions and 10 deletions

View File

@ -25,4 +25,4 @@ jobs:
run: ./tools/lint/test/run.py run: ./tools/lint/test/run.py
- name: Lint all tests - name: Lint all tests
run: ./tools/scripts/ci_lint.sh run: ./tools/lint/lint.py test/

View File

@ -39,4 +39,4 @@ jobs:
for file in $CHANGED; do for file in $CHANGED; do
echo $file echo $file
done done
./tools/scripts/ci_lint.sh $CHANGED ./tools/lint/lint.py $CHANGED

View File

@ -97,7 +97,11 @@ if __name__ == '__main__':
if args.exceptions: if args.exceptions:
exceptions = lib.exceptions.parse(args.exceptions) exceptions = lib.exceptions.parse(args.exceptions)
else: else:
exceptions = dict() try:
with open('lint.exceptions', 'r') as default_exceptions:
exceptions = lib.exceptions.parse(default_exceptions)
except FileNotFoundError:
exceptions = dict()
files = [path for _path in args.path for path in collect_files(_path)] files = [path for _path in args.path for path in collect_files(_path)]
file_count = len(files) file_count = len(files)

View File

@ -1,7 +0,0 @@
#!/bin/bash
if [ "$#" -eq 0 ]; then
set -- test/
fi
./tools/lint/lint.py --exceptions lint.exceptions $@