Apply a few more Ruff rules
- flake8-implicit-str-concat (ISC) - flake8-quotes (Q) - flake8-pie (PIE) - flake8-logging (LOG)
This commit is contained in:
parent
bef0191e12
commit
39df28743b
@ -67,7 +67,7 @@ async def sync_member(user_mod, member: Member):
|
||||
# set a random password and ensure it is changed at next login
|
||||
user.props.password = "".join(
|
||||
random.choice(string.ascii_letters + string.digits)
|
||||
for x in range(0, RAND_PW_LEN)
|
||||
for x in range(RAND_PW_LEN)
|
||||
)
|
||||
user.props.pwdChangeNextLogin = True
|
||||
|
||||
|
@ -60,7 +60,8 @@ admin_email = "cmsmanage.django_q2_admin_email_reporter:AdminEmailReporter"
|
||||
line-length = 88
|
||||
|
||||
[tool.ruff.lint]
|
||||
select = ["E4", "E7", "E9", "F", "I", "C4", "UP", "PERF", "PL", "SIM", "FIX003", "DJ012", "A", "INP"]
|
||||
select = ["E4", "E7", "E9", "F", "I", "C4", "UP", "PERF", "PL", "SIM", "FIX003", "DJ012", "A", "INP", "ISC", "Q", "PIE", "LOG"]
|
||||
ignore = ["ISC001"]
|
||||
|
||||
[tool.ruff.lint.isort]
|
||||
known-first-party = [
|
||||
|
Loading…
Reference in New Issue
Block a user