We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5654d99 commit f1100c0Copy full SHA for f1100c0
plugins/python3/src/policy.rs
@@ -34,13 +34,15 @@ impl StudentFilePolicy for Python3StudentFilePolicy {
34
None => true,
35
};
36
let is_py_file = path.extension() == Some(OsStr::new("py"));
37
+ let is_ipynb = path.extension() == Some(OsStr::new("ipynb"));
38
39
// all files in non-tmc and non-test subdirectories are considered student files
40
let is_in_exercise_subdir = path.starts_with("test") || path.starts_with("tmc");
41
42
in_src && !is_cache_file
43
|| is_in_project_root && is_py_file
44
|| !is_in_exercise_subdir && !is_in_project_root && !is_cache_file
45
+ || is_ipynb && !is_cache_file
46
}
47
48
0 commit comments