Uploaded image for project: 'Red Hat OpenStack Services on OpenShift'
  1. Red Hat OpenStack Services on OpenShift
  2. OSPRH-26037

Adoption: Single command to run pre-commit tests locally

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • None
    • None
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • Not Selected
    • rhos-ops-day1day2-upgrades

      Goal: 

      • Currently running pre-commit tests locally isn't very straightforward, it's a chain of multiple commands and can pollute user's pip directory. It makes it difficult for AI agents to run those too.
      • Make it a single command to run pre-commit tests (lints) and use a virtualenv for pre-commit installation.

      Acceptance Criteria:

      • Pre-commit tests can be run by "make lint". If there is setup needed first (installing pre-commit), it is automatically detected within the command and executed.
      • Dependencies are installed into a virtualenv. (Not user's or system python packages.)
      • Amend AGENTS.md file with the info to run "make lint" after making changes.
      • Recommended but can be dropped in case of hurdles: Update CI config to run the make target instead of using the pre-config Github action? (2nd thought: we should probably split off another story for the CI edit.)

              Unassigned Unassigned
              jstransk@redhat.com Jiri Stransky
              rhos-dfg-upgrades
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: