Detect Python Defaults [opinions wanted]


Hey Folks,

If we were to detect python defaults, like we do with other languages, for example running make if a Makefile is present, or possibly running pytest if * is present, what should we be detecting? What should we look out for?


  1. pyproject.toml (see PEP 517 / PEP 518)
  2. tox.ini
  4. requirements.txt

If pytest is detected in requirements, just run pytest without args (they are probably specified in pytest.ini, setup.cfg or pyproject.toml already).
Oh, and upgrade pip to the latest version so that it could pick up pyproject.toml magic. Upgrade setuptools so that it could pick up pure setup.cfg.