From f6a628a8fdeb0445df6d2865301e31750e1e310a Mon Sep 17 00:00:00 2001 From: Juan Orduz Date: Sat, 23 Dec 2023 00:07:20 +0100 Subject: [PATCH] remove the right file XD (#1704) --- .github/workflows/ci.yml | 3 +-- pyproject.toml | 21 +++++++++++++++++++++ setup.cfg | 11 ----------- 3 files changed, 22 insertions(+), 13 deletions(-) delete mode 100644 setup.cfg diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ee8cedebe..c4f99fa16 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,12 +28,11 @@ jobs: python -m pip install --upgrade pip pip install jaxlib pip install jax - pip install black pip install .[doc,test] pip install https://github.com/pyro-ppl/funsor/archive/master.zip pip install -r docs/requirements.txt pip freeze - - name: Lint with flake8 + - name: Lint with ruff run: | make lint - name: Build documentation diff --git a/pyproject.toml b/pyproject.toml index b4ecf3a77..d34dec8c3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -62,3 +62,24 @@ line-ending = "auto" [tool.ruff.extend-per-file-ignores] "numpyro/contrib/tfp/distributions.py" = ["F811"] "numpyro/distributions/kl.py" = ["F811"] + +[tool.pytest.ini_options] +addopts = [ + "-v", + "--color=yes", +] +filterwarnings = [ + "error", + "ignore:numpy.ufunc size changed,:RuntimeWarning", + "ignore:Using a non-tuple sequence:FutureWarning", + "ignore:jax.tree_structure is deprecated:FutureWarning", + "ignore:numpy.linalg support is experimental:UserWarning", + "ignore:scipy.linalg support is experimental:UserWarning", + "once:No GPU:UserWarning", + "once::DeprecationWarning", +] +doctest_optionflags = [ + "ELLIPSIS", + "NORMALIZE_WHITESPACE", + "IGNORE_EXCEPTION_DETAIL", +] diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 8f78cac6b..000000000 --- a/setup.cfg +++ /dev/null @@ -1,11 +0,0 @@ -[tool:pytest] -filterwarnings = error - ignore:numpy.ufunc size changed,:RuntimeWarning - ignore:Using a non-tuple sequence:FutureWarning - ignore:jax.tree_structure is deprecated:FutureWarning - ignore:numpy.linalg support is experimental:UserWarning - ignore:scipy.linalg support is experimental:UserWarning - once:No GPU:UserWarning - once::DeprecationWarning - -doctest_optionflags = ELLIPSIS NORMALIZE_WHITESPACE IGNORE_EXCEPTION_DETAIL