pythonfluente2e
pythonfluente2e copied to clipboard
GitHub Actions: Lint Python code only for SyntaxErrors
Just in case Jython ever gets to Python 3...
- https://github.com/jython/jython/tree/main --
main(not defaultmaster) 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