updated ruff linitng
This commit is contained in:
29
ruff.toml
29
ruff.toml
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user