Skip to content

Commit

Permalink
fix: ignore version lines for coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
manmartgarc committed Apr 28, 2024
1 parent 3bd5b79 commit 74ed071
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
Expand Down
7 changes: 6 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,12 @@ dependencies = ["mypy>=1.0.0"]
check = "mypy --install-types --non-interactive src/stochatreat tests/"

[tool.coverage.report]
exclude_lines = ["no cov", "if __name__ == .__main__.:", "if TYPE_CHEKCING"]
exclude_lines = [
"no cov",
"if __name__ == .__main__.:",
"if TYPE_CHEKCING",
"__version__ = ",
]

[tool.ruff]
line-length = 79
Expand Down

0 comments on commit 74ed071

Please sign in to comment.