Skip to content

Commit

Permalink
Update and run pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jeohist committed Nov 8, 2024
1 parent dae8edb commit 1fbbe2f
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
7 changes: 4 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,25 @@
fail_fast: false
repos:
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.33.0
rev: v1.35.1
hooks:
- id: yamllint
args: ["--format", "parsable", "--strict"]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: fix-byte-order-marker
- id: mixed-line-ending
- id: check-json
- id: detect-aws-credentials
args: ["--allow-missing-credentials"]
- repo: https://github.com/markdownlint/markdownlint
rev: v0.12.0
hooks:
- id: markdownlint_docker
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: 'v0.1.6'
rev: 'v0.7.3'
hooks:
- id: ruff
2 changes: 1 addition & 1 deletion buildpack/core/runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def _activate_license():
<entry key="id2" value="{{LICENSE_ID}}"/>
<entry key="license_key2" value="{{LICENSE_KEY}}"/>
</map>"""

license_key = os.environ.get(
"FORCED_LICENSE_KEY", os.environ.get("LICENSE_KEY", None)
)
Expand Down
2 changes: 1 addition & 1 deletion buildpack/infrastructure/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ def init(self):
jdbc_params.update({"sslmode": "verify-full"})
except Exception:
raise Exception("Could not find database CA certificate in map")

if database_type == "PostgreSQL" and not self.url.startswith("jdbc:"):
self.extract_inline_cert(jdbc_params, self.SSLCERT, "postgresql.crt")
self.extract_inline_cert(jdbc_params, self.SSLKEY, "postgresql.pk8")
Expand Down
2 changes: 1 addition & 1 deletion buildpack/telemetry/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def micrometer_metrics_enabled(runtime_version):
logging.debug("micrometer for non mendix public cloud")
micrometer_enabled = True
return micrometer_enabled



def configure_metrics_registry(m2ee):
Expand Down
2 changes: 1 addition & 1 deletion dependencies-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
uri: https://cdn.mendix.com/mx-buildpack/python/python_3.10.14_linux_x64_cflinuxfs4_dda5228c.tgz
sha256: dda5228c36196f8a7346767ad9c9ac774ec270aa55065beb8d3d052d652b9120
cf_stacks:
- cflinuxfs4
- cflinuxfs4
source_sha256: cefea32d3be89c02436711c95a45c7f8e880105514b78680c14fe76f5709a0f6

0 comments on commit 1fbbe2f

Please sign in to comment.