summaryrefslogtreecommitdiffstats
path: root/src/configs/python.rs
diff options
context:
space:
mode:
authorAlex Jurkiewicz <alex@jurkiewi.cz>2020-04-14 18:26:51 +1000
committerGitHub <noreply@github.com>2020-04-14 10:26:51 +0200
commit965338df95d40d4a17f986efd9ff50863a753451 (patch)
tree909dcddc430d424b5969504936988bdc20653bb8 /src/configs/python.rs
parentbeed0acc6cb68d2c95074713f18d62b668720a9d (diff)
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.
Diffstat (limited to 'src/configs/python.rs')
-rw-r--r--src/configs/python.rs2
1 files changed, 2 insertions, 0 deletions
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,
}