Skip to content

Commit daaae17

Browse files
committed
tests: filter irrelevant SQLAlchemy DISTINCT ON warning spam
1 parent c38fbb0 commit daaae17

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

pyproject.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,11 @@ packages = ["src/tagstudio"]
6565

6666

6767
[tool.pytest.ini_options]
68-
#addopts = "-m 'not qt'"
6968
qt_api = "pyside6"
7069
pythonpath = ["src"]
70+
filterwarnings = [
71+
"ignore:DISTINCT ON is currently supported only by the PostgreSQL dialect:sqlalchemy.exc.SADeprecationWarning",
72+
]
7173

7274
[tool.pyright]
7375
ignore = [
@@ -76,7 +78,8 @@ ignore = [
7678
"src/tagstudio/qt/previews/vendored/pydub/",
7779
]
7880
include = ["src/tagstudio", "tests"]
79-
# reference for the settings here: https://github.com/microsoft/pyright/blob/main/docs/configuration.md
81+
# Reference for the settings here: https://github.com/microsoft/pyright/blob/main/docs/configuration.md
82+
# Some rules exclusive to basedpyright: https://docs.basedpyright.com/latest/benefits-over-pyright/new-diagnostic-rules/
8083
reportAny = false
8184
reportIgnoreCommentWithoutRule = false
8285
reportImplicitStringConcatenation = false

0 commit comments

Comments
 (0)