From b83e7fdfe8dd817cc8f6bf7ef62b4d5373998b01 Mon Sep 17 00:00:00 2001 From: ChengZi Date: Thu, 4 Jul 2024 11:20:40 +0800 Subject: [PATCH] update ruff version Signed-off-by: ChengZi --- CONTRIBUTING.md | 2 ++ pyproject.toml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 19afeb0..5db6384 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -4,6 +4,8 @@ ### Run code quality checks locally``` +Install and update your [ruff](https://github.com/astral-sh/ruff) and [hatch](https://github.com/pypa/hatch) to the latest versions. + To check your code style according to linting rules run: ```sh hatch run lint:all diff --git a/pyproject.toml b/pyproject.toml index ee62cd7..04ba181 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -68,7 +68,7 @@ dependencies = [ [tool.hatch.envs.lint.scripts] typing = "mypy --install-types --non-interactive --explicit-package-bases {args:src/ tests}" style = [ - "ruff {args:.}", + "ruff check {args:.}", "black --check --diff {args:.}", ] fmt = [