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