Skip to content

Commit

Permalink
Fix ruff config
Browse files Browse the repository at this point in the history
  • Loading branch information
KolinGuo committed Feb 6, 2024
1 parent f90796e commit 17b8dc2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ tag_filter = "v.*"
[tool.ruff]
line-length = 88
preview = true # for certain rules and black preview behavior
exclude = ["third_party"]

[tool.ruff.lint]
select = [
"F", # Flake8
"E", "W", # pycodestyle
Expand Down Expand Up @@ -84,7 +87,6 @@ select = [
"PT025",
"PT026",
"PYI", # flake8-pyi
"TRY200",
"TRY302",
"RUF008", # mutable dataclass default
"RUF013", # implicit typing.Optional is disallowed
Expand All @@ -97,7 +99,6 @@ ignore = [
"EXE002", # ntfs has no executable bit
"SIM105", # allow try-except-pass blocks
]
exclude = ["third_party"]

[tool.ruff.lint.per-file-ignores]
"__init__.py" = [
Expand Down

0 comments on commit 17b8dc2

Please sign in to comment.