diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5d694620..ebb46bac 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -24,7 +24,7 @@ repos: - id: trailing-whitespace - repo: https://github.com/charliermarsh/ruff-pre-commit - rev: v0.0.254 + rev: v0.0.257 hooks: - id: ruff args: [--fix] @@ -35,7 +35,7 @@ repos: - id: black - repo: https://github.com/codespell-project/codespell - rev: v2.2.2 + rev: v2.2.4 hooks: - id: codespell # See 'pyproject.toml' for args additional_dependencies: @@ -48,7 +48,7 @@ repos: args: [--tab-width, "4"] - repo: https://github.com/pre-commit/mirrors-eslint - rev: v8.35.0 + rev: v8.36.0 hooks: - id: eslint files: pyscriptjs/src/.*\.[jt]sx?$ # *.js, *.jsx, *.ts and *.tsx diff --git a/examples/pandas.html b/examples/pandas.html index 97c907c1..778ae7c9 100644 --- a/examples/pandas.html +++ b/examples/pandas.html @@ -101,7 +101,7 @@ df = pd.DataFrame() - def loadFromURL(*ags, **kws): + def loadFromURL(*args, **kws): global df # clear dataframe & output diff --git a/examples/todo-pylist.html b/examples/todo-pylist.html index b72204ba..328b23f8 100644 --- a/examples/todo-pylist.html +++ b/examples/todo-pylist.html @@ -47,7 +47,7 @@ from js import document from pyodide.ffi.wrappers import add_event_listener - def add_task(*ags, **kws): + def add_task(*args, **kws): # create a new dictionary representing the new task new_task_content = Element("new-task-content") task = { "content": new_task_content.value, "done": False, "created_at": dt.now() } diff --git a/examples/todo.py b/examples/todo.py index 2f508a2b..bf77bb63 100644 --- a/examples/todo.py +++ b/examples/todo.py @@ -10,7 +10,7 @@ task_list = Element("list-tasks-container") new_task_content = Element("new-task-content") -def add_task(*ags, **kws): +def add_task(*args, **kws): # ignore empty task if not new_task_content.element.value: return None diff --git a/pyscriptjs/src/main.ts b/pyscriptjs/src/main.ts index 072c3352..1c46a170 100644 --- a/pyscriptjs/src/main.ts +++ b/pyscriptjs/src/main.ts @@ -148,7 +148,7 @@ export class PyScriptApp { this.logStatus(`Downloading ${interpreter_cfg.name}...`); // download pyodide by using a