From a42d71dcefc94b52f0c88d1eb79a312660a4b941 Mon Sep 17 00:00:00 2001 From: Mike Degatano Date: Fri, 19 Jul 2024 03:09:13 -0400 Subject: [PATCH] Small cleanup to pyproject.toml (#5191) --- pyproject.toml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 98ed85bc8..cb888684c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -31,7 +31,7 @@ include-package-data = true include = ["supervisor*"] [tool.pylint.MAIN] -py-version = "3.11" +py-version = "3.12" # Use a conservative default here; 2 should speed up most setups and not hurt # any too bad. Override on command line as appropriate. jobs = 2 @@ -234,6 +234,7 @@ select = [ "B014", # Exception handler with duplicate exception "B023", # Function definition does not bind loop variable {name} "B026", # Star-arg unpacking after a keyword argument is strongly discouraged + "B904", # Use raise from to specify exception cause "C", # complexity "COM818", # Trailing comma on bare tuple prohibited "D", # docstrings @@ -247,7 +248,6 @@ select = [ "N804", # First argument of a class method should be named cls "N805", # First argument of a method should be named self "N815", # Variable {name} in class scope should not be mixedCase - "PGH001", # No builtin eval() allowed "PGH004", # Use specific rule codes when using noqa "PLC0414", # Useless import alias. Import alias does not rename original package. "PLC", # pylint @@ -286,7 +286,6 @@ select = [ "T20", # flake8-print "TID251", # Banned imports "TRY004", # Prefer TypeError exception for invalid type - "TRY200", # Use raise from to specify exception cause "TRY302", # Remove exception handler; error is immediately re-raised "UP", # pyupgrade "W", # pycodestyle