Skip to content

C901: functions exceed cyclomatic complexity limit of 10 #76

Description

@endolith

Three functions have cyclomatic complexity 13, exceeding the current lint limit of 10 (configured in ruff.toml):

  • \star()\ in \elsim/methods/star.py:162\ — STAR voting algorithm
  • \simulate_batch()\ in \examples/distributions_by_dispersion.py:40\
  • \simulate_batch()\ in \examples/distributions_by_n_cands.py:40\

Decide whether to refactor to reduce complexity or raise the limit.

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions