From b26a892163631b47597f8eee53e4bb43f56f222f Mon Sep 17 00:00:00 2001 From: Anton Agestam Date: Sun, 6 Aug 2023 14:41:16 +0200 Subject: [PATCH] chore: bump pre-commit dependencies (#287) --- .pre-commit-config.yaml | 20 ++++++++++++-------- src/phantom/schema.py | 4 ++-- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a3eafb1..06ca843 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,7 +12,7 @@ repos: - id: detect-private-key - repo: https://github.com/editorconfig-checker/editorconfig-checker.python - rev: "2.7.1" + rev: "2.7.2" hooks: - id: editorconfig-checker alias: ec @@ -20,28 +20,28 @@ repos: - -disable-indent-size - repo: https://github.com/charliermarsh/ruff-pre-commit - rev: "v0.0.259" + rev: "v0.0.282" hooks: - id: ruff - repo: https://github.com/psf/black - rev: "23.1.0" + rev: "23.7.0" hooks: - id: black - repo: https://github.com/asottile/blacken-docs - rev: "1.13.0" + rev: "1.15.0" hooks: - id: blacken-docs additional_dependencies: ["black==23.1.0"] - repo: https://github.com/sirosen/check-jsonschema - rev: "0.22.0" + rev: "0.23.3" hooks: - id: check-github-workflows - repo: https://github.com/pre-commit/mirrors-mypy - rev: "v1.1.1" + rev: "v1.4.1" hooks: - id: mypy pass_filenames: false @@ -57,11 +57,15 @@ repos: - hypothesis==6.68.0 - repo: https://github.com/pre-commit/mirrors-prettier - rev: "v2.7.1" + rev: "v3.0.1" hooks: - id: prettier additional_dependencies: - - prettier@2.8.7 + # This addresses slow installation progress, see: + # https://github.com/pre-commit/mirrors-eslint/issues/19#issuecomment-1026388904 + # https://github.com/npm/cli/issues/4028#issuecomment-1611625358 + - npm@8.11.0 + - prettier@3.0.1 alias: format-markdown types: [ markdown ] args: diff --git a/src/phantom/schema.py b/src/phantom/schema.py index b093f4f..0e742ea 100644 --- a/src/phantom/schema.py +++ b/src/phantom/schema.py @@ -9,8 +9,8 @@ class Schema(TypedDict, total=False): title: str description: str - type: Literal["array", "string", "float", "number"] # noqa: A003 - format: str # noqa: A003 + type: Literal["array", "string", "float", "number"] + format: str examples: Sequence[object] minimum: Optional[float] maximum: Optional[float]