comparison contrib/pep8/coding_std.py @ 2793:5ab6c46a4b75

change coding-std to check .less files and ignore /docs/_build directory
author RogerHaase <haaserd@gmail.com>
date Tue, 23 Sep 2014 09:22:54 -0700
parents 6af6e61dc25f
children 5a49eeb1f307
comparison
equal deleted inserted replaced
2792:e62ee19003c6 2793:5ab6c46a4b75
20 import sys 20 import sys
21 import os 21 import os
22 22
23 23
24 # file types to be processed 24 # file types to be processed
25 SELECTED_SUFFIXES = set("py bat cmd html css js styl rst".split()) 25 SELECTED_SUFFIXES = set("py bat cmd html css js styl less rst".split())
26 26
27 # stuff considered DOS/WIN 27 # stuff considered DOS/WIN
28 WIN_SUFFIXES = set("bat cmd".split()) 28 WIN_SUFFIXES = set("bat cmd".split())
29 29
30 30
52 ignore_dirs = [] 52 ignore_dirs = []
53 level2_dirs = ".hg contrib dlc env moin.egg-info wiki".split() 53 level2_dirs = ".hg contrib dlc env moin.egg-info wiki".split()
54 for dir in level2_dirs: 54 for dir in level2_dirs:
55 ignore_dirs.append((starting_dir, dir)) 55 ignore_dirs.append((starting_dir, dir))
56 ignore_dirs.append((starting_dir + os.sep + "MoinMoin", "translations")) 56 ignore_dirs.append((starting_dir + os.sep + "MoinMoin", "translations"))
57 ignore_dirs.append((starting_dir + os.sep + "docs", "_build"))
57 return ignore_dirs 58 return ignore_dirs
58 59
59 60
60 def calc_indentation(line): 61 def calc_indentation(line):
61 """ 62 """