Skip to content
Open
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
13 changes: 0 additions & 13 deletions .coveragerc

This file was deleted.

10 changes: 8 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ dev = [ # everything needed for development
"mypy >= 0.991",
"pre-commit >= 2.13.0",
"pytest >= 6.2.0",
"pytest-cov >= 6.0.0",
"ruff >= 0.4.0",
"setuptools >= 56.0.0",
]
Expand Down Expand Up @@ -85,7 +86,7 @@ build = "cp39-*" # abi3
select = "*"
inherit.repair-wheel-command = "append"
repair-wheel-command = [
"pipx run abi3audit --strict --report {wheel}",
"pipx run abi3audit --strict --report {wheel}",
]

[tool.cibuildwheel.linux]
Expand All @@ -99,9 +100,13 @@ archs = "x86_64 arm64"
archs = "AMD64"
before-build = "pip install delvewheel"
repair-wheel-command = [
"delvewheel repair -w {dest_dir} {wheel}",
"delvewheel repair -w {dest_dir} {wheel}",
]

[tool.coverage.run]
branch = true
source = ["src/sleepecg"]

[tool.mypy]
ignore_missing_imports = true
disallow_untyped_defs = true
Expand All @@ -116,6 +121,7 @@ filterwarnings = [
'ignore:.*datetime.datetime.utcfromtimestamp\(\):DeprecationWarning',
'ignore:(?s).*Pyarrow:DeprecationWarning',
]
addopts = "--cov"
Copy link
Contributor

@larsoner larsoner Jan 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From looking at lost of tracebacks on CIs and locally I'd recommend a couple more options we have in MNE-Python

Suggested change
addopts = "--cov"
addopts = "--cov=sleepecg -rfEXs --cov-report= --tb=short"

some of which could then be removed from

- run: pytest -rfEXs --cov=sleepecg --cov-report=xml --tb=short --cov-branch --color=yes $PYTEST_EXTRA tests/


[tool.ruff]
line-length = 92
Expand Down
Loading