From 7087db3f23c1f194e65da7723fb473a1ac107bf1 Mon Sep 17 00:00:00 2001 From: Sylvain Gugger Date: Wed, 5 Apr 2023 07:45:16 -0400 Subject: [PATCH] Move back doctest instructions to setup.cfg --- 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 ef3be4606ea8..7905afac5d69 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 000000000000..5f47c5c6be69 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,2 @@ +[tool:pytest] +doctest_optionflags=NUMBER NORMALIZE_WHITESPACE ELLIPSIS