[pre-commit.ci] pre-commit autoupdate (#1281)

* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/charliermarsh/ruff-pre-commit: v0.0.254 → v0.0.257](https://github.com/charliermarsh/ruff-pre-commit/compare/v0.0.254...v0.0.257)
- [github.com/codespell-project/codespell: v2.2.2 → v2.2.4](https://github.com/codespell-project/codespell/compare/v2.2.2...v2.2.4)
- [github.com/pre-commit/mirrors-eslint: v8.35.0 → v8.36.0](https://github.com/pre-commit/mirrors-eslint/compare/v8.35.0...v8.36.0)

* Fixes lint

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: mariana <marianameireles@protonmail.com>
This commit is contained in:
pre-commit-ci[bot]
2023-03-23 11:58:25 +01:00
committed by GitHub
parent 89842e20da
commit 53c6cf5f45
5 changed files with 7 additions and 7 deletions

View File

@@ -24,7 +24,7 @@ repos:
- id: trailing-whitespace - id: trailing-whitespace
- repo: https://github.com/charliermarsh/ruff-pre-commit - repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.254 rev: v0.0.257
hooks: hooks:
- id: ruff - id: ruff
args: [--fix] args: [--fix]
@@ -35,7 +35,7 @@ repos:
- id: black - id: black
- repo: https://github.com/codespell-project/codespell - repo: https://github.com/codespell-project/codespell
rev: v2.2.2 rev: v2.2.4
hooks: hooks:
- id: codespell # See 'pyproject.toml' for args - id: codespell # See 'pyproject.toml' for args
additional_dependencies: additional_dependencies:
@@ -48,7 +48,7 @@ repos:
args: [--tab-width, "4"] args: [--tab-width, "4"]
- repo: https://github.com/pre-commit/mirrors-eslint - repo: https://github.com/pre-commit/mirrors-eslint
rev: v8.35.0 rev: v8.36.0
hooks: hooks:
- id: eslint - id: eslint
files: pyscriptjs/src/.*\.[jt]sx?$ # *.js, *.jsx, *.ts and *.tsx files: pyscriptjs/src/.*\.[jt]sx?$ # *.js, *.jsx, *.ts and *.tsx

View File

@@ -101,7 +101,7 @@
df = pd.DataFrame() df = pd.DataFrame()
def loadFromURL(*ags, **kws): def loadFromURL(*args, **kws):
global df global df
# clear dataframe & output # clear dataframe & output

View File

@@ -47,7 +47,7 @@
from js import document from js import document
from pyodide.ffi.wrappers import add_event_listener 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 # create a new dictionary representing the new task
new_task_content = Element("new-task-content") new_task_content = Element("new-task-content")
task = { "content": new_task_content.value, "done": False, "created_at": dt.now() } task = { "content": new_task_content.value, "done": False, "created_at": dt.now() }

View File

@@ -10,7 +10,7 @@ task_list = Element("list-tasks-container")
new_task_content = Element("new-task-content") new_task_content = Element("new-task-content")
def add_task(*ags, **kws): def add_task(*args, **kws):
# ignore empty task # ignore empty task
if not new_task_content.element.value: if not new_task_content.element.value:
return None return None

View File

@@ -148,7 +148,7 @@ export class PyScriptApp {
this.logStatus(`Downloading ${interpreter_cfg.name}...`); this.logStatus(`Downloading ${interpreter_cfg.name}...`);
// download pyodide by using a <script> tag. Once it's ready, the // download pyodide by using a <script> tag. Once it's ready, the
// "load" event will be fired and the exeuction logic will continue. // "load" event will be fired and the execution logic will continue.
// Note that the load event is fired asynchronously and thus any // Note that the load event is fired asynchronously and thus any
// exception which is throw inside the event handler is *NOT* caught // exception which is throw inside the event handler is *NOT* caught
// by the try/catch inside main(): that's why we need to .catch() it // by the try/catch inside main(): that's why we need to .catch() it