mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
combine pytest.ini with pyproject.toml
This commit is contained in:
parent
3d6a358042
commit
c247f430f7
@ -1,5 +0,0 @@
|
|||||||
[pytest]
|
|
||||||
DJANGO_SETTINGS_MODULE = webtas.settings
|
|
||||||
; python_files = tests.py test_*.py *_tests.py
|
|
||||||
|
|
||||||
addopts = --cov=. --cov-config=.coveragerc --cov-report xml:cov.xml
|
|
4
coverage/.gitignore
vendored
Normal file
4
coverage/.gitignore
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
# Ignore everything in this directory
|
||||||
|
*
|
||||||
|
# Except this file
|
||||||
|
!.gitignore
|
@ -142,8 +142,24 @@ version = { attr = "invokeai.version.__version__" }
|
|||||||
"invokeai.configs" = ["*.example", "**/*.yaml", "*.txt"]
|
"invokeai.configs" = ["*.example", "**/*.yaml", "*.txt"]
|
||||||
"invokeai.frontend.web.dist" = ["**"]
|
"invokeai.frontend.web.dist" = ["**"]
|
||||||
|
|
||||||
|
#=== Begin: PyTest and Coverage
|
||||||
[tool.pytest.ini_options]
|
[tool.pytest.ini_options]
|
||||||
addopts = "-p pytest_cov --junitxml=junit/test-results.xml --cov-report=term:skip-covered --cov=ldm/invoke --cov=backend --cov-branch"
|
addopts = "--cov-report term --cov-report html --cov-report xml"
|
||||||
|
[tool.coverage.run]
|
||||||
|
branch = true
|
||||||
|
source = ["invokeai"]
|
||||||
|
omit = ["*tests*", "*migrations*", ".venv/*", "*.env"]
|
||||||
|
[tool.coverage.report]
|
||||||
|
show_missing = true
|
||||||
|
fail_under = 85 # let's set something sensible on Day 1 ...
|
||||||
|
[tool.coverage.json]
|
||||||
|
output = "coverage/coverage.json"
|
||||||
|
pretty_print = true
|
||||||
|
[tool.coverage.html]
|
||||||
|
directory = "coverage/html"
|
||||||
|
[tool.coverage.xml]
|
||||||
|
output = "coverage/index.xml"
|
||||||
|
#=== End: PyTest and Coverage
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
max-line-length = 120
|
max-line-length = 120
|
||||||
|
Loading…
Reference in New Issue
Block a user