From de50aa934fe620574227ec2fedb8bded00bd88a9 Mon Sep 17 00:00:00 2001 From: dangotbanned <125183946+dangotbanned@users.noreply.github.com> Date: Wed, 5 Jun 2024 10:25:49 +0100 Subject: [PATCH] ci: Add additional `ruff` rules to `pyproject.toml` Only highly autofixable groups from [#3430](https://github.com/vega/altair/issues/3430). Aiming to refine further, depending on how much manual fixing this generates. --- pyproject.toml | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index a7ad687f7..c85cc38f4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -172,14 +172,26 @@ select = [ "C4", # pycodestyle-error "E", - # pycodestyle-warning - "W", + # flake8-errmsg + "EM", # pyflakes "F", + # flynt + "FLY", + # flake8-pie + "PIE", + # Ruff-specific rules + "RUF", + # flake8-simplify + "SIM", + # flake8-type-checking + "TCH", # flake8-tidy-imports "TID", - # flake8-simplify - "SIM101" + # pyupgrade + "UP", + # pycodestyle-warning + "W", ] ignore = [ # Whitespace before ':'