Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#1644)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Mar 6, 2023
1 parent 4612b86 commit 2ae083d
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 14 deletions.
6 changes: 3 additions & 3 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: 22.12.0
rev: 23.1.0
hooks:
- id: black
args: ["--line-length=88", "--exclude=/nebari/template/"]

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.206
rev: v0.0.242
hooks:
- id: ruff
args: ["--fix"]
Expand All @@ -73,7 +73,7 @@ repos:

# terraform
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.77.0
rev: v1.77.1
hooks:
- id: terraform_fmt
args:
Expand Down
3 changes: 0 additions & 3 deletions nebari/cli/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,6 @@ def check_auth_provider_creds(ctx: typer.Context, auth_provider: str):
not os.environ.get("GITHUB_CLIENT_ID")
or not os.environ.get("GITHUB_CLIENT_SECRET")
):

rich.print(
MISSING_CREDS_TEMPLATE.format(
provider="GitHub OAuth App", link_to_docs=CREATE_GITHUB_OAUTH_CREDS
Expand Down Expand Up @@ -427,7 +426,6 @@ def guided_init_wizard(ctx: typer.Context, guided_init: str):
default=False,
qmark=qmark,
).unsafe_ask():

repo_url = "http://{git_provider}/{org_name}/{repo_name}"

git_provider = questionary.select(
Expand Down Expand Up @@ -501,7 +499,6 @@ def guided_init_wizard(ctx: typer.Context, guided_init: str):
default=False,
qmark=qmark,
).unsafe_ask():

# TERRAFORM STATE
inputs.terraform_state = questionary.select(
"Where should the Terraform State be provisioned?",
Expand Down
2 changes: 0 additions & 2 deletions nebari/provider/cicd/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,6 @@ def install_nebari_step(nebari_version):


def gen_nebari_ops(config):

env_vars = gha_env_vars(config)
branch = config["ci_cd"]["branch"]
commit_render = config["ci_cd"].get("commit_render", True)
Expand Down Expand Up @@ -279,7 +278,6 @@ def gen_nebari_ops(config):


def gen_nebari_linter(config):

env_vars = {}
nebari_gh_branch = os.environ.get("NEBARI_GH_BRANCH")
if nebari_gh_branch:
Expand Down
1 change: 0 additions & 1 deletion nebari/provider/cicd/gitlab.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ class GLCI(BaseModel):


def gen_gitlab_ci(config):

branch = config["ci_cd"]["branch"]
commit_render = config["ci_cd"].get("commit_render", True)
before_script = config["ci_cd"].get("before_script")
Expand Down
1 change: 0 additions & 1 deletion nebari/provider/cicd/linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ def parse_validation(message):


def generate_lint_message(config):

# prep for linting
pr_config = pathlib.Path("nebari-config.yaml")
# lint/validate nebari-config.yaml
Expand Down
1 change: 0 additions & 1 deletion nebari/render.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,6 @@ def get_sub_config(conf, conf_idx):


def set_sub_config(conf, conf_idx, value):

get_sub_config(conf, conf_idx[:-1])[conf_idx[-1]] = value


Expand Down
1 change: 0 additions & 1 deletion nebari/upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@


def do_upgrade(config_filename, attempt_fixes=False):

config = load_yaml(config_filename)

try:
Expand Down
2 changes: 0 additions & 2 deletions scripts/aws-force-destroy.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,12 +148,10 @@ def force_destroy_configuration(config):

iam = boto3.resource("iam")
for suffix in ("eks-cluster-role", "eks-node-group-role"):

try:
role = iam.Role(f"{project_name}-{env}-{suffix}")

if role.tags is not None:

tags_dict = dict(
[(t["Key"], t.get("Value", "")) for t in role.tags]
)
Expand Down

0 comments on commit 2ae083d

Please sign in to comment.