Skip to content

Commit

Permalink
feat: pytest config via pyproject (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
julianolf authored Jun 4, 2024
1 parent d546bf2 commit a5b3382
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 0 additions & 4 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@
},
"editor.formatOnSave": true,
"python.defaultInterpreterPath": ".venv/bin/python",
"python.testing.pytestArgs": [
"--disable-warnings",
"tests"
],
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true,
"[python]": {
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ format:
ruff format

test:
pytest --disable-warnings -x -n auto --cov-report= --cov=$(SOURCEPATH) tests/
pytest -n auto --cov-report= --cov=$(SOURCEPATH)

coverage: test .coverage
coverage report -m --fail-under=100
Expand Down
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,7 @@ quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"

[tool.pytest.ini_options]
addopts = "--disable-warnings -x"
testpaths = ["tests/"]

0 comments on commit a5b3382

Please sign in to comment.