aspect-build / aspect-workflows-template

Scaffolding for new Aspect workspace
1 stars 1 forks source link

Configure ruff formatting for Python projects #73

Closed jab closed 1 month ago

jab commented 1 month ago

Projects generated with support for Python and linting+formatting are now configured to format Python code out-of-the-box.


Changes are visible to end-users: yes

Test plan

  1. Generate a project opting into Python + formatting
  2. echo "'foo'" > foo.py
  3. git init && git add .
  4. bazel run //tools/format:format
    • output should include Formatted Python in 0m0.XYZs
    • git diff should show that the single quotes in foo.py were changed to double quotes