Permalink
Browse files

add script to check code style

  • Loading branch information...
1 parent 75eb177 commit 3a2223b323ac251318043963e32965e946361d8d @ombre42 committed Jan 5, 2013
Showing with 16 additions and 0 deletions.
  1. +16 −0 style/check_style.py
View
@@ -0,0 +1,16 @@
+from os.path import join, dirname, abspath
+import subprocess
+
+
+THIS_DIR = dirname(abspath(__file__))
+SRC_DIR = join(dirname(THIS_DIR), "src", "SudsLibrary")
+
+def check_pep8():
+ args = [
+ "--max-line-length", "150",
+ "."
+ ]
+ subprocess.call(["pep8"] + args, cwd=SRC_DIR)
+
+if __name__ == "__main__":
+ check_pep8()

0 comments on commit 3a2223b

Please sign in to comment.