Skip to content

Commit

Permalink
🔧 update ruff config
Browse files Browse the repository at this point in the history
  • Loading branch information
yanyongyu authored Mar 26, 2024
1 parent f0e2db1 commit 7942e6e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pyproject.example.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,26 +43,25 @@ select = [
# "I", # isort
"UP", # pyupgrade
"ASYNC", # flake8-async
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"T10", # flake8-debugger
"T20", # flake8-print
"PYI", # flake8-pyi
"PT", # flake8-pytest-style
"Q", # flake8-quotes
"SIM", # flake8-simplify
"TID", # flake8-tidy-imports
"RUF", # Ruff-specific rules
]
ignore = [
"E402", # module-import-not-at-top-of-file
"B008", # function-call-in-default-argument
"RUF001", # ambiguous-unicode-character-string
"RUF002", # ambiguous-unicode-character-docstring
"RUF003", # ambiguous-unicode-character-comment
]

[tool.ruff.lint.per-file-ignores]
"githubkit/rest/**" = ["E501", "PYI016", "TID"]
"githubkit/versions/**" = ["E501", "PYI016", "TID"]

[tool.ruff.lint.isort]
length-sort = true
force-sort-within-sections = true
Expand Down

0 comments on commit 7942e6e

Please sign in to comment.