Skip to content

Commit

Permalink
add mypy marker to pytest; pytest opts in pyproject.toml
Browse files Browse the repository at this point in the history
this is to avoid warnings generated by SQLAlchemy's test
config

Change-Id: I91026a4bbd36eead3856e9394dc7c1d85b703e47
  • Loading branch information
zzzeek committed Sep 23, 2024
1 parent 91ebb70 commit 2fa5d65
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
10 changes: 10 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down
6 changes: 0 additions & 6 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 2fa5d65

Please sign in to comment.