Skip to content

Run ruff lint #987

@loneil

Description

@loneil

#974 has added ruff format checking. Now that ruff is set up can use it for a lint as well.

Can add documentation, appropriate scripting (manage and actions) for doing a lint stage after format

- name: Lint with ruff
  working-directory: ./oidc-controller
  run: |
    poetry run ruff check .

Can add a [tool.ruff.lint] (and .format if we want) to pyproject for any specific settings we want as defaults for ruff
https://docs.astral.sh/ruff/configuration/

Should run ruff check . locally and determine if any fixes needed (just tried on the branch from the issue above and only see 1 now)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions