From bff7f5e0096ee7f665fe41f7439540296a9a77ac Mon Sep 17 00:00:00 2001 From: Matheus Felipe <50463866+matheusfelipeog@users.noreply.github.com> Date: Sun, 16 Jan 2022 23:20:43 -0300 Subject: [PATCH] Reorganize constants --- scripts/validate/format.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/validate/format.py b/scripts/validate/format.py index 97a169e1..89df6bee 100644 --- a/scripts/validate/format.py +++ b/scripts/validate/format.py @@ -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\[(.*)\]')