chore: Update pre-commit
This commit is contained in:
parent
7a16674c0a
commit
7924d55af7
|
@ -3,7 +3,7 @@ default_language_version:
|
||||||
|
|
||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
rev: v3.2.0
|
rev: v4.1.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: check-yaml
|
- id: check-yaml
|
||||||
- id: end-of-file-fixer
|
- id: end-of-file-fixer
|
||||||
|
@ -15,23 +15,23 @@ repos:
|
||||||
- id: check-merge-conflict
|
- id: check-merge-conflict
|
||||||
|
|
||||||
- repo: https://github.com/jorisroovers/gitlint
|
- repo: https://github.com/jorisroovers/gitlint
|
||||||
rev: v0.13.1
|
rev: v0.17.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: gitlint
|
- id: gitlint
|
||||||
|
|
||||||
- repo: https://github.com/adrienverge/yamllint
|
- repo: https://github.com/adrienverge/yamllint
|
||||||
rev: v1.24.2
|
rev: v1.26.3
|
||||||
hooks:
|
hooks:
|
||||||
- id: yamllint
|
- id: yamllint
|
||||||
|
|
||||||
- repo: https://github.com/ambv/black
|
- repo: https://github.com/ambv/black
|
||||||
rev: 20.8b1
|
rev: 22.3.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: black
|
- id: black
|
||||||
types: [python]
|
types: [python]
|
||||||
|
|
||||||
- repo: https://github.com/pre-commit/mirrors-isort
|
- repo: https://github.com/pre-commit/mirrors-isort
|
||||||
rev: v5.4.2
|
rev: v5.10.1
|
||||||
hooks:
|
hooks:
|
||||||
- id: isort
|
- id: isort
|
||||||
additional_dependencies: ["isort[pyproject]"]
|
additional_dependencies: ["isort[pyproject]"]
|
||||||
|
|
|
@ -32,7 +32,7 @@ def test_schema_processing(func, instance):
|
||||||
@pytest.mark.parametrize("func", (is_valid, validate))
|
@pytest.mark.parametrize("func", (is_valid, validate))
|
||||||
def test_invalid_schema(func):
|
def test_invalid_schema(func):
|
||||||
with pytest.raises(ValueError):
|
with pytest.raises(ValueError):
|
||||||
func(2 ** 64, True)
|
func(2**64, True)
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize("func", (is_valid, validate))
|
@pytest.mark.parametrize("func", (is_valid, validate))
|
||||||
|
|
Loading…
Reference in New Issue