From 58d71f69602dfefb921a5ead5529e6e7f0805644 Mon Sep 17 00:00:00 2001 From: Fabien Cazenave Date: Mon, 22 Jul 2024 22:07:55 +0200 Subject: [PATCH] ruff update (#183) --- .github/workflows/tests.yml | 2 +- CONTRIBUTING.md | 4 ++-- Makefile | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 99c037f..b824024 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -62,7 +62,7 @@ jobs: run: isort kalamine --check - name: Run ruff - run: ruff kalamine + run: ruff check kalamine - name: Run mypy run: mypy kalamine diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 1298c7d..7c45af3 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -53,7 +53,7 @@ We rely on [ruff][3] and [mypy][4] for that, with their default configurations: ```bash black --check --quiet kalamine isort --check --quiet kalamine -ruff kalamine +ruff check kalamine mypy kalamine ``` @@ -66,7 +66,7 @@ make lint Many linting errors can be fixed automatically: ```bash -ruff --fix kalamine +ruff check --fix kalamine ``` [3]: https://docs.astral.sh/ruff/ diff --git a/Makefile b/Makefile index e324321..4e91b57 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,7 @@ format: ## Format sources lint: ## Lint sources black --check --quiet kalamine isort --check --quiet kalamine - ruff kalamine + ruff check kalamine mypy kalamine test: ## Run tests