Ignore EOF blank line check
This commit is contained in:
@@ -24,12 +24,7 @@ jobs:
|
||||
# parse it, and prepends the `from sage.all import *` that `sage`
|
||||
# normally injects at runtime, so Sage's globals (ZZ, var, matrix, ...)
|
||||
# resolve instead of looking like undefined names.
|
||||
run: |
|
||||
set -e
|
||||
for f in $(find . -name "*.sage" -not -path "./playground/*"); do
|
||||
sage --preparse "$f"
|
||||
printf 'from sage.all import * # noqa: F401,F403\n%s\n' "$(cat "${f}.py")" > "${f}.py"
|
||||
done
|
||||
run: .gitea/preparse.sh
|
||||
|
||||
- name: ruff check
|
||||
# --no-respect-gitignore: *.sage.py is gitignored (it's generated, see
|
||||
|
||||
Reference in New Issue
Block a user