File tree Expand file tree Collapse file tree 1 file changed +12
-11
lines changed Expand file tree Collapse file tree 1 file changed +12
-11
lines changed Original file line number Diff line number Diff line change 1
- import sys
2
- from os import listdir
3
- from os .path import join
1
+ if __name__ == '__main__' :
2
+ import sys
3
+ from os import listdir
4
+ from os .path import join
4
5
5
- from pylint .lint import Run
6
+ from pylint .lint import Run
6
7
7
- THRESHOLD = 9.75
8
+ THRESHOLD = 9.75
8
9
9
- cogs = [join ("cogs" , c ) for c in listdir ("cogs" ) if c .endswith (".py" )]
10
- core = [join ("core" , c ) for c in listdir ("core" ) if c .endswith (".py" )]
10
+ cogs = [join ("cogs" , c ) for c in listdir ("cogs" ) if c .endswith (".py" )]
11
+ core = [join ("core" , c ) for c in listdir ("core" ) if c .endswith (".py" )]
11
12
12
- results = Run (["bot.py" , * cogs , * core ], do_exit = False )
13
+ results = Run (["bot.py" , * cogs , * core ], do_exit = False )
13
14
14
- score = results .linter .stats ["global_note" ]
15
- if score <= THRESHOLD :
16
- sys .exit (1 )
15
+ score = results .linter .stats ["global_note" ]
16
+ if score <= THRESHOLD :
17
+ sys .exit (1 )
You can’t perform that action at this time.
0 commit comments