From 337c3f90f415dc95d9fd54fd38719edc2d97e2bd Mon Sep 17 00:00:00 2001 From: Luckydonald <2737108+luckydonald@users.noreply.github.com> Date: Wed, 26 Jun 2024 17:30:43 +0200 Subject: [PATCH 1/4] allow numbers to be int. --- openapi3/schemas.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openapi3/schemas.py b/openapi3/schemas.py index 4f3c5e5..889f391 100644 --- a/openapi3/schemas.py +++ b/openapi3/schemas.py @@ -8,7 +8,7 @@ "object": dict, "string": str, "boolean": bool, - "number": float, + "number": [float, int], } From 6933b8c5ff4a3c4d0680ea18706d74e78d230251 Mon Sep 17 00:00:00 2001 From: Luckydonald <2737108+luckydonald@users.noreply.github.com> Date: Wed, 26 Jun 2024 17:48:24 +0200 Subject: [PATCH 2/4] Fixed .pre-commit-config.yaml See https://stackoverflow.com/questions/69652639/pre-commit-authenticating-to-gitlab#comment134146038_74443302 --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 22b28da..135e915 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -34,7 +34,7 @@ repos: args: - '--allow-missing-credentials' - id: detect-private-key - - repo: 'https://gitlab.com/pycqa/flake8' + - repo: 'https://github.com/PyCQA/flake8' rev: 3.9.2 hooks: - id: flake8 From fe3f80bb7c45ccca4db61bc8e39d3df6688ba2bc Mon Sep 17 00:00:00 2001 From: Luckydonald <2737108+luckydonald@users.noreply.github.com> Date: Wed, 26 Jun 2024 17:52:16 +0200 Subject: [PATCH 3/4] fixed .pre-commit-config.yaml (2) Bump version of flake8. --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 135e915..1df3ffe 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -35,7 +35,7 @@ repos: - '--allow-missing-credentials' - id: detect-private-key - repo: 'https://github.com/PyCQA/flake8' - rev: 3.9.2 + rev: 4.0.1 hooks: - id: flake8 args: From 83a912099846bf4c00aa566c01794b956e38b4d8 Mon Sep 17 00:00:00 2001 From: Luckydonald <2737108+luckydonald@users.noreply.github.com> Date: Wed, 26 Jun 2024 17:59:55 +0200 Subject: [PATCH 4/4] Fix .pre-commit-config.yaml (3) Bumpety for all of the versions. --- .pre-commit-config.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1df3ffe..cc3f633 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,16 +1,16 @@ repos: - repo: https://github.com/hadialqattan/pycln - rev: v0.0.4 # Possible releases: https://github.com/hadialqattan/pycln/releases + rev: v2.4.0 # Possible versions: https://github.com/hadialqattan/pycln/releases hooks: - id: pycln - repo: 'https://github.com/psf/black' - rev: 21.6b0 + rev: 24.4.2 # Possible versions: https://github.com/psf/black/releases hooks: - id: black args: - "--line-length=120" - repo: 'https://github.com/pre-commit/pre-commit-hooks' - rev: v4.0.1 + rev: v4.6.0 # Possible versions: https://github.com/pre-commit/pre-commit-hooks/releases hooks: - id: end-of-file-fixer exclude: '^docs/[^/]*\.svg$' @@ -35,7 +35,7 @@ repos: - '--allow-missing-credentials' - id: detect-private-key - repo: 'https://github.com/PyCQA/flake8' - rev: 4.0.1 + rev: 7.1.0 # Possible versions: https://github.com/PyCQA/flake8/tags hooks: - id: flake8 args: