From fa290049515c38e68edda7e8c17be69b8793bb84 Mon Sep 17 00:00:00 2001 From: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Date: Sun, 21 Jan 2024 20:42:23 +0000 Subject: [PATCH] Bump Ruff to 0.1.14 and remove flake8-simplify (#11906) Authored-by: Daniel Eades Co-authored-by: Daniel Eades --- .github/workflows/lint.yml | 4 ++-- .ruff.toml | 2 +- Makefile | 2 +- pyproject.toml | 3 +-- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 0d40e5a3815..7e7b939a2e1 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -29,7 +29,7 @@ jobs: run: python -m pip install --upgrade pip - name: Install Ruff - run: python -m pip install "ruff==0.1.13" + run: python -m pip install "ruff==0.1.14" - name: Lint with Ruff run: ruff . --output-format github @@ -46,7 +46,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - python -m pip install --upgrade "flake8>=3.5.0" "flake8-simplify" + python -m pip install --upgrade "flake8>=3.5.0" - name: Lint with flake8 run: flake8 . diff --git a/.ruff.toml b/.ruff.toml index 580da1206b2..fb20d07bed5 100644 --- a/.ruff.toml +++ b/.ruff.toml @@ -1,6 +1,6 @@ target-version = "py39" # Pin Ruff to Python 3.9 line-length = 95 -required-version = "0.1.13" +required-version = "0.1.14" show-source = true [lint] diff --git a/Makefile b/Makefile index bf6f61b267d..bd9c43c53ac 100644 --- a/Makefile +++ b/Makefile @@ -41,7 +41,7 @@ clean: clean .PHONY: style-check style-check: - @flake8 + @ruff .PHONY: type-check type-check: diff --git a/pyproject.toml b/pyproject.toml index ff479759fcb..df458610527 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -82,8 +82,7 @@ docs = [ ] lint = [ "flake8>=3.5.0", - "flake8-simplify", - "ruff==0.1.13", + "ruff==0.1.14", "mypy==1.8.0", "sphinx-lint", "docutils-stubs",