Ver código fonte

Set constants

pull/3011/head
Matheus Felipe 2 anos atrás
pai
commit
c659e65677
Nenhuma chave conhecida encontrada para esta assinatura no banco de dados ID da chave GPG: AA785C523274872F
1 arquivos alterados com 24 adições e 0 exclusões
  1. +24
    -0
      scripts/validate/format.py

+ 24
- 0
scripts/validate/format.py Ver arquivo

@@ -1 +1,25 @@
# -*- coding: utf-8 -*-

import re


anchor = '###'
min_entries_per_section = 3
auth_keys = ['apiKey', 'OAuth', 'X-Mashape-Key', 'User-Agent', 'No']
punctuation = ['.', '?', '!']
https_keys = ['Yes', 'No']
cors_keys = ['Yes', 'No', 'Unknown']

index_title = 0
index_desc = 1
index_auth = 2
index_https = 3
index_cors = 4
index_link = 5
num_segments = 5

errors = []
title_links = []
anchor_re = re.compile(anchor + '\s(.+)')
section_title_re = re.compile('\*\s\[(.*)\]')
link_re = re.compile('\[(.+)\]\((http.*)\)')

Carregando…
Cancelar
Salvar