Skip to content

CI barriers to prevent regression #55

Description

@ali90h

CI barriers to prevent regression

In CI:

Ruff with size and complexity rules enabled as error after Pass B.

pytest -q + ​​goldens

max=500`
viol=$(git ls-files '*.py' | xargs wc -l | awk -v m=$max '$1>m {print}')
[ -z "$viol" ] || { echo "Files over ${max} LOC:"; echo "$viol"; exit 1; }
Any PR that uploads a file above the limit fails.

Barriers in CI to prevent regression

In CI:

ruff with size and complexity rules enabled as error after Pass B.

pytest -q + ​​goldens

max=500`
viol=$(git ls-files '*.py' | xargs wc -l | awk -v m=$max '$1>m {print}')
[ -z "$viol" ] || { echo "Files over ${max} LOC:"; echo "$viol"; exit 1; }
Any PR that uploads a file above the limit fails.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions