Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub Actions: Lint Python code only for SyntaxErrors #94

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

cclauss
Copy link

@cclauss cclauss commented Feb 10, 2025

Just in case Jython ever gets to Python 3...

Turn off 800+ lint rules to only look for Python SyntaxErrors.

capitulos/code/11-pythonic-obj/private/expose.py:9:7:
    SyntaxError: Simple statements must be separated by newlines or semicolons
capitulos/code/11-pythonic-obj/private/leakprivate.py:13:15:
    SyntaxError: Simple statements must be separated by newlines or semicolons
capitulos/code/11-pythonic-obj/private/leakprivate.py:14:15:
    SyntaxError: Simple statements must be separated by newlines or semicolons
capitulos/code/11-pythonic-obj/private/no_respect.py:19:15:
    SyntaxError: Simple statements must be separated by newlines or semicolons

% uv tool run --python=3.12 --from=future futurize --stage1 --write capitulos/code/11-pythonic-obj/private

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant