77class AgentDirectory (object ):
88 @staticmethod
99 def path () -> str :
10- """ Returns the agents directory """
10+ """Returns the agents directory"""
1111 path = folder .get_app_dir ()
1212 return os .getenv ("DATATORCH_AGENT_PATH" , os .path .join (path , "agent" ))
1313
@@ -36,12 +36,12 @@ def runs_dir(self):
3636
3737 @property
3838 def logs_dir (self ):
39- """ Directory where agent logs are stored. """
39+ """Directory where agent logs are stored."""
4040 return os .path .join (self .dir , "logs" )
4141
4242 @property
4343 def db_dir (self ):
44- """ Sqlite database are stored. """
44+ """Sqlite database are stored."""
4545 return os .path .join (self .dir , "db" )
4646
4747 @property
@@ -55,7 +55,7 @@ def projects_dir(self):
5555
5656 @property
5757 def actions_dir (self ):
58- """ Directory where actions are stored. """
58+ """Directory where actions are stored."""
5959 return os .path .join (self .dir , "actions" )
6060
6161 def open (self , file : str , mode : str ):
@@ -65,13 +65,13 @@ def action_dir(self, name: str, version: str):
6565 return os .path .join (self .actions_dir , * name .lower ().split ("/" ), version )
6666
6767 def run_dir (self , task_id : str ):
68- """ Returns the directory for a given task """
68+ """Returns the directory for a given task"""
6969 path = os .path .join (self .runs_dir , task_id )
7070 mkdir_exists (path )
7171 return path
7272
7373 def project_dir (self , project_id : str ):
74- """ Returns the directory for a given project """
74+ """Returns the directory for a given project"""
7575 path = os .path .join (self .projects_dir , project_id )
7676 mkdir_exists (path )
7777 return path
0 commit comments