Changeset 71
- Timestamp:
- 06/21/06 07:41:36 (7 years ago)
- Files:
-
- branches/mk/cheesecake/cheesecake_index.py (modified) (2 diffs)
- branches/mk/tests/data/import_self.py (added)
- branches/mk/tests/unit/_helper_cheesecake.py (modified) (1 diff)
- branches/mk/tests/unit/test_index_pylint.py (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/mk/cheesecake/cheesecake_index.py
r69 r71 685 685 max_value = 50 686 686 687 disabled_messages = [ 688 'W0403', # relative import 689 'W0406', # importing of self 690 ] 691 pylint_args = ' '.join(map(lambda x: '--disable-msg=%s' % x, disabled_messages)) 692 687 693 def compute(self, files_list, package_dir): 688 694 self.value = 0 … … 701 707 702 708 self.cheesecake.log.debug("Running pylint on file " + fullpath) 703 rc, output = run_cmd("pylint " + fullpath)709 rc, output = run_cmd("pylint %s %s" % (self.pylint_args, fullpath)) 704 710 if rc: 705 711 self.cheesecake.log.debug("encountered an error (%d)." % rc) branches/mk/tests/unit/_helper_cheesecake.py
r66 r71 6 6 7 7 DATA_PATH = os.path.abspath(os.path.join(os.path.dirname(__file__), '../data/')) 8 9 class Glutton(object): 10 "Eat everything." 11 def __getattr__(self, name): 12 return Glutton() 13 14 def __setattr__(self, name, value): 15 pass 16 17 def __call__(self, *args, **kwds): 18 pass
