Skip to content

Commit

Permalink
chore: 给 ruff 规则加上注释
Browse files Browse the repository at this point in the history
  • Loading branch information
he0119 committed Jun 13, 2024
1 parent 87cc334 commit d477570
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,22 @@ line-length = 88
target-version = "py39"

[tool.ruff.lint]
select = ["E", "W", "F", "UP", "C", "T", "PYI", "PT", "Q"]
ignore = ["E402", "C901", "UP037"]
select = [
"W", # pycodestyle warnings
"E", # pycodestyle errors
"F", # pyflakes
"UP", # pyupgrade
"C4", # flake8-comprehensions
"T10", # flake8-debugger
"T20", # flake8-print
"PYI", # flake8-pyi
"PT", # flake8-pytest-style
"Q", # flake8-quotes
]
ignore = [
"E402", # module-import-not-at-top-of-file, Module level import not at top of cell
"UP037", # quoted-annotation, Remove quotes from type annotation
]

[tool.poetry.plugins.nb_scripts]
datastore = "nonebot_plugin_datastore.script.cli:main"
Expand Down

0 comments on commit d477570

Please sign in to comment.