Move back doctest instructions to setup.cfg (#22587)

This commit is contained in:
Sylvain Gugger 2023-04-05 07:53:19 -04:00 committed by GitHub
parent 861ff890d6
commit 6c640f098a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -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"

2
setup.cfg Normal file
View File

@ -0,0 +1,2 @@
[tool:pytest]
doctest_optionflags=NUMBER NORMALIZE_WHITESPACE ELLIPSIS