pythonfluente2e icon indicating copy to clipboard operation
pythonfluente2e copied to clipboard

GitHub Actions: Lint Python code only for SyntaxErrors

Open cclauss opened this issue 10 months ago • 0 comments

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

  • https://github.com/jython/jython/tree/main -- main (not default master) branch are the Python 3 efforts.

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

  • https://docs.astral.sh/ruff
  • Test results: https://github.com/cclauss/pythonfluente2e/actions
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

cclauss avatar Feb 10 '25 09:02 cclauss