MCPcopy Index your code
hub / github.com/reactive-python/reactpy / lint_py

Function lint_py

tasks.py:109–121  ·  view source on GitHub ↗

Run linters and type checkers

(context: Context, fix: bool = False)

Source from the content-addressed store, hash-verified

107
108@task
109def lint_py(context: Context, fix: bool = False):
110 """Run linters and type checkers"""
111 if fix:
112 context.run("ruff --fix .")
113 context.run("black .")
114 else:
115 context.run("ruff .")
116 context.run("black --check --diff .")
117 in_py(
118 context,
119 f"flake8 --toml-config '{ROOT / 'pyproject.toml'}' .",
120 "hatch run lint:all",
121 )
122
123
124@task(pre=[env_js])

Callers

nothing calls this directly

Calls 2

in_pyFunction · 0.85
runMethod · 0.45

Tested by

no test coverage detected