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

[RFC] scripts: ci: check_compliance: Add python lint/format check #81070

Merged
merged 4 commits into from
Nov 19, 2024

Commits on Nov 18, 2024

  1. scripts: ci: check_compliance: Add support for end line and column

    Reporting or annotating issues can be done on a range rather than a
    single line.
    
    Add support for end line and end column.
    
    Signed-off-by: Pieter De Gendt <[email protected]>
    pdgendt committed Nov 18, 2024
    Configuration menu
    Copy the full SHA
    dd96a9b View commit details
    Browse the repository at this point in the history
  2. scripts: Add helper scripts for ruff baseline excludes

    Add simple scripts to convert ruff check and ruff format output to
    toml exclude sections.
    
    These sections can be used to ignore baseline violations for an existing
    codebase.
    
    Signed-off-by: Pieter De Gendt <[email protected]>
    pdgendt committed Nov 18, 2024
    Configuration menu
    Copy the full SHA
    3f3ed26 View commit details
    Browse the repository at this point in the history
  3. scripts: ci: Add ruff configuration files

    Add a baseline toml file for current rule violations, and a default
    configuration file.
    
    Signed-off-by: Pieter De Gendt <[email protected]>
    pdgendt committed Nov 18, 2024
    Configuration menu
    Copy the full SHA
    8b433ba View commit details
    Browse the repository at this point in the history
  4. scripts: ci: check_compliance: Add python lint/format check

    Add a compliance test using ruff, for both linting and formatting of
    newly added python files.
    
    Signed-off-by: Pieter De Gendt <[email protected]>
    pdgendt committed Nov 18, 2024
    Configuration menu
    Copy the full SHA
    264f4a4 View commit details
    Browse the repository at this point in the history