From bc086a251699f7c22af0434a2eaa2024098ffaa0 Mon Sep 17 00:00:00 2001 From: Yih-Dar <2521628+ydshieh@users.noreply.github.com> Date: Thu, 9 Nov 2023 11:50:19 +0100 Subject: [PATCH] Put doctest options back to `pyproject.toml` (#27366) fix Co-authored-by: ydshieh --- pyproject.toml | 6 +++--- setup.cfg | 3 --- 2 files changed, 3 insertions(+), 6 deletions(-) delete mode 100644 setup.cfg diff --git a/pyproject.toml b/pyproject.toml index c55795eb1378dd..37bc1d7efe16da 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -18,6 +18,6 @@ line-length = 119 lines-after-imports = 2 known-first-party = ["transformers"] -# This is ignored, maybe because of the header? If someone finds a fix, we can uncomment and remove setup.cfg -# [tool.pytest] -# doctest_optionflags="NUMBER NORMALIZE_WHITESPACE ELLIPSIS" +[tool.pytest.ini_options] +doctest_optionflags="NUMBER NORMALIZE_WHITESPACE ELLIPSIS" +doctest_glob="**/*.md" diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index ffe8973dd21c61..00000000000000 --- a/setup.cfg +++ /dev/null @@ -1,3 +0,0 @@ -[tool:pytest] -doctest_optionflags=NUMBER NORMALIZE_WHITESPACE ELLIPSIS -doctest_glob=**/*.md \ No newline at end of file