From 965338df95d40d4a17f986efd9ff50863a753451 Mon Sep 17 00:00:00 2001 From: Alex Jurkiewicz Date: Tue, 14 Apr 2020 18:26:51 +1000 Subject: feat(python): Add scan_for_pyfiles option (#692) Also adds two new entries to the list of hardcoded files to check: setup.py and __init__.py. --- src/configs/python.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/configs/python.rs') diff --git a/src/configs/python.rs b/src/configs/python.rs index 736283f4f..bd986e91c 100644 --- a/src/configs/python.rs +++ b/src/configs/python.rs @@ -9,6 +9,7 @@ pub struct PythonConfig<'a> { pub version: SegmentConfig<'a>, pub pyenv_prefix: SegmentConfig<'a>, pub pyenv_version_name: bool, + pub scan_for_pyfiles: bool, pub style: Style, pub disabled: bool, } @@ -20,6 +21,7 @@ impl<'a> RootModuleConfig<'a> for PythonConfig<'a> { version: SegmentConfig::default(), pyenv_prefix: SegmentConfig::new("pyenv "), pyenv_version_name: false, + scan_for_pyfiles: true, style: Color::Yellow.bold(), disabled: false, } -- cgit v1.2.3