Skip to content

Commit 2fa5d65

Browse files
committed
add mypy marker to pytest; pytest opts in pyproject.toml
this is to avoid warnings generated by SQLAlchemy's test config Change-Id: I91026a4bbd36eead3856e9394dc7c1d85b703e47
1 parent 91ebb70 commit 2fa5d65

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

pyproject.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@ requires = [
77
[tool.black]
88
line-length = 79
99

10+
[tool.pytest.ini_options]
11+
addopts = "--tb native -v -r sfxX -p no:warnings -p no:logging --maxfail=100"
12+
python_files = "tests/test_*.py"
13+
markers = [
14+
"backend: tests that should run on all backends; typically dialect-sensitive",
15+
"mypy: mypy integration / plugin tests (not used by Alembic currently)",
16+
]
17+
18+
19+
1020
[tool.mypy]
1121

1222
exclude = [

setup.cfg

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,6 @@ mssql=mssql+pyodbc://scott:tiger^5HHH@mssql2017:1433/test?driver=ODBC+Driver+18+
116116
oracle=oracle://scott:[email protected]:1521
117117
oracle8=oracle://scott:[email protected]:1521/?use_ansi=0
118118

119-
[alembic]
120119

121120

122-
[tool:pytest]
123-
addopts= --tb native -v -r sfxX -p no:warnings -p no:logging --maxfail=100
124-
python_files=tests/test_*.py
125-
markers =
126-
backend: tests that should run on all backends; typically dialect-sensitive
127121

0 commit comments

Comments
 (0)