Detect Python Defaults [opinions wanted]


#1

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 *_test.py is present, what should we be detecting? What should we look out for?

Cheers


#2
  1. pyproject.toml (see PEP 517 / PEP 518)
  2. tox.ini
  3. setup.py/setup.cfg
  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.