From 769fc49ef23cdc87328d3b1403d4cf4df51803d1 Mon Sep 17 00:00:00 2001 From: Trysdyn Black Date: Mon, 8 Jan 2024 06:14:15 -0800 Subject: [PATCH] Add preview rules to ruff At the moment the main rule I want is PLW1514: open() without explicit encoding. I may need to trim this back to explicit rules. --- .config/ruff/pyproject.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.config/ruff/pyproject.toml b/.config/ruff/pyproject.toml index 76013d0..363b196 100644 --- a/.config/ruff/pyproject.toml +++ b/.config/ruff/pyproject.toml @@ -2,6 +2,10 @@ line-length = 120 indent-width = 4 +# We preview to grab a few rules like PLW1514 +# Might be smarter to do explicit-preview-rules... +preview = true + # Dismissed selections: # - CPY: Copyright notice screamer; I don't care # - TD: Overly opinionated on FIXME/TODO format. FIX covers better