awesome-youtubers/linter/lint.py

35 lines
987 B
Python
Raw Normal View History

2021-02-28 00:53:56 +00:00
# Last "as" keyword is in the form ab_cd, where "a" and
# "b" are the first letters of the two words of the module
# and "c" and "d" are the first letters of the two words
# of the function of the module.
2021-02-06 19:47:14 +00:00
2021-02-28 00:53:56 +00:00
from rules.content_about import trailing_slash as ca_ts
from rules.featured_playlists import trailing_slash as fp_ts
from rules.youtubers_names import trailing_slash as yn_ts
2021-02-11 23:24:13 +00:00
2021-02-28 00:53:56 +00:00
def main() -> None:
2021-02-06 19:47:14 +00:00
"""
Main function. Used specifically to call print results
by calling functions into rules/.
2021-02-28 00:53:56 +00:00
Functions:
content_about: trailing_slash, comma_separated
featured_playlists: trailing_slash, closed_backsticks
youtubers_names: trailing_slash, youtube_link
2021-02-06 19:47:14 +00:00
"""
2021-02-11 23:24:13 +00:00
2021-02-28 00:53:56 +00:00
# "youtubers_names"
print("YouTubers names:")
print(yn_ts())
# "content_about"
print("Content about:")
print(ca_ts())
# "featured_playlists"
print("Featured playlists:")
print(fp_ts())
2021-02-06 19:47:14 +00:00
2021-02-11 23:24:13 +00:00
2021-02-06 19:47:14 +00:00
if __name__ == '__main__':
main()