Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,10 @@ jobs:
uses: codecov/test-results-action@v1
with:
env_vars: PYTHON_VERSION,PYDANTIC_VERSION
use_oidc: true

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
env_vars: PYTHON_VERSION,PYDANTIC_VERSION
env_vars: PYTHON_VERSION,PYDANTIC_VERSION
use_oidc: true
7 changes: 7 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,13 @@ test = "uv run pytest --cov=src --cov-report xml --junitxml=./junit.xml -n auto"
bump = "uv run bump-my-version bump"
show-bump = "uv run bump-my-version show-bump"

[tool.coverage.report]
exclude_lines = [
"raise NotImplementedError",
"if TYPE_CHECKING:",
"@overload",
"except ImportError:",
]

[tool.ruff]
line-length = 120
Expand Down
2 changes: 1 addition & 1 deletion tests/plugin_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ async def test_pip(app: App):

event = fake_group_message_event_v11(message="pip install nonebot2")
try:
from nonebot_plugin_template import pip
from nonebot_plugin_template import pip # type:ignore
except ImportError:
pytest.skip("nonebot_plugin_template.pip not found")

Expand Down
Loading