diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 22b28da..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$' @@ -34,8 +34,8 @@ repos: args: - '--allow-missing-credentials' - id: detect-private-key - - repo: 'https://gitlab.com/pycqa/flake8' - rev: 3.9.2 + - repo: 'https://github.com/PyCQA/flake8' + rev: 7.1.0 # Possible versions: https://github.com/PyCQA/flake8/tags hooks: - id: flake8 args: 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], }