From 653def05f0c9c40b0ab07fecdb178ec8a075a61c Mon Sep 17 00:00:00 2001 From: Thomas O'Donnell Date: Sun, 15 Sep 2019 18:21:40 +0200 Subject: Enable the python module for tox files (#369) Enable the python module if the current directory contains a `tox.ini` file. --- src/modules/python.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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> { let is_py_project = context .try_begin_scan()? @@ -22,6 +23,7 @@ pub fn module<'a>(context: &'a Context) -> Option> { ".python-version", "pyproject.toml", "Pipfile", + "tox.ini", ]) .set_extensions(&["py"]) .is_match(); -- cgit v1.2.3