Skip to content

Commit

Permalink
Merge pull request #201 from Brandonbr1/patch-1
Browse files Browse the repository at this point in the history
added #!/usr/bin/env python3 and # -*- coding: UTF-8 -*-   to every file
  • Loading branch information
MrPowerScripts authored Dec 11, 2021
2 parents ccc86c8 + 5d33f57 commit 2412c26
Show file tree
Hide file tree
Showing 22 changed files with 44 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/apis/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python3
# -*- coding: UTF-8 -*-
from config import reddit_config
from .reddit import RedditAPI
from .pushshift import PS
Expand Down
2 changes: 2 additions & 0 deletions src/apis/pushshift.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python3
# -*- coding: UTF-8 -*-
# data sources for comment learning
from psaw import PushshiftAPI
from logs.logger import log
Expand Down
2 changes: 2 additions & 0 deletions src/apis/reddit.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python3
# -*- coding: UTF-8 -*-
from praw import Reddit
from utils import random_string

Expand Down
2 changes: 2 additions & 0 deletions src/bot.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python3
# -*- coding: UTF-8 -*-
from bots.reddit import RedditBot
from utils import countdown
from logs.logger import log
Expand Down
2 changes: 2 additions & 0 deletions src/bots/reddit/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
#!/usr/bin/env python3
# -*- coding: UTF-8 -*-
from .bot import RedditBot

2 changes: 2 additions & 0 deletions src/bots/reddit/actions/cleanup_actions.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python3
# -*- coding: UTF-8 -*-
import praw
import requests
from apis import pushshift_api, reddit_api
Expand Down
2 changes: 2 additions & 0 deletions src/bots/reddit/actions/comments/comment_actions.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python3
# -*- coding: UTF-8 -*-
from .sources.cobe import Cobe
from logs.logger import log
from collections import namedtuple
Expand Down
2 changes: 2 additions & 0 deletions src/bots/reddit/actions/comments/sources/cobe.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python3
# -*- coding: UTF-8 -*-
from cobe.brain import Brain
from config.cobe_config import CONFIG
from apis import pushshift_api, reddit_api
Expand Down
2 changes: 2 additions & 0 deletions src/bots/reddit/actions/post_actions.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python3
# -*- coding: UTF-8 -*-
import random, requests, re
from time import sleep as s
from apis import pushshift_api, reddit_api
Expand Down
2 changes: 2 additions & 0 deletions src/bots/reddit/actions/utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python3
# -*- coding: UTF-8 -*-
import random
from apis import reddit_api
from logs.logger import log
Expand Down
2 changes: 2 additions & 0 deletions src/bots/reddit/bot.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python3
# -*- coding: UTF-8 -*-
from apis import reddit_api
from config import reddit_config
from utils import chance
Expand Down
2 changes: 2 additions & 0 deletions src/bots/reddit/utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python3
# -*- coding: UTF-8 -*-
import datetime
from logs.logger import log
from config.reddit_config import CONFIG
Expand Down
2 changes: 2 additions & 0 deletions src/config/cobe_config.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python3
# -*- coding: UTF-8 -*-
from utils import prefer_envar
from pathlib import Path
from logs.logger import log
Expand Down
2 changes: 2 additions & 0 deletions src/config/common_config.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python3
# -*- coding: UTF-8 -*-
import os
from logs.logger import log
from pathlib import Path
Expand Down
2 changes: 2 additions & 0 deletions src/config/config_menu.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python3
# -*- coding: UTF-8 -*-
import os
import sys
import json
Expand Down
2 changes: 2 additions & 0 deletions src/config/reddit/config_gen.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python3
# -*- coding: UTF-8 -*-
import praw
import sys
import os
Expand Down
2 changes: 2 additions & 0 deletions src/config/reddit_config.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python3
# -*- coding: UTF-8 -*-
from utils import prefer_envar
from logs.logger import log
from logs.log_utils import log_json
Expand Down
2 changes: 2 additions & 0 deletions src/init.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python3
# -*- coding: UTF-8 -*-
import sys
from logs.logger import log
from utils import check_internet , get_public_ip
Expand Down
2 changes: 2 additions & 0 deletions src/logs/log_utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python3
# -*- coding: UTF-8 -*-
import logging
import json
from logging.handlers import RotatingFileHandler
Expand Down
2 changes: 2 additions & 0 deletions src/menu.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python3
# -*- coding: UTF-8 -*-
import pyfiglet
import sys
from logs.logger import log
Expand Down
2 changes: 2 additions & 0 deletions src/tests/test_utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python3
# -*- coding: UTF-8 -*-
from .. import utils

def test_random_string():
Expand Down
2 changes: 2 additions & 0 deletions src/utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python3
# -*- coding: UTF-8 -*-
import os
import collections
import random
Expand Down

0 comments on commit 2412c26

Please sign in to comment.