Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#497)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/python-jsonschema/check-jsonschema: 0.29.3 → 0.29.4](0.29.3...0.29.4)
- [github.com/sirosen/slyp: 0.7.1 → 0.8.1](sirosen/slyp@0.7.1...0.8.1)
- [github.com/asottile/pyupgrade: v3.17.0 → v3.18.0](asottile/pyupgrade@v3.17.0...v3.18.0)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Oct 17, 2024
1 parent fdea0de commit 6d4f7d7
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
repos:
# dogfood
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.29.3
rev: 0.29.4
hooks:
- id: check-dependabot
- id: check-github-workflows
Expand Down Expand Up @@ -31,15 +31,15 @@ repos:
- 'flake8-typing-as-t==0.0.3'
- 'flake8-comprehensions==3.15.0'
- repo: https://github.com/sirosen/slyp
rev: 0.7.1
rev: 0.8.1
hooks:
- id: slyp
- repo: https://github.com/PyCQA/isort
rev: 5.13.2
hooks:
- id: isort
- repo: https://github.com/asottile/pyupgrade
rev: v3.17.0
rev: v3.18.0
hooks:
- id: pyupgrade
args: ["--py37-plus"]
6 changes: 4 additions & 2 deletions src/check_jsonschema/cachedownloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ class FailedDownloadError(Exception):


class CacheDownloader:
def __init__(self, cache_dir: str | None = None, disable_cache: bool = False):
def __init__(
self, cache_dir: str | None = None, disable_cache: bool = False
) -> None:
if cache_dir is None:
self._cache_dir = _resolve_cache_dir()
else:
Expand Down Expand Up @@ -170,7 +172,7 @@ def __init__(
downloader: CacheDownloader,
*,
validation_callback: t.Callable[[bytes], t.Any] | None = None,
):
) -> None:
self._file_url = file_url
self._filename = filename or file_url.split("/")[-1]
self._downloader = downloader
Expand Down
4 changes: 2 additions & 2 deletions src/check_jsonschema/checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@


class _Exit(Exception):
def __init__(self, code: int):
def __init__(self, code: int) -> None:
self.code = code


Expand All @@ -31,7 +31,7 @@ def __init__(
format_opts: FormatOptions | None = None,
traceback_mode: str = "short",
fill_defaults: bool = False,
):
) -> None:
self._schema_loader = schema_loader
self._instance_loader = instance_loader
self._reporter = reporter
Expand Down
2 changes: 1 addition & 1 deletion src/check_jsonschema/cli/param_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def __init__(
encoding: str | None = None,
errors: str | None = "strict",
atomic: bool = False,
):
) -> None:
self.name: str = os.fspath(filename)
self.mode = mode
self.encoding = encoding
Expand Down
2 changes: 1 addition & 1 deletion src/check_jsonschema/transforms/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def __init__(
self,
*,
on_data: t.Callable[[list | dict], list | dict] | None = None,
):
) -> None:
self.on_data = on_data

def modify_yaml_implementation(self, implementation: ruamel.yaml.YAML) -> None:
Expand Down

0 comments on commit 6d4f7d7

Please sign in to comment.