Skip to content

Commit

Permalink
Fix for venv folder being scanned
Browse files Browse the repository at this point in the history
  • Loading branch information
leinardi committed Aug 31, 2018
1 parent 27ddc75 commit a25c48e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/com/leinardi/pycharm/pylint/util/VfUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ public static List<VirtualFile> filterOnlyPythonProjectFiles(Project project, Li
List<VirtualFile> list = new ArrayList<>();
ProjectFileIndex projectFileIndex = ProjectFileIndex.SERVICE.getInstance(project);
for (VirtualFile file : virtualFiles) {
if (FileTypes.isPython(file.getFileType()) && !projectFileIndex.isExcluded(file)) {
if (FileTypes.isPython(file.getFileType())
&& !projectFileIndex.isExcluded(file)
&& !projectFileIndex.isInLibraryClasses(file)) {
list.add(file);
}
}
Expand Down

0 comments on commit a25c48e

Please sign in to comment.