Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#2237)
Browse files Browse the repository at this point in the history
  • Loading branch information
dcmcand authored Mar 12, 2024
2 parents 9f2f8c5 + aa69d53 commit 5319447
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ repos:

# python
- repo: https://github.com/psf/black
rev: 23.12.1
rev: 24.1.1
hooks:
- id: black
args: ["--line-length=88", "--exclude=/src/_nebari/template/"]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.9
rev: v0.2.0
hooks:
- id: ruff
args: ["--fix"]
Expand Down
6 changes: 3 additions & 3 deletions src/_nebari/stages/kubernetes_ingress/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,9 @@ def input_vars(self, stage_outputs: Dict[str, Dict[str, Any]]):
cert_details["acme-email"] = self.config.certificate.acme_email
cert_details["acme-server"] = self.config.certificate.acme_server
elif cert_type == "existing":
cert_details[
"certificate-secret-name"
] = self.config.certificate.secret_name
cert_details["certificate-secret-name"] = (
self.config.certificate.secret_name
)

return {
**{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,12 +208,14 @@ def base_profile_extra_mounts():

extra_pod_config = {
"volumes": [
{
"name": volume["name"],
"persistentVolumeClaim": {"claimName": volume["name"]},
}
if volume["kind"] == "persistentvolumeclaim"
else {"name": volume["name"], "configMap": {"name": volume["name"]}}
(
{
"name": volume["name"],
"persistentVolumeClaim": {"claimName": volume["name"]},
}
if volume["kind"] == "persistentvolumeclaim"
else {"name": volume["name"], "configMap": {"name": volume["name"]}}
)
for mount_path, volume in extra_mounts.items()
]
}
Expand Down Expand Up @@ -367,9 +369,11 @@ def configure_user(username, groups, uid=1000, gid=100):
# mount the shared directories for user only if there are
# shared folders (groups) that the user is a member of
# else ensure that the `shared` folder symlink does not exist
f"ln -sfn /shared /home/{username}/shared"
if groups
else f"rm -f /home/{username}/shared",
(
f"ln -sfn /shared /home/{username}/shared"
if groups
else f"rm -f /home/{username}/shared"
),
# conda-store environment configuration
f"printf '{condarc}' > /home/{username}/.condarc",
# jupyter configuration
Expand Down

0 comments on commit 5319447

Please sign in to comment.