From d525daee20864fc3b2d58a2a5f14c163ee5ca877 Mon Sep 17 00:00:00 2001 From: Abhabongse Janthong <6845502+abhabongse@users.noreply.github.com> Date: Thu, 4 Apr 2024 01:54:27 +0700 Subject: [PATCH] Fix just script to use pyright instead of mypy --- Justfile | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/Justfile b/Justfile index a0bfab0..865e6fb 100644 --- a/Justfile +++ b/Justfile @@ -21,23 +21,19 @@ export-python-packages: # |__/ # Run tests against source files -check: ruff mypy pytest +check: ruff pyright pytest + +# Format code using ruff +format: + ruff check --fix && ruff format # Check code with ruff ruff: ruff check -# Watch for code changes and run check with ruff -ruff-watch: - ruff check --watch - -# Format code -ruff-format: - ruff check --fix && ruff format - # Type checking on all Python source files -mypy: - mypy src +pyright: + pyright # Run pytest against source files pytest +ARGS='-v':