mirror of
https://github.com/TheAlgorithms/Python.git
synced 2026-03-13 09:50:19 +08:00
Add running doctest to pytest default (#7840)
* Add default options for pytest
* updating DIRECTORY.md
* Move pytest settings to pyproject.toml
* Move coverage settings to the pyproject.toml
* Return --doctest-continue-on-failure to pytest
* Convert pytest args to list
* Update pyproject.toml
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: Christian Clauss <cclauss@me.com>
This commit is contained in:
20
pyproject.toml
Normal file
20
pyproject.toml
Normal file
@@ -0,0 +1,20 @@
|
||||
[tool.pytest.ini_options]
|
||||
markers = [
|
||||
"mat_ops: mark a test as utilizing matrix operations.",
|
||||
]
|
||||
addopts = [
|
||||
"--durations=10",
|
||||
"--doctest-modules",
|
||||
"--showlocals",
|
||||
]
|
||||
|
||||
|
||||
[tool.coverage.report]
|
||||
omit = [".env/*"]
|
||||
sort = "Cover"
|
||||
|
||||
#[report]
|
||||
#sort = Cover
|
||||
#omit =
|
||||
# .env/*
|
||||
# backtracking/*
|
||||
Reference in New Issue
Block a user