Adjust ruff config to be compatible with ruff-format

https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
This commit is contained in:
Kien Dang 2023-10-25 09:52:08 +08:00
parent c5d984e419
commit 02d7100ded

View File

@ -13,6 +13,7 @@ ignore = [
"B017", # pytest.raises(Exception) should be considered evil "B017", # pytest.raises(Exception) should be considered evil
"B028", # warnings.warn called without an explicit stacklevel keyword argument "B028", # warnings.warn called without an explicit stacklevel keyword argument
"B904", # check for raise statements in exception handlers that lack a from clause "B904", # check for raise statements in exception handlers that lack a from clause
"W191", # https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
] ]
exclude = [ exclude = [
@ -29,5 +30,4 @@ target-version = "py38"
[isort] [isort]
known-first-party = ["graphene", "graphene-django"] known-first-party = ["graphene", "graphene-django"]
known-local-folder = ["cookbook"] known-local-folder = ["cookbook"]
force-wrap-aliases = true
combine-as-imports = true combine-as-imports = true