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)