mirror of
https://github.com/JoseDeFreitas/awesome-youtubers.git
synced 2024-10-01 01:06:03 -04:00
Add files via upload
This commit is contained in:
parent
a8b463311a
commit
e47c9a4006
15
linter/rules/content_about.py
Normal file
15
linter/rules/content_about.py
Normal file
@ -0,0 +1,15 @@
|
||||
file_readme = './../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:'
|
||||
|
||||
for j, i in enumerate(content_readme):
|
||||
if content_about_line in i:
|
||||
if i[-2] != '\\':
|
||||
content_about_errors_nums.append(j)
|
||||
return content_about_errors_nums
|
||||
|
||||
content_about_errors_nums = content_about()
|
16
linter/rules/featured_playlists.py
Normal file
16
linter/rules/featured_playlists.py
Normal file
@ -0,0 +1,16 @@
|
||||
file_readme = './../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:'
|
||||
featured_playlists_dlen = 124
|
||||
|
||||
for j, i in enumerate(content_readme):
|
||||
if featured_playlists_line in i:
|
||||
if len(i) < featured_playlists_dlen and i[-2] != '\\':
|
||||
featured_playlists_errors_nums.append(j)
|
||||
return featured_playlists_errors_nums
|
||||
|
||||
featured_playlists_errors_nums = featured_playlists()
|
15
linter/rules/youtubers_names.py
Normal file
15
linter/rules/youtubers_names.py
Normal file
@ -0,0 +1,15 @@
|
||||
file_readme = './../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 = '[**'
|
||||
|
||||
for j, i in enumerate(content_readme):
|
||||
if youtuber_count_char in i:
|
||||
if i[-2] != '\\':
|
||||
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