diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6ee96da1..587e5713 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,7 @@ exclude: '^.*\.(md|MD)$' repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.1.0 + rev: v4.5.0 hooks: - id: trailing-whitespace - id: check-added-large-files @@ -10,7 +10,7 @@ repos: args: ["--fix=lf"] - repo: https://github.com/pycqa/isort - rev: "5.12.0" + rev: "5.13.2" hooks: - id: isort args: @@ -25,7 +25,7 @@ repos: ] - repo: https://github.com/PyCQA/autoflake.git - rev: v2.2.1 + rev: v2.3.1 hooks: - id: autoflake args: @@ -36,19 +36,19 @@ repos: ] - repo: https://github.com/psf/black - rev: "23.1.0" + rev: "24.4.0" hooks: - id: black args: [--line-length, "90"] - repo: https://github.com/asottile/pyupgrade - rev: v2.31.0 + rev: v3.15.2 hooks: - id: pyupgrade args: ["--py37-plus", "--keep-runtime-typing"] - repo: https://github.com/commitizen-tools/commitizen - rev: v2.20.3 + rev: v3.22.0 hooks: - id: commitizen stages: [commit-msg] diff --git a/postgrest/base_request_builder.py b/postgrest/base_request_builder.py index 3f6b0ff4..db48e52e 100644 --- a/postgrest/base_request_builder.py +++ b/postgrest/base_request_builder.py @@ -531,9 +531,9 @@ def explain( if key not in ["self", "format"] and value ] options_str = "|".join(options) - self.headers[ - "Accept" - ] = f"application/vnd.pgrst.plan+{format}; options={options_str}" + self.headers["Accept"] = ( + f"application/vnd.pgrst.plan+{format}; options={options_str}" + ) return self def order(