Skip to content

Commit

Permalink
testing unity-proxy changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jpl-btlunsfo committed Jan 14, 2025
1 parent 6ad61ec commit 8681d0a
Show file tree
Hide file tree
Showing 2 changed files with 84 additions and 1 deletion.
83 changes: 83 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
fail_fast: true
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-xml
- id: check-added-large-files
args: ["--maxkb=50000"]
- id: check-json # Checks json files for parsable syntax.
- id: pretty-format-json # Sets a standard for formatting json files.
args:
- --autofix
- id: requirements-txt-fixer # Sorts entries in requirements.txt.
- id: check-ast # Simply checks whether the files parse as valid python.
- id: detect-private-key # Detects the presence of private keys.
- id: detect-aws-credentials # Detects *your* aws credentials from the aws cli credentials file.
args:
- --allow-missing-credentials
- id: check-toml # Checks toml files for parsable syntax.

- repo: https://github.com/igorshubovych/markdownlint-cli
rev: "v0.39.0"
hooks:
- id: markdownlint
args: ["--config", ".markdownlintrc", "--ignore", "CHANGELOG.md"]

- repo: https://github.com/PyCQA/isort
rev: 5.13.2
hooks:
- id: isort

- repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.4.2
hooks:
- id: black

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.2
hooks:
- id: ruff

- repo: https://github.com/PyCQA/bandit
rev: "1.7.10" # you must change this to newest version
hooks:
- id: bandit
args:
[
"--configfile=pyproject.toml",
"--severity-level=high",
"--confidence-level=high",
]
additional_dependencies: [".[toml]"]

- repo: https://github.com/hadolint/hadolint
rev: v2.13.0-beta
hooks:
- id: hadolint # requires hadolint is installed (brew install hadolint)
args:
- --no-color
- --failure-threshold=error
- --verbose

- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.89.1
hooks:
- id: terraform_validate # Validates all Terraform configuration files.
args:
- --tf-init-args=-upgrade
- id: terraform_fmt # Rewrites all Terraform configuration files to a canonical format.
- id: terraform_tflint # Validates all Terraform configuration files with TFLint.
- id: terraform_trivy # Static analysis of Terraform templates to spot potential security issues.
args:
- >
--args=--severity=CRITICAL
--skip-dirs="**/.terraform"
--tf-exclude-downloaded-modules
- id: terraform_docs
args:
- --hook-config=--add-to-existing-file=true
- --hook-config=--create-file-if-not-exist=true`
2 changes: 1 addition & 1 deletion applications/unity-proxy/0.13/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
],
"Category": "system",
"IamRoles": {},
"Package": "https://github.com/unity-sds/unity-proxy@9f891bc860284bd0daa5da3d1b47151a7985418f",
"Package": "https://github.com/unity-sds/unity-proxy@41dc663b5eaf2055c60a450cdd78def13db4aa65",
"Backend": "terraform",
"ManagedDependencies": {},
"DefaultDeployment": {},
Expand Down

0 comments on commit 8681d0a

Please sign in to comment.