Skip to content

Commit

Permalink
Fix lint task
Browse files Browse the repository at this point in the history
  • Loading branch information
medihack committed Sep 27, 2024
1 parent fd9416a commit 476cdee
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from pathlib import Path
from shutil import copy

from adit_radis_shared.invoke_tasks import bump_version, lint, show_outdated # noqa: F401
from adit_radis_shared.invoke_tasks import show_outdated # noqa: F401
from invoke.context import Context
from invoke.tasks import task

Expand Down Expand Up @@ -69,6 +69,16 @@ def test(
ctx.run(cmd, pty=True)


@task
def lint(ctx: Context):
"""Lint the source code (ruff, djlint, pyright)"""
print("Linting Python code with ruff...")
ctx.run("poetry run ruff check .", pty=True)

print("Linting Python code with pyright...")
ctx.run("poetry run pyright", pty=True)


@task
def publish_client(ctx: Context):
"""Publish RADIS Client to PyPI
Expand Down

0 comments on commit 476cdee

Please sign in to comment.