mirror of
https://github.com/JoseDeFreitas/awesome-youtubers.git
synced 2025-01-03 11:30:49 -05:00
Update linter
This commit is contained in:
parent
2265b0c0ea
commit
90f77ed3e7
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
||||
.vscode
|
||||
__pycache__
|
@ -1,5 +1,6 @@
|
||||
from rules import (content_about, featured_playlists, youtubers_names)
|
||||
|
||||
|
||||
def main():
|
||||
"""
|
||||
Main function. Used specifically to call print results
|
||||
@ -20,5 +21,6 @@ def main():
|
||||
else:
|
||||
print("'Featured playlists' errors:\n", '\n'.join(["Error at line {}: there should be a trailing '\\'.".format(i) for i in featured_playlists.featured_playlists_errors_nums]))
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
@ -5,6 +5,7 @@ file_readme = here / './../readme.md'
|
||||
with open(file_readme, 'r') as read_readme:
|
||||
content_readme = read_readme.readlines()
|
||||
|
||||
|
||||
def content_about():
|
||||
content_about_errors_nums = []
|
||||
content_about_line = 'Content about:'
|
||||
@ -15,4 +16,5 @@ def content_about():
|
||||
content_about_errors_nums.append(j)
|
||||
return content_about_errors_nums
|
||||
|
||||
|
||||
content_about_errors_nums = content_about()
|
||||
|
@ -5,6 +5,7 @@ file_readme = here / './../readme.md'
|
||||
with open(file_readme, 'r') as read_readme:
|
||||
content_readme = read_readme.readlines()
|
||||
|
||||
|
||||
def featured_playlists():
|
||||
featured_playlists_errors_nums = []
|
||||
featured_playlists_line = 'Featured playlists:'
|
||||
@ -16,4 +17,5 @@ def featured_playlists():
|
||||
featured_playlists_errors_nums.append(j)
|
||||
return featured_playlists_errors_nums
|
||||
|
||||
|
||||
featured_playlists_errors_nums = featured_playlists()
|
||||
|
@ -5,6 +5,7 @@ file_readme = here / './../readme.md'
|
||||
with open(file_readme, 'r') as read_readme:
|
||||
content_readme = read_readme.readlines()
|
||||
|
||||
|
||||
def youtubers_names():
|
||||
youtubers_name_errors_nums = []
|
||||
youtuber_count_char = '[**'
|
||||
@ -15,4 +16,5 @@ def youtubers_names():
|
||||
youtubers_name_errors_nums.append(j)
|
||||
return youtubers_name_errors_nums
|
||||
|
||||
|
||||
youtubers_name_errors_nums = youtubers_names()
|
||||
|
Loading…
Reference in New Issue
Block a user