diff --git a/pyproject.toml b/pyproject.toml index 35fb23a99..e0de8183e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -73,6 +73,18 @@ btk = "btk.__main__:run" line-length = 100 target-version = ['py37', 'py38'] +[tool.pytest.ini_options] +addopts = "-ra" +filterwarnings = [ + "ignore:the imp module is deprecated:DeprecationWarning", + "ignore:`np.int` is a deprecated alias:DeprecationWarning", + "ignore:numpy.ufunc size changed:RuntimeWarning", +] +minversion = "6.0" +testpaths = [ + "tests", +] + [tool.poetry.extras] galsim-hub = ["galsim-hub", "tensorflow"] scarlet = ["peigen", "autograd", "pybind11", "proxmin"] diff --git a/pytest.ini b/pytest.ini deleted file mode 100644 index 97b743f26..000000000 --- a/pytest.ini +++ /dev/null @@ -1,5 +0,0 @@ -[pytest] -filterwarnings = - ignore:the imp module is deprecated:DeprecationWarning - ignore:`np.int` is a deprecated alias:DeprecationWarning - ignore:numpy.ufunc size changed:RuntimeWarning