Apply Ruff's flake8-raise (RSE) rules
This commit is contained in:
parent
39df28743b
commit
e348e8fbf5
@ -112,7 +112,7 @@ class MembershipWorks:
|
||||
def _inject_auth(self, kwargs):
|
||||
# TODO: should probably be a decorator or something
|
||||
if self.auth_token is None:
|
||||
raise NotAuthenticatedError()
|
||||
raise NotAuthenticatedError
|
||||
# add auth token to params
|
||||
if "params" not in kwargs:
|
||||
kwargs["params"] = {}
|
||||
@ -135,7 +135,7 @@ class MembershipWorks:
|
||||
in all.js.
|
||||
"""
|
||||
if not self.org_info:
|
||||
raise NotAuthenticatedError()
|
||||
raise NotAuthenticatedError
|
||||
fields = staticFlags.copy()
|
||||
|
||||
# TODO: this will take the later option, if the same field
|
||||
@ -159,7 +159,7 @@ class MembershipWorks:
|
||||
This is terrible, and there might be a better way to do this.
|
||||
"""
|
||||
if not self.org_info:
|
||||
raise NotAuthenticatedError()
|
||||
raise NotAuthenticatedError
|
||||
ret: dict[str, Any] = {"folders": {}, "levels": {}, "addons": {}, "labels": {}}
|
||||
|
||||
for dek in self.org_info["dek"]:
|
||||
|
@ -60,7 +60,27 @@ 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", "ISC", "Q", "PIE", "LOG"]
|
||||
select = [
|
||||
"E4",
|
||||
"E7",
|
||||
"E9",
|
||||
"F",
|
||||
"I",
|
||||
"C4",
|
||||
"UP",
|
||||
"PERF",
|
||||
"PL",
|
||||
"SIM",
|
||||
"FIX003",
|
||||
"DJ012",
|
||||
"A",
|
||||
"INP",
|
||||
"ISC",
|
||||
"Q",
|
||||
"PIE",
|
||||
"LOG",
|
||||
"RSE",
|
||||
]
|
||||
ignore = ["ISC001"]
|
||||
|
||||
[tool.ruff.lint.isort]
|
||||
|
Loading…
Reference in New Issue
Block a user