New issue 295: Support loading environments from external files https://bitbucket.org/hpk42/tox/issues/295/support-loading-environments-from-external
Timothy Allen: Currently tox allows you to define a bunch of test environments in a single `tox.ini` file, which is a great way to help multiple contributors to a single project stay in sync. However, I have many small projects with differing release schedules, and I want them all to be consistent with each other. Copy/pasting `tox.ini` changes from project to project is error-prone and tedious, so I want a way to put environment configuration in a central location and make each project include it by reference, possibly overriding some settings. For example, let's say I always want to be warned about code with a McCabe complexity over 10. I could make a separate file containing: [testenv] commands= flake8 --max-complexity 10 ...then all my projects' `tox.ini` files could say something like: [tox] inherit_from=http://somehost/generic-tox-settings.ini ...and when tox saw that setting, it could download the file, parse it, and then update it with the contents of the local `tox.ini`. As an alternative to downloading a file every time tox is run, perhaps `inherit_from` could be an absolute or relative path (relative to the directory containing tox.ini) so that the extra settings could be distributed via SVN externals or git submodules. _______________________________________________ pytest-commit mailing list pytest-commit@python.org https://mail.python.org/mailman/listinfo/pytest-commit