Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wwwanlingxiao
public-apis
Commits
bff7f5e0
Unverified
Commit
bff7f5e0
authored
Jan 16, 2022
by
Matheus Felipe
Browse files
Reorganize constants
parent
f1cbf014
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/validate/format.py
View file @
bff7f5e0
...
...
@@ -5,7 +5,6 @@ from typing import List, Tuple, Dict
anchor
=
'###'
min_entries_per_section
=
3
auth_keys
=
[
'apiKey'
,
'OAuth'
,
'X-Mashape-Key'
,
'User-Agent'
,
'No'
]
punctuation
=
[
'.'
,
'?'
,
'!'
]
https_keys
=
[
'Yes'
,
'No'
]
...
...
@@ -17,7 +16,9 @@ index_auth = 2
index_https
=
3
index_cors
=
4
index_link
=
5
num_segments
=
5
min_entries_per_section
=
3
anchor_re
=
re
.
compile
(
anchor
+
'\s(.+)'
)
category_title_in_index_re
=
re
.
compile
(
'\*\s\[(.*)\]'
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment