From 06b8fa2b7cd1d869ec45272e1c592e201d4ad4bb Mon Sep 17 00:00:00 2001 From: Alan Hamlett Date: Sat, 4 Nov 2017 11:04:43 -0700 Subject: [PATCH] rename project file module --- wakatime/project.py | 4 ++-- .../projects/{wakatime_project_file.py => projectfile.py} | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) rename wakatime/projects/{wakatime_project_file.py => projectfile.py} (93%) diff --git a/wakatime/project.py b/wakatime/project.py index c008651..c03e732 100644 --- a/wakatime/project.py +++ b/wakatime/project.py @@ -13,9 +13,9 @@ import logging from .projects.git import Git from .projects.mercurial import Mercurial +from .projects.projectfile import ProjectFile from .projects.projectmap import ProjectMap from .projects.subversion import Subversion -from .projects.wakatime_project_file import WakaTimeProjectFile log = logging.getLogger('WakaTime') @@ -23,7 +23,7 @@ log = logging.getLogger('WakaTime') # List of plugin classes to find a project for the current file path. CONFIG_PLUGINS = [ - WakaTimeProjectFile, + ProjectFile, ProjectMap, ] REV_CONTROL_PLUGINS = [ diff --git a/wakatime/projects/wakatime_project_file.py b/wakatime/projects/projectfile.py similarity index 93% rename from wakatime/projects/wakatime_project_file.py rename to wakatime/projects/projectfile.py index 770861c..9ca6d80 100644 --- a/wakatime/projects/wakatime_project_file.py +++ b/wakatime/projects/projectfile.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- """ - wakatime.projects.wakatime_project_file - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + wakatime.projects.projectfile + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Information from a .wakatime-project file about the project for a given file. First line of .wakatime-project sets the project @@ -22,7 +22,7 @@ from ..compat import u, open log = logging.getLogger('WakaTime') -class WakaTimeProjectFile(BaseProject): +class ProjectFile(BaseProject): def process(self): self.config = self._find_config(self.path)