diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index a75be9d..e03f688 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -27,12 +27,12 @@ jobs: uses: actions/checkout@v3 - name: Setup Pages uses: actions/configure-pages@v2 - - uses: dawidd6/action-download-artifact@v2 + - uses: dawidd6/action-download-artifact@v7 with: workflow: main.yml name: docs path: pages/docs - - uses: dawidd6/action-download-artifact@v2 + - uses: dawidd6/action-download-artifact@v7 with: workflow: main.yml name: htmlcov diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 88aa576..00dd66f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,18 +2,18 @@ # See https://pre-commit.com/hooks.html for more hooks repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.3.0 + rev: v5.0.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer - id: check-yaml - id: check-added-large-files - repo: https://github.com/psf/black - rev: 22.10.0 + rev: 24.10.0 hooks: - id: black - repo: https://github.com/pycqa/isort - rev: 5.10.1 + rev: 5.13.2 hooks: - id: isort name: isort (python) diff --git a/jsonurl_data_test.py b/jsonurl_data_test.py index b21b399..e6c98ab 100644 --- a/jsonurl_data_test.py +++ b/jsonurl_data_test.py @@ -1,6 +1,7 @@ """ Run tests from https://github.com/cdleonard/jsonurl-test-data """ + import json from pathlib import Path diff --git a/jsonurl_py.py b/jsonurl_py.py index f0f1110..876c3fa 100755 --- a/jsonurl_py.py +++ b/jsonurl_py.py @@ -148,8 +148,7 @@ def _dump_any(arg: Any, opts: DumpOpts) -> str: @overload -def dumps(arg: Any, opts: Optional[DumpOpts] = None) -> str: - ... +def dumps(arg: Any, opts: Optional[DumpOpts] = None) -> str: ... @overload @@ -161,8 +160,7 @@ def dumps( aqf: bool = False, safe: str = "", distinguish_empty_list_dict: bool = False, -) -> str: - ... +) -> str: ... def dumps(arg: Any, opts=None, **kw) -> str: @@ -523,8 +521,7 @@ def _load_dict_data(arg: str, pos: int, opts: LoadOpts) -> dict: @overload -def loads(arg: str, opts: Optional[LoadOpts] = None) -> Any: - ... +def loads(arg: str, opts: Optional[LoadOpts] = None) -> Any: ... @overload @@ -535,8 +532,7 @@ def loads( implied_list: bool = False, aqf: bool = False, distinguish_empty_list_dict: bool = False, -) -> Any: - ... +) -> Any: ... def loads(arg: str, opts=None, **kw) -> Any: