Skip to content

Instantly share code, notes, and snippets.

@mebibou
Created April 12, 2026 09:19
Show Gist options
  • Select an option

  • Save mebibou/daafb9243e1c3d3ba0ac1493aadbadb0 to your computer and use it in GitHub Desktop.

Select an option

Save mebibou/daafb9243e1c3d3ba0ac1493aadbadb0 to your computer and use it in GitHub Desktop.
refactor_non_clean_code.py
_COMPLIANCE_XXX_MAX_AMOUNT = 10000
def _check_compliance_xxx_transaction():
is_non_compliant = (
transaction.amount > _COMPLIANCE_XXX_MAX_AMOUNT and
not transaction.flagged
)
is_non_compliant and transaction.hold()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment