From be07a26db71e3f9a6080a38448310db1aac25782 Mon Sep 17 00:00:00 2001 From: Zhang Jun Date: Thu, 22 Aug 2024 10:56:21 +0800 Subject: [PATCH 1/2] issues related to paddle have been fixed in paddle nightly build, update settings here Signed-off-by: Zhang Jun --- .github/workflows/run_tests.yml | 3 +-- test.py | 5 ++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index 2b10202e..e428b9ee 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -13,8 +13,7 @@ jobs: # cupy is not tested because it demands gpu # oneflow testing is dropped, see details at https://github.com/Oneflow-Inc/oneflow/issues/10340 # chainer testing is dropped because of conflict with numpy 2.0, see https://github.com/chainer/chainer/issues/8632 - # paddle was switched off because of divergence with numpy in py3.10, paddle==2.6.1 - frameworks: ['numpy pytorch tensorflow jax'] + frameworks: ['numpy pytorch tensorflow jax', 'numpy paddle'] steps: - uses: actions/checkout@v4 diff --git a/test.py b/test.py index 1a5d70ce..625c5e09 100644 --- a/test.py +++ b/test.py @@ -40,9 +40,8 @@ def main(): "tensorflow": ["tensorflow"], "chainer": ["chainer"], "cupy": ["cupy"], - # switch to stable paddlepaddle, because of https://github.com/PaddlePaddle/Paddle/issues/63927 - # "paddle": ["paddlepaddle==0.0.0 -f https://www.paddlepaddle.org.cn/whl/linux/cpu-mkl/develop.html"], - "paddle": ["paddlepaddle"], + "paddle": ["--pre paddlepaddle -i https://www.paddlepaddle.org.cn/packages/nightly/cpu/"], + # "paddle": ["paddlepaddle"], "oneflow": ["oneflow==0.9.0"], } From 26ffb6978b4ba480351aed2619700e260d348637 Mon Sep 17 00:00:00 2001 From: Zhang Jun Date: Thu, 22 Aug 2024 13:37:05 +0800 Subject: [PATCH 2/2] exclude Jupyter Notebook in ruff Signed-off-by: Zhang Jun --- pyproject.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 4b7203cd..ea85ff75 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -104,5 +104,7 @@ cache-dir = "/tmp/ruff_cache" # move cache out of workdir lint.select = ["E4", "E7", "E9", "F", "W"] +extend-exclude = ["*.ipynb"] + [tool.ruff.format] docstring-code-format = false