Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpgritti@gmail.com>2008-09-28 14:28:46 (GMT)
committer Marco Pesenti Gritti <mpgritti@gmail.com>2008-09-28 14:28:46 (GMT)
commit7c5aa2df8e4e8fa60efb36caeecd7adda3ced2c9 (patch)
treeb4cc3ce2f17496427bd487467ba0546a6975122e /scripts
parent5ce4f84b6edc8b82469c0cc228ae5f61a0daf09d (diff)
Update pylint to the new jarabe module.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/check.py24
1 files changed, 4 insertions, 20 deletions
diff --git a/scripts/check.py b/scripts/check.py
index dab19c0..c48eecd 100644
--- a/scripts/check.py
+++ b/scripts/check.py
@@ -100,21 +100,6 @@ class cmd_check(Command):
def lint(self, module):
subprocess.call(['pylint', module, '--rcfile=%s' % pylintrc_path])
- def lint_path(self, path):
- cwd = os.getcwd()
- os.chdir(path)
-
- python_files = []
- for (path, dirs, files) in os.walk('.'):
- for f in files:
- if f.endswith('.py'):
- python_files.append(os.path.join(path, f))
-
- args = ['pylint', '--rcfile=%s' % pylintrc_path]
- subprocess.call(args + python_files)
-
- os.chdir(cwd)
-
def check_ui(self, config):
ui_check = UICheck()
return ui_check.start()
@@ -122,15 +107,14 @@ class cmd_check(Command):
def check_pylint(self, config):
sugar_path = os.path.join(config.prefix, 'share', 'sugar')
- print 'Pylint the sugar shell...'
- self.lint_path(os.path.join(sugar_path, 'shell'))
- self.lint_path(os.path.join(sugar_path, 'service'))
- print 'Done.\n'
-
print 'Pylint the sugar module...'
self.lint('sugar')
print 'Done.'
+ print 'Pylint the jarabe module...'
+ self.lint('jarabe')
+ print 'Done.\n'
+
def run(self, config, options, args):
result = 0
xvfb_pid = self.start_xvfb()