From 6c640f098a6a7dd7337d4a630332fd418d41e396 Mon Sep 17 00:00:00 2001 From: Sylvain Gugger <35901082+sgugger@users.noreply.github.com> Date: Wed, 5 Apr 2023 07:53:19 -0400 Subject: [PATCH] Move back doctest instructions to setup.cfg (#22587) --- pyproject.toml | 5 +++-- setup.cfg | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 setup.cfg diff --git a/pyproject.toml b/pyproject.toml index ef3be4606e..7905afac5d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -83,5 +83,6 @@ line-length = 119 lines-after-imports = 2 known-first-party = ["transformers"] -[tool.pytest] -doctest_optionflags="NUMBER NORMALIZE_WHITESPACE ELLIPSIS" +# 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" diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000000..5f47c5c6be --- /dev/null +++ b/setup.cfg @@ -0,0 +1,2 @@ +[tool:pytest] +doctest_optionflags=NUMBER NORMALIZE_WHITESPACE ELLIPSIS