From 5c98ccd800cd470f933c06d0bdfc578a09e5efd4 Mon Sep 17 00:00:00 2001 From: Avasam Date: Sun, 17 Sep 2023 13:01:16 -0400 Subject: [PATCH] Update Ruff to 0.0.290 --- .pre-commit-config.yaml | 2 +- pyproject.toml | 5 +++-- scripts/requirements-dev.txt | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b6d40d3e..64245bf2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -17,7 +17,7 @@ repos: - id: pretty-format-ini args: [--autofix] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.0.289" # Must match requirements-dev.txt + rev: "v0.0.290" # Must match requirements-dev.txt hooks: - id: ruff args: [--fix] diff --git a/pyproject.toml b/pyproject.toml index a33b42a3..cb29fe84 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,8 +2,8 @@ [tool.ruff] target-version = "py39" line-length = 120 -select = ["ALL", "NURSERY"] -extend-fixable = ["NURSERY"] +select = ["ALL"] +preview = true # https://beta.ruff.rs/docs/rules ignore = [ ### @@ -71,6 +71,7 @@ ignore = [ "A", # Shadowing builtin names "ICN001", # unconventional-import-alias "N8", # Naming conventions + "PLR0904", # Too many public methods "PLR0913", # Argument count "PLW3201", # misspelled dunder method name "PYI042", # CamelCase TypeAlias diff --git a/scripts/requirements-dev.txt b/scripts/requirements-dev.txt index 636e036a..bcf08bdc 100644 --- a/scripts/requirements-dev.txt +++ b/scripts/requirements-dev.txt @@ -9,7 +9,7 @@ # Linters & Formatters add-trailing-comma>=3.1.0 # Must match .pre-commit-config.yaml autopep8>=2.0.4 # Must match .pre-commit-config.yaml -ruff>=0.0.289 # Ignore @override for bad-dunder-name # Must match .pre-commit-config.yaml +ruff>=0.0.290 # Ignore @override for bad-dunder-name # Must match .pre-commit-config.yaml # # Run `./scripts/designer.ps1` to quickly open the bundled Qt Designer. # Can also be downloaded externally as a non-python package