]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commitdiff
add mypy marker to pytest; pytest opts in pyproject.toml
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 23 Sep 2024 14:23:44 +0000 (10:23 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 23 Sep 2024 14:23:44 +0000 (10:23 -0400)
this is to avoid warnings generated by SQLAlchemy's test
config

Change-Id: I91026a4bbd36eead3856e9394dc7c1d85b703e47

pyproject.toml
setup.cfg

index 2d2edede0b226bf3e61371c4e472719398366a2d..eedcd3278ea6b9a7ed0bf2384e655596f16d0006 100644 (file)
@@ -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 = [
index 70daeaddcc324c3373734df4ebfd17d1c15ecce3..e3a51f25c184a2ca0acbc257306358e7931e2db7 100644 (file)
--- 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