Skip to content

Commit

Permalink
Merge pull request #75 from thedataquarry/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
sanders41 committed Mar 13, 2024
2 parents 8d9f94e + f372962 commit fd006e0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.8.0
rev: v1.9.0
hooks:
- id: mypy
additional_dependencies:
Expand All @@ -35,7 +35,7 @@ repos:
exclude: ".*/test_.*\\.py|.*/conftest\\.py|src/rest_api_postgres/python/.*|src/pyp3_mock_data/.*|src/pyo3_mock_data/.*"
args: [--explicit-package-bases] # This is because of the mono repo type setup
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.8.0
rev: v1.9.0
hooks:
- id: mypy
pass_filenames: false
Expand All @@ -51,14 +51,14 @@ repos:
]
entry: bash -c 'cd src/rest_api_postgres/python && mypy -p app "$@"' --
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.8.0
rev: v1.9.0
hooks:
- id: mypy
pass_filenames: false
files: ^src/pyp3_mock_data/
entry: bash -c 'cd src/pyo3_mock_data && mypy -p pyp3_mock_data "$@"' --
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.2.2
rev: v0.3.2
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down
6 changes: 3 additions & 3 deletions src/rest_api_postgres/python/app/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ def set_postgres_uri(cls, data: Any) -> str:
raise ValueError("A POSTGRES_PASSWORD environment variable is required")

port = data["postgres_port"] if data.get("postgres_port") else 5432
data[
"postgres_uri"
] = f"postgres://postgres:{data['postgres_password']}@127.0.0.1:{port}/api"
data["postgres_uri"] = (
f"postgres://postgres:{data['postgres_password']}@127.0.0.1:{port}/api"
)

return data

Expand Down

0 comments on commit fd006e0

Please sign in to comment.