Improve makefile (#2338)
* Update Makefile to use command substitution for killing process * break long lines into shorter ones * replace fixed values with variables * correct the unit test coverage report --------- Co-authored-by: italojohnny <italojohnnydosanjos@gmail.com> Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
This commit is contained in:
parent
2ed4d54f99
commit
146ef8c8cd
2 changed files with 62 additions and 13 deletions
|
|
@ -151,6 +151,28 @@ log_cli = true
|
|||
markers = ["async_test", "api_key_required"]
|
||||
|
||||
|
||||
[tool.coverage.run]
|
||||
command_line = """
|
||||
-m pytest
|
||||
--cov --cov-report=term --cov-report=html
|
||||
--instafail -ra -n auto -m "not api_key_required"
|
||||
tests/unit
|
||||
"""
|
||||
source = ["src/backend/base/langflow/"]
|
||||
omit = ["*/alembic/*", "tests/*", "*/__init__.py"]
|
||||
|
||||
|
||||
[tool.coverage.report]
|
||||
sort = "Stmts"
|
||||
skip_empty = true
|
||||
show_missing = false
|
||||
ignore_errors = true
|
||||
|
||||
|
||||
[tool.coverage.html]
|
||||
directory = "coverage"
|
||||
|
||||
|
||||
[tool.ruff]
|
||||
exclude = ["src/backend/langflow/alembic/*"]
|
||||
line-length = 120
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue