diff options
author | Thomas O'Donnell <andytom@users.noreply.github.com> | 2019-09-15 18:21:40 +0200 |
---|---|---|
committer | Matan Kushner <hello@matchai.me> | 2019-09-15 12:21:40 -0400 |
commit | 653def05f0c9c40b0ab07fecdb178ec8a075a61c (patch) | |
tree | 1d79b1704967de92ca570b1e464b210211b0ad56 /src | |
parent | 36354aaa799599b5aa2fbb5e53e60408168faaa3 (diff) |
Enable the python module for tox files (#369)
Enable the python module if the current directory contains a `tox.ini`
file.
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/python.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/modules/python.rs b/src/modules/python.rs index 84ca0e7e8..b871ef808 100644 --- a/src/modules/python.rs +++ b/src/modules/python.rs @@ -14,6 +14,7 @@ use super::{Context, Module}; /// - Current directory contains a `pyproject.toml` file /// - Current directory contains a file with the `.py` extension /// - Current directory contains a `Pipfile` file +/// - Current directory contains a `tox.ini` file pub fn module<'a>(context: &'a Context) -> Option<Module<'a>> { let is_py_project = context .try_begin_scan()? @@ -22,6 +23,7 @@ pub fn module<'a>(context: &'a Context) -> Option<Module<'a>> { ".python-version", "pyproject.toml", "Pipfile", + "tox.ini", ]) .set_extensions(&["py"]) .is_match(); |