Skip to content

Commit

Permalink
ci: move pytest command
Browse files Browse the repository at this point in the history
  • Loading branch information
DeadNews committed Jul 18, 2023
1 parent f0bce4a commit 07aa81f
Showing 1 changed file with 19 additions and 12 deletions.
31 changes: 19 additions & 12 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,31 @@ types-pyyaml = "^6.0.12.9"
pytest = "^7.4.0"
pytest-cov = "^4.1.0"

[tool.poetry-dynamic-versioning]
enable = true
vcs = "git"
style = "semver"

[tool.poe.tasks]
ruff = "ruff check ."
black = "black --check ."
mypy = "mypy ."
lint.sequence = ["ruff", "black", "mypy"]

[tool.poetry-dynamic-versioning]
enable = true
vcs = "git"
style = "semver"
[tool.poe.tasks.test]
cmd = "pytest --cov-report=xml"

[tool.pytest.ini_options]
addopts = "--verbose --cov=./src --cov-report=term"
testpaths = ["tests"]
markers = ["online"]

[tool.coverage.report]
exclude_lines = [
"# pragma: no cover",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]

[tool.black]
line-length = 99
Expand All @@ -63,14 +78,6 @@ warn_unused_ignores = true
module = ["tests.*"]
allow_untyped_defs = true

[tool.pytest.ini_options]
addopts = "--verbose --cov=./src"
testpaths = ["tests"]
markers = ["docker", "key_required"]

[tool.coverage.report]
exclude_lines = ["if TYPE_CHECKING:", "if __name__ == .__main__.:"]

[tool.ruff]
line-length = 99
select = ["ALL"]
Expand Down

0 comments on commit 07aa81f

Please sign in to comment.