Skip to content

Commit 08f6449

Browse files
[pre-commit.ci] pre-commit autoupdate (#2191)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/Yelp/detect-secrets: v1.4.0 → v1.5.0](Yelp/detect-secrets@v1.4.0...v1.5.0) - [github.com/astral-sh/ruff-pre-commit: v0.4.1 → v0.4.8](astral-sh/ruff-pre-commit@v0.4.1...v0.4.8) - [github.com/rhysd/actionlint: v1.6.27 → v1.7.1](rhysd/actionlint@v1.6.27...v1.7.1) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Address pre-commit failures --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Tobias Macey <[email protected]>
1 parent 637328a commit 08f6449

File tree

7 files changed

+34
-33
lines changed

7 files changed

+34
-33
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ repos:
2323
- id: yamllint
2424
args: [--format, parsable, -d, relaxed]
2525
- repo: https://github.com/Yelp/detect-secrets
26-
rev: v1.4.0
26+
rev: v1.5.0
2727
hooks:
2828
- id: detect-secrets
2929
args:
@@ -44,7 +44,7 @@ repos:
4444
- --exclude-files
4545
- ".*_test.js"
4646
- repo: https://github.com/astral-sh/ruff-pre-commit
47-
rev: "v0.4.1"
47+
rev: "v0.4.8"
4848
hooks:
4949
- id: ruff-format
5050
- id: ruff
@@ -57,7 +57,7 @@ repos:
5757
- id: shellcheck
5858
args: ["--severity=warning"]
5959
- repo: https://github.com/rhysd/actionlint
60-
rev: v1.6.27
60+
rev: v1.7.1
6161
hooks:
6262
- id: actionlint
6363
name: actionlint

.secrets.baseline

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "1.4.0",
2+
"version": "1.5.0",
33
"plugins_used": [
44
{
55
"name": "ArtifactoryDetector"
@@ -148,7 +148,7 @@
148148
"filename": "docker-compose.yml",
149149
"hashed_secret": "965748b380ab0ab25d1846afc174a3d93a8ec06c",
150150
"is_verified": false,
151-
"line_number": 17
151+
"line_number": 8
152152
}
153153
],
154154
"frontend/public/src/constants.js": [
@@ -240,5 +240,5 @@
240240
}
241241
]
242242
},
243-
"generated_at": "2024-05-22T12:17:57Z"
243+
"generated_at": "2024-06-11T15:28:43Z"
244244
}

authentication/pipeline/user.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def create_user_via_email(
130130
"username": f"The username '{username}' is already taken. Please try a different username."
131131
},
132132
)
133-
except Exception as exc: # noqa: BLE001
133+
except Exception as exc:
134134
raise UserCreationFailedException(backend, current_partial) from exc
135135

136136
return {"is_new": True, "user": created_user, "username": created_user.username}

cms/tasks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def call_fastly_purge_api(relative_url):
4040

4141
api_url = urljoin(MITX_ONLINE_FASTLY_URL, relative_url)
4242

43-
resp = requests.request("PURGE", api_url, headers=headers)
43+
resp = requests.request("PURGE", api_url, headers=headers) # noqa: S113
4444

4545
if resp.status_code >= 400: # noqa: PLR2004
4646
logger.error(f"Fastly API Purge call failed: {resp.status_code} {resp.reason}") # noqa: G004

flexiblepricing/management/commands/configure_tiers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def handle(self, *args, **kwargs): # pylint: disable=unused-argument # noqa: A
7878
if "course" in kwargs and kwargs["course"] is not None
7979
else None
8080
)
81-
except Exception as exc: # noqa: BLE001
81+
except Exception as exc:
8282
raise CommandError(
8383
f"Couldn't find the course {kwargs['course']}, stopping." # noqa: EM102
8484
) from exc
@@ -89,7 +89,7 @@ def handle(self, *args, **kwargs): # pylint: disable=unused-argument # noqa: A
8989
if "program" in kwargs and kwargs["program"] is not None
9090
else None
9191
)
92-
except Exception as exc: # noqa: BLE001
92+
except Exception as exc:
9393
raise CommandError(
9494
f"Couldn't find the program {kwargs['program']}, stopping." # noqa: EM102
9595
) from exc

openedx/api.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ def repair_faulty_edx_user(user):
346346
created_user, created_auth_token = False, False
347347
try:
348348
created_user = create_edx_user(user)
349-
except Exception as e: # noqa: BLE001
349+
except Exception as e:
350350
# 409 means we have a username conflict - pass in that case so we can
351351
# try to create the api auth tokens; re-raise otherwise
352352

@@ -672,7 +672,7 @@ def enroll_in_edx_course_runs(
672672
results.append(enrollment)
673673
except HTTPError as exc: # noqa: PERF203
674674
raise EdxApiEnrollErrorException(user, course_run, exc) from exc
675-
except Exception as exc: # pylint: disable=broad-except # noqa: BLE001
675+
except Exception as exc: # pylint: disable=broad-except
676676
raise UnknownEdxApiEnrollException(user, course_run, exc) from exc
677677
return results
678678

@@ -848,7 +848,7 @@ def subscribe_to_edx_course_emails(user, course_run):
848848
result = edx_client.email_settings.subscribe(course_run.courseware_id)
849849
except HTTPError as exc:
850850
raise EdxApiEmailSettingsErrorException(user, course_run, exc) from exc
851-
except Exception as exc: # noqa: BLE001
851+
except Exception as exc:
852852
raise UnknownEdxApiEmailSettingsException(user, course_run, exc) from exc
853853
return result
854854

@@ -874,7 +874,7 @@ def unsubscribe_from_edx_course_emails(user, course_run):
874874
result = edx_client.email_settings.unsubscribe(course_run.courseware_id)
875875
except HTTPError as exc:
876876
raise EdxApiEmailSettingsErrorException(user, course_run, exc) from exc
877-
except Exception as exc: # noqa: BLE001
877+
except Exception as exc:
878878
raise UnknownEdxApiEmailSettingsException(user, course_run, exc) from exc
879879
return result
880880

poetry.lock

Lines changed: 20 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)