Skip to content

Commit bf01294

Browse files
committed
adding formating and supress knime ap warnings during unit tests
1 parent ce9edec commit bf01294

File tree

4 files changed

+116
-41
lines changed

4 files changed

+116
-41
lines changed

pixi.lock

Lines changed: 98 additions & 37 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pixi.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@ platforms = ["win-64", "linux-64", "osx-64", "osx-arm64"]
44

55
[tasks]
66
test = { cmd = "pytest" }
7+
format = { cmd = "ruff format ." }
78

89
[dependencies]
910
python = "3.11.*"
1011
pytest = "*"
12+
ruff = "*"
1113
knime-extension = "*"
1214
knime-python-base = "*"
1315

pytest.ini

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[pytest]
2+
log_cli = true
3+
log_cli_level = INFO
4+
log_level = INFO
5+
# Exclude specific warnings from pytest output caused by running outside of KNIME AP
6+
filterwarnings =
7+
ignore:.*This warning can be ignored when running Python code outside of KNIME AP.*:Warning

0 commit comments

Comments
 (0)