Skip to content

Commit 80ed75c

Browse files
authored
Merge pull request #383 from python-jsonschema/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2 parents c45108a + 5559a06 commit 80ed75c

File tree

6 files changed

+13
-11
lines changed

6 files changed

+13
-11
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ repos:
1919
- id: check-merge-conflict
2020
- id: trailing-whitespace
2121
- repo: https://github.com/psf/black
22-
rev: 23.12.1
22+
rev: 24.1.1
2323
hooks:
2424
- id: black
2525
- repo: https://github.com/PyCQA/flake8

scripts/generate-hooks-config.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,13 @@ def generate_hook_lines(config) -> t.Iterator[str]:
6060
yield " language: python"
6161

6262
if isinstance(config["files"], list):
63-
config[
64-
"files"
65-
] = r""">
63+
config["files"] = (
64+
r""">
6665
(?x)^(
6766
{}
6867
)$""".format(
69-
"|\n ".join(config["files"])
68+
"|\n ".join(config["files"])
69+
)
7070
)
7171

7272
yield f" files: {config['files']}"

src/check_jsonschema/identify_filetype.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Identify filetypes by extension
33
"""
4+
45
from __future__ import annotations
56

67
import pathlib

src/check_jsonschema/parsers/yaml.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ class GeneratedSafeConstructor(ruamel.yaml.SafeConstructor):
2424
# however, JSON does not support native datetimes, so JSON Schema formats for
2525
# dates apply to strings
2626
# Turn off this feature, instructing the parser to load datetimes as strings
27-
implementation.constructor.yaml_constructors[
28-
"tag:yaml.org,2002:timestamp"
29-
] = implementation.constructor.yaml_constructors["tag:yaml.org,2002:str"]
27+
implementation.constructor.yaml_constructors["tag:yaml.org,2002:timestamp"] = (
28+
implementation.constructor.yaml_constructors["tag:yaml.org,2002:str"]
29+
)
3030

3131
return implementation
3232

src/check_jsonschema/schema_loader/main.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ def __init__(
8282
self._parsers = ParserSet()
8383

8484
# setup a schema reader lazily, when needed
85-
self._reader: LocalSchemaReader | HttpSchemaReader | StdinSchemaReader | None = (
86-
None
87-
)
85+
self._reader: (
86+
LocalSchemaReader | HttpSchemaReader | StdinSchemaReader | None
87+
) = None
8888

8989
@property
9090
def reader(self) -> LocalSchemaReader | HttpSchemaReader | StdinSchemaReader:

src/check_jsonschema/transforms/azure_pipelines.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
steps:
2828
- bash: echo ${{ val }}
2929
"""
30+
3031
from __future__ import annotations
3132

3233
import typing as t

0 commit comments

Comments
 (0)