source: anuga_work/development/sudi/sw_2d/utilities/data_audit_wrapper.py @ 7739

Last change on this file since 7739 was 7739, checked in by steve, 14 years ago

Just added in hte utilities folder to get compile_all.py to work. Need a better way to avoid
hard coded use of utilities folder

File size: 1.4 KB
Line 
1"""Wrapper around data_audit.
2
3This wrapper is specific to ANUGA.
4
5This wrapper will run the
6
7Specify what extensions, directories and files should be ignored by
8the data_audit process.
9
10These will generally be specific to each software project.
11"""
12
13from data_audit import IP_verified as IP_engine
14
15# Ignore source code files
16extensions_to_ignore = ['.py','.c', '.h', '.cpp', '.f', '.bat', '.m','.sh','.awk']
17
18# Ignore LaTeX documents
19extensions_to_ignore += ['.tex', '.sty', '.cls', '.bib', '.def']
20
21# Ignore pdf and doc documents
22extensions_to_ignore += ['.pdf', '.doc']
23
24# Ignore generated stuff
25extensions_to_ignore += ['.pyc', '.o', '.so', '~']
26extensions_to_ignore += ['.aux', '.log', '.idx', 'ilg', '.ind',
27                         '.bbl', '.blg', '.syn', '.toc']
28
29# Ignore license files themselves
30extensions_to_ignore += ['.lic']   
31
32
33# Ignore certain other files,
34files_to_ignore = ['README.txt', 'LICENSE.txt', 'Makefile',
35                   '.temp', 'SConstruct', 'SConscript', 'log.ini']
36
37# Ignore directories
38directories_to_ignore = ['.svn', 'misc', '.metadata']
39directories_to_ignore += ['old_pyvolution_documentation']
40
41
42
43def IP_verified(directory, verbose=False):
44
45    result = IP_engine(directory,
46                       extensions_to_ignore,
47                       directories_to_ignore,
48                       files_to_ignore,
49                       verbose=verbose)   
50    return result
51   
Note: See TracBrowser for help on using the repository browser.