Enable/apply ruff's "perflint" rules
This commit is contained in:
parent
27974e7de6
commit
3728442680
@ -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"]] = (
|
||||
|
@ -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 = [
|
||||
|
Loading…
Reference in New Issue
Block a user