From 8dbe807efbb1cc5d884495090d82245942e5f034 2020-06-04 02:27:49 From: Brett Smith Date: 2020-06-04 02:27:49 Subject: [PATCH] setup: Move tox.ini to setup.cfg. --- diff --git a/setup.cfg b/setup.cfg index 882a777c35e9b48cea8d7a24a7916ca99db18ea6..a866f0919004da1552a8dd64c32c9c7e1dedbd84 100644 --- a/setup.cfg +++ b/setup.cfg @@ -12,3 +12,15 @@ warn_redundant_casts = True warn_return_any = True warn_unreachable = True warn_unused_configs = True + +[tox:tox] +envlist = py36,py37 + +[testenv] +# Beancount includes type declarations but not the `py.typed` flag file mypy +# is looking for to know that. Create it ourselves. +commands_pre = python -c 'import beancount, pathlib; pathlib.Path(beancount.__file__).with_name("py.typed").touch()' + +commands = + ./setup.py test + ./setup.py typecheck diff --git a/tox.ini b/tox.ini deleted file mode 100644 index 560d428d0fca5b5c7a0b4bcfc3bf735f0aa60332..0000000000000000000000000000000000000000 --- a/tox.ini +++ /dev/null @@ -1,11 +0,0 @@ -[tox] -envlist = py36,py37 - -[testenv] -# Beancount includes type declarations but not the `py.typed` flag file mypy -# is looking for to know that. Create it ourselves. -commands_pre = python -c 'import beancount, pathlib; pathlib.Path(beancount.__file__).with_name("py.typed").touch()' - -commands = - ./setup.py test - ./setup.py typecheck