Enable/apply ruff's "perflint" rules

This commit is contained in:
Adam Goldsmith 2024-01-18 13:48:06 -05:00
parent 27974e7de6
commit 3728442680
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ def scrape_members(membershipworks: MembershipWorks):
logger.info("Getting/Updating members...")
members = membershipworks.get_all_members()
for csv_member in members:
for field_id, field in membershipworks._all_fields().items():
for field in membershipworks._all_fields().values():
# convert checkboxes to real booleans
if field.get("typ") == 8 and field["lbl"] in csv_member:
csv_member[field["lbl"]] = (

View File

@ -43,7 +43,7 @@ admin_email = "cmsmanage.django_q2_admin_email_reporter:AdminEmailReporter"
[tool.ruff]
line-length = 88
select = ["E4", "E7", "E9", "F", "I", "C4", "UP"]
select = ["E4", "E7", "E9", "F", "I", "C4", "UP", "PERF"]
[tool.ruff.lint.isort]
known-first-party = [