Skip to content

Commit

Permalink
👷 try fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
StarHeartHunt committed Oct 28, 2024
1 parent 491ed5e commit e7295c2
Showing 1 changed file with 24 additions and 3 deletions.
27 changes: 24 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ werkzeug = ">=2.3.6,<4.0.0"
nb-autodoc = { git = "https://github.com/nonebot/nb-autodoc.git" }

[tool.pytest.ini_options]
addopts = "--cov=nonebot/adapters/feishu --cov-report term-missing"
asyncio_mode = "auto"
addopts = "--cov=nonebot/adapters/feishu --cov-report=term-missing"
filterwarnings = ["error", "ignore::DeprecationWarning"]

[tool.black]
line-length = 88
Expand All @@ -69,8 +71,27 @@ line-length = 88
target-version = "py39"

[tool.ruff.lint]
select = ["E", "W", "F", "UP", "C", "T", "PYI", "PT", "Q"]
ignore = ["E402", "C901", "UP037", "PYI021"]
select = [
"F", # Pyflakes
"W", # pycodestyle warnings
"E", # pycodestyle errors
"UP", # pyupgrade
"ASYNC", # flake8-async
"C4", # flake8-comprehensions
"T10", # flake8-debugger
"T20", # flake8-print
"PYI", # flake8-pyi
"PT", # flake8-pytest-style
"Q", # flake8-quotes
"RUF", # Ruff-specific rules
]
ignore = [
"E402", # module-import-not-at-top-of-file
"UP037", # quoted-annotation
"RUF001", # ambiguous-unicode-character-string
"RUF002", # ambiguous-unicode-character-docstring
"RUF003", # ambiguous-unicode-character-comment
]

[tool.ruff.lint.flake8-pytest-style]
fixture-parentheses = false
Expand Down

0 comments on commit e7295c2

Please sign in to comment.