From: Mike Bayer Date: Mon, 23 Sep 2024 14:23:44 +0000 (-0400) Subject: add mypy marker to pytest; pytest opts in pyproject.toml X-Git-Tag: rel_1_13_3~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2fa5d6540d7350e04a8beb73dfb0460ea6704313;p=thirdparty%2Fsqlalchemy%2Falembic.git add mypy marker to pytest; pytest opts in pyproject.toml this is to avoid warnings generated by SQLAlchemy's test config Change-Id: I91026a4bbd36eead3856e9394dc7c1d85b703e47 --- diff --git a/pyproject.toml b/pyproject.toml index 2d2edede..eedcd327 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,6 +7,16 @@ requires = [ [tool.black] line-length = 79 +[tool.pytest.ini_options] +addopts = "--tb native -v -r sfxX -p no:warnings -p no:logging --maxfail=100" +python_files = "tests/test_*.py" +markers = [ + "backend: tests that should run on all backends; typically dialect-sensitive", + "mypy: mypy integration / plugin tests (not used by Alembic currently)", +] + + + [tool.mypy] exclude = [ diff --git a/setup.cfg b/setup.cfg index 70daeadd..e3a51f25 100644 --- a/setup.cfg +++ b/setup.cfg @@ -116,12 +116,6 @@ mssql=mssql+pyodbc://scott:tiger^5HHH@mssql2017:1433/test?driver=ODBC+Driver+18+ oracle=oracle://scott:tiger@127.0.0.1:1521 oracle8=oracle://scott:tiger@127.0.0.1:1521/?use_ansi=0 -[alembic] -[tool:pytest] -addopts= --tb native -v -r sfxX -p no:warnings -p no:logging --maxfail=100 -python_files=tests/test_*.py -markers = - backend: tests that should run on all backends; typically dialect-sensitive