From 9ddeecb033550f9ba26550ad700da1f427610d15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Sat, 10 Feb 2024 20:56:17 +0100 Subject: [PATCH] cq: Update ruff to 0.2.1 --- .github/workflows/lint.yml | 2 +- .pre-commit-config.yaml | 2 +- pyproject.toml | 19 +++++++++---------- 3 files changed, 11 insertions(+), 12 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 5fb36639..2e4a7779 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -16,4 +16,4 @@ jobs: - uses: chartboost/ruff-action@v1 with: src: "." - version: 0.0.286 + version: 0.2.1 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fd08397d..f970e572 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -18,6 +18,6 @@ repos: - id: black - repo: https://github.com/charliermarsh/ruff-pre-commit - rev: v0.0.286 + rev: v0.2.1 hooks: - id: ruff diff --git a/pyproject.toml b/pyproject.toml index c6ceed87..f8255ee6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -62,11 +62,19 @@ skip_gitignore = true [tool.ruff] line-length = 88 +exclude = [ + ".eggs", + ".git", + ".ruff_cache", + ".venv", +] + +target-version = "py37" +[tool.ruff.lint] select = [ "PYI", # flake8-pyi ] - ignore = [ "PYI001", # Name of private `TypeVar` must start with `_` "PYI011", # Only simple default values allowed for typed arguments @@ -76,12 +84,3 @@ ignore = [ "PYI052", # Need type annotation "PYI054", # Numeric literals with a string representation longer than ten characters are not permitted ] - -exclude = [ - ".eggs", - ".git", - ".ruff_cache", - ".venv", -] - -target-version = "py37"