updated ruff linitng

This commit is contained in:
Daveanand Mannie
2024-08-30 14:41:40 -04:00
parent 09fdbf5dbe
commit 7a376b771c
2 changed files with 12 additions and 33 deletions

View File

@@ -1,25 +1,3 @@
# need to add to ~/appdata/Roaming/ruff/ruff.toml
select = [
# pycodestyle
"E",
"W",
# Pyflakes
"F",
# pyupgrade
"UP",
# flake8-bugbear
"B",
# flake8-simplify
"SIM",
# isort
"I",
# pep8-naming
"N",
# pycodestyle
# "D",
# "TD",
]
# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
".direnv",
@@ -53,8 +31,6 @@ exclude = [
line-length = 79
indent-width = 4
# Assume Python 3.8
[lint]
# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default.
# Unlike Flake8, Ruff doesn't enable pycodestyle warnings (`W`) or
@@ -63,6 +39,8 @@ select = [
# pycodestyle
"E",
"W",
"E2",
"E3",
# Pyflakes
"F",
# pyupgrade
@@ -80,7 +58,8 @@ select = [
# "TD",
]
ignore = [
"N812"
"N812",
"SIM108"
]
# Allow fix for all enabled rules (when `--fix`) is provided.