浏览代码

Reorganize constants

pull/3011/head
Matheus Felipe 2 年前
父节点
当前提交
bff7f5e009
找不到此签名对应的密钥 GPG 密钥 ID: AA785C523274872F
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. +2
    -1
      scripts/validate/format.py

+ 2
- 1
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\[(.*)\]')


正在加载...
取消
保存