# -*- coding: utf-8 -*-
"""
Created on Thu May  2 10:17:41 2024

@author: nyenah
"""
import os
from glob import glob


# The command you want to execute . here i exclude some extensions.
# see https://github.com/boyter/scc for details
cmd = 'pylint --recursive=y '
# =============================================================================
# Get model names and Sector
# =============================================================================

# replace this with desired root path

dssat = './models_to_lint/DSSAT-Pythia/*' 
acea = './models_to_lint/ACEA/*' 
parflow = './models_to_lint/parflow/*'
vectri = './models_to_lint/VECTRI/*'
cwatm = './models_to_lint/CWatM/*'

hydropy = './models_to_lint/HydroPy/*' 
pcrglobwb = './models_to_lint/PCR-GLOBWB/*' 
vic = './models_to_lint/VIC/*'
ways = './models_to_lint/WAYS/*'
dynqual = './models_to_lint/DynQual/*'

models = [dssat, acea, parflow, vectri, cwatm, hydropy, pcrglobwb, vic, ways, dynqual]

for i in range(len(models)):
    out="./models_to_lint/" + str(models[i].split("/")[2]) + '.txt'
    os.system(cmd + ' ' + models[i] + ' --output='+ out)
    
  
