diff pyproject.toml @ 7831:9c58f5940c20

chore(lint) update tests add a number of error tests (E) to make it more like the flake8 whitespace and format checks. Also untabify file. Use spaces.
author John Rouillard <rouilj@ieee.org>
date Sun, 24 Mar 2024 15:17:30 -0400
parents 1b7162938988
children 736f769b48c8
line wrap: on
line diff
--- a/pyproject.toml	Sun Mar 24 15:16:02 2024 -0400
+++ b/pyproject.toml	Sun Mar 24 15:17:30 2024 -0400
@@ -38,28 +38,43 @@
 ]
 
 [tool.ruff.lint]
+preview = true
+explicit-preview-rules = true
+
 select = [
         "A",   # flake-8-builtins shadowing a builtin
-	"ARG", # flake8-unused-arguments
-	"B",   # flake8-bugbear
-	"C4",  # flake8-comprehensions
-	"C901", # McCabe complexity
-	"COM", # flake8-commas
-	"E",
-	"F",   # pyflakes
-	"G",   # logging format _(.... % ...) bad use _(...) % ...
+        "ARG", # flake8-unused-arguments
+        "B",   # flake8-bugbear
+        "C4",  # flake8-comprehensions
+        "C901", # McCabe complexity
+        "COM", # flake8-commas
+        "E",   # errors
+           # enable preview rules:
+           # Error rules indentation
+           "E111", "E112", "E113",
+           # Error whitespace in brackets/around punctuation
+           #       around params, tabs/space around operators
+           "E201", "E202",  "E203", "E211", "E222", "E223", "E224",
+           "E225", "E226", "E227",  "E228", "E231", "E241", "E242",
+           "E251", "E252", "E271", "E272", "E275",
+           # Error blank lines between methods, classes etc.
+           "E301", "E302", "E303", "E304", "E305", "E306",
+           
+        "F",   # pyflakes
+        "G",   # logging format _(.... % ...) bad use _(...) % ...
         "I",   # imports
-	"INT", # check gettext
-	"Q",   # quoting consistancy
-	"PERF",   # performance lint
-	"PIE794", # duplicate class field definition
-	"PL",  # pylint
-	"RET", # check for inconistent returns
-	"RUF", # ruff
-	"S",   # bandit - security
-	"SIM", # simplify code
-	"T10", # flake8-debugger
-	"W",   # pycode whitespace warnings
+        "INT", # check gettext
+        "Q",   # quoting consistancy
+        "PERF",   # performance lint
+        "PIE794", # duplicate class field definition
+        "PL",  # pylint
+	"PLW", # warnings
+        "RET", # check for inconistent returns
+        "RUF", # ruff
+        "S",   # bandit - security
+        "SIM", # simplify code
+        "T10", # flake8-debugger
+        "W",   # pycode whitespace warnings
 ]
 
 ignore = [ 
@@ -102,10 +117,3 @@
 
 [tool.ruff.lint.mccabe]
 max-complexity = 50
-
-#
-#skip=
-#    C901
-#    E228
-#    E302
-#    E401

Roundup Issue Tracker: http://roundup-tracker.org/