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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,4 +104,4 @@ jobs:

- name: Test with pytest
run: |
pytest
pytest --strict
13 changes: 13 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ test = [
"pyhamcrest>=2.1.0",
"pytest>=8.3.3",
"pytest-cov>=5.0.0",
"pytest-timeout>=2.4.0",
"pytest-repeat>=0.9.4",
"pytest-xdist>=3.8.0",
]
release = [
"python-semantic-release>=10.4.1",
Expand Down Expand Up @@ -121,12 +124,22 @@ ignore = [
# main codebase for clarity. However it's common to assert against a boolean
# in tests and having to use kwargs in all cases will clutter the tests.
"FBT003",
# Configurable helper functions are common in test files and it is overbearing
# to restrict the number of arguments per function definition.
"PLR0913",
]

[tool.pytest.ini_options]
addopts = "--cov=dvsim --cov-report term-missing"
norecursedirs = ["*.egg", ".*", "_darcs", "build", "dist", "venv", "scratch", "doc"]

[tool.coverage.run]
parallel = true
concurrency = ["multiprocessing"]

[tool.coverage.report]
show_missing = true

[tool.semantic_release]
commit_parser = "conventional"
version_toml = ["pyproject.toml:project.version"]
Expand Down
3 changes: 3 additions & 0 deletions ruff-ci.toml
Original file line number Diff line number Diff line change
Expand Up @@ -115,4 +115,7 @@ ignore = [
# main codebase for clarity. However it's common to assert against a boolean
# in tests and having to use kwargs in all cases will clutter the tests.
"FBT003",
# Configurable helper functions are common in test files and it is overbearing
# to restrict the number of arguments per function definition.
"PLR0913",
]
2 changes: 1 addition & 1 deletion src/dvsim/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def __init__(
items: Sequence[JobSpec],
launcher_cls: type[Launcher],
*,
interactive: bool,
interactive: bool = False,
) -> None:
"""Initialise a job scheduler.

Expand Down
Loading
Loading