From 27236a3ee5cfddfa93461c5b08385f87777a19ba Mon Sep 17 00:00:00 2001 From: Khaleel Al-Adhami Date: Wed, 28 May 2025 21:23:21 -0700 Subject: [PATCH 1/3] enable all ruff rules but not really --- pyproject.toml | 58 +++++++++++++++++++++++++++++++------------------- 1 file changed, 36 insertions(+), 22 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index cf7a48bb3c0..a2d6350c648 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -83,36 +83,50 @@ reportIncompatibleMethodOverride = false target-version = "py310" output-format = "concise" lint.isort.split-on-trailing-comma = false -lint.select = [ - "ANN001", - "B", - "C4", - "D", - "E", - "ERA", - "F", - "FURB", - "I", - "N", - "PERF", - "PGH", - "PTH", - "RUF", - "SIM", - "T", - "TRY", - "UP", - "W", -] +lint.select = ["ALL"] lint.ignore = [ + "A", + "ANN002", + "ANN003", + "ANN2", + "ANN4", + "ARG", + "ASYNC", "B008", + "BLE", + "C901", + "COM", "D205", + "DTZ", "E501", + "EM", "F403", - "SIM115", + "FBT", + "FIX", + "FLY", + "G004", + "INP", + "ISC003", + "NPY", + "PD", + "PIE", + "PLC", + "PLR", + "PLW", + "PT", + "PYI", + "RET", + "RSE", "RUF006", "RUF008", "RUF012", + "S", + "SIM115", + "SLF", + "SLOT", + "TC", + "TD", + "TID", "TRY0", "UP038", ] From 876cafd620ea1f701f8d844e8afcfd710b18e0bd Mon Sep 17 00:00:00 2001 From: Khaleel Al-Adhami Date: Wed, 28 May 2025 21:24:42 -0700 Subject: [PATCH 2/3] unchmod test urls --- tests/integration/test_urls.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100755 => 100644 tests/integration/test_urls.py diff --git a/tests/integration/test_urls.py b/tests/integration/test_urls.py old mode 100755 new mode 100644 From ac04d52f5e2e04c2d47f12f9d22c61834662e7dd Mon Sep 17 00:00:00 2001 From: Khaleel Al-Adhami Date: Wed, 28 May 2025 22:28:00 -0700 Subject: [PATCH 3/3] ruff check --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index a2d6350c648..9e83118e7e5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -233,7 +233,7 @@ hooks = [ "reflex", "tests", ] }, - { id = "ruff", args = [ + { id = "ruff-check", args = [ "--fix", "--exit-non-zero-on-fix", ], exclude = "^integration/benchmarks/" },