From f7dbab687706f9849998d6a1dba22647e720caec Mon Sep 17 00:00:00 2001 From: Benedikt Fuchs Date: Mon, 1 May 2023 01:09:02 +0200 Subject: [PATCH 1/3] activate ruff and flake8 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 609d5ca..70b46ad 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,7 +37,7 @@ line-length = 120 target-version = 'py310' [tool.pytest.ini_options] -addopts = "--mypy -n auto" +addopts = "--mypy -n auto --ruff --flake8" filterwarnings = [ "error", "ignore:SelectableGroups dict interface is deprecated. Use select." From 31bef85dd77718d96310a2bec59e8779d7545596 Mon Sep 17 00:00:00 2001 From: Benedikt Fuchs Date: Mon, 1 May 2023 01:10:22 +0200 Subject: [PATCH 2/3] run only ruff via pytest --- .github/workflows/ci.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8649b13..a07c262 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -82,8 +82,6 @@ jobs: cache: 'poetry' - name: Install Dependencies run: poetry install - - name: Run linter - run: poetry run ruff . - name: Run tests run: poetry run pytest -vv build-n-publish: From a09871221e86c38273554d465806384b59fbdf90 Mon Sep 17 00:00:00 2001 From: Benedikt Fuchs Date: Mon, 1 May 2023 01:12:48 +0200 Subject: [PATCH 3/3] use latest ruff version --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 70b46ad..c3a604f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,7 +15,7 @@ python = "^3.7" pytest = "^7.2.0" pytest-mypy = "^0.10.3" black = "^22.12.0" -ruff = "^0.0.205" +ruff = "*" pytest-github-actions-annotate-failures = {git="https://github.com/helpmefindaname/pytest-github-actions-annotate-failures.git", branch="add_multiline_error_strings"} pytest-xdist = "^3.1.0" flake8 = "<5.0.0"