summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile3
-rwxr-xr-xwscript8
2 files changed, 11 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 3b40c73d95..ae2fc0636d 100644
--- a/Makefile
+++ b/Makefile
@@ -73,3 +73,6 @@ FORCE:
pydoctor:
$(WAF) pydoctor
+
+pep8:
+ $(WAF) pep8
diff --git a/wscript b/wscript
index 5ccb74d91d..18daaac08c 100755
--- a/wscript
+++ b/wscript
@@ -152,6 +152,14 @@ def pydoctor(ctx):
print("Running: %s" % cmd)
os.system(cmd)
+
+def pep8(ctx):
+ '''run pep8 validator'''
+ cmd='PYTHONPATH=bin/python pep8 -r bin/python/samba'
+ print("Running: %s" % cmd)
+ os.system(cmd)
+
+
def wafdocs(ctx):
'''build wafsamba apidocs'''
from samba_utils import recursive_dirlist